E:Point, E:Size, E:Width, E:Height, & cleanup

This commit is contained in:
Crum
2018-05-16 23:20:04 -05:00
parent eac6a04517
commit d52da42f77
65 changed files with 958 additions and 1102 deletions
+3 -4
View File
@@ -16,8 +16,8 @@ function LoadSkin()
E:StripTextures(PetStableFrame)
E:Kill(PetStableFramePortrait)
E:CreateBackdrop(PetStableFrame, "Transparent")
PetStableFrame.backdrop:SetPoint("TOPLEFT", 10, -11)
PetStableFrame.backdrop:SetPoint("BOTTOMRIGHT", -32, 71)
E:Point(PetStableFrame.backdrop, "TOPLEFT", 10, -11)
E:Point(PetStableFrame.backdrop, "BOTTOMRIGHT", -32, 71)
S:HandleButton(PetStablePurchaseButton)
S:HandleCloseButton(PetStableFrameCloseButton)
@@ -35,8 +35,7 @@ function LoadSkin()
PetStablePetInfo:GetRegions():SetTexCoord(0.04, 0.15, 0.06, 0.30)
PetStablePetInfo:SetFrameLevel(PetModelFrame:GetFrameLevel() + 2)
E:CreateBackdrop(PetStablePetInfo, "Default")
PetStablePetInfo:SetWidth(24)
PetStablePetInfo:SetHeight(24)
E:Size(PetStablePetInfo, 24)
hooksecurefunc("PetStable_Update", function()
local happiness = GetPetHappiness()