mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-21 11:50:49 +00:00
skin: add PetStableFrame
This commit is contained in:
@@ -69,6 +69,7 @@ skins\blizzard\GMSurvey.lua
|
|||||||
skins\blizzard\keybindings.lua
|
skins\blizzard\keybindings.lua
|
||||||
skins\blizzard\merchant.lua
|
skins\blizzard\merchant.lua
|
||||||
skins\blizzard\popup_dialogs.lua
|
skins\blizzard\popup_dialogs.lua
|
||||||
|
skins\blizzard\stable.lua
|
||||||
|
|
||||||
# modules
|
# modules
|
||||||
modules\gui.lua
|
modules\gui.lua
|
||||||
|
|||||||
@@ -0,0 +1,40 @@
|
|||||||
|
pfUI:RegisterSkin("PetStableFrame", function ()
|
||||||
|
StripTextures(PetStableFrame)
|
||||||
|
CreateBackdrop(PetStableFrame, nil, nil, .75)
|
||||||
|
PetStableFrame.backdrop:SetPoint("TOPLEFT", 10, -10)
|
||||||
|
PetStableFrame.backdrop:SetPoint("BOTTOMRIGHT", -32, 72)
|
||||||
|
PetStableFrame:SetHitRectInsets(10,32,10,72)
|
||||||
|
EnableMovable(PetStableFrame)
|
||||||
|
|
||||||
|
SkinCloseButton(PetStableFrameCloseButton, PetStableFrame.backdrop, -6, -6)
|
||||||
|
|
||||||
|
PetStableFrame:DisableDrawLayer("BACKGROUND")
|
||||||
|
|
||||||
|
PetStableTitleLabel:ClearAllPoints()
|
||||||
|
PetStableTitleLabel:SetPoint("TOP", PetStableFrame.backdrop, "TOP", 0, -10)
|
||||||
|
|
||||||
|
EnableClickRotate(PetStableModel)
|
||||||
|
PetStableModelRotateLeftButton:Hide()
|
||||||
|
PetStableModelRotateRightButton:Hide()
|
||||||
|
|
||||||
|
PetStablePetInfo:ClearAllPoints()
|
||||||
|
PetStablePetInfo:SetPoint("TOPLEFT", PetStableModel, "TOPLEFT", 10, 0)
|
||||||
|
|
||||||
|
local buttons = {"PetStableCurrentPet", "PetStableStabledPet1", "PetStableStabledPet2"}
|
||||||
|
for _,v in pairs(buttons) do
|
||||||
|
local button = _G[v]
|
||||||
|
StripTextures(button)
|
||||||
|
SkinButton(button, nil, nil, nil, _G[button:GetName().."IconTexture"])
|
||||||
|
|
||||||
|
button.Enable = function()
|
||||||
|
button:SetBackdropColor()
|
||||||
|
button.locked = false
|
||||||
|
end
|
||||||
|
button.Disable = function()
|
||||||
|
button:SetBackdropColor(1, .1, .1, .3)
|
||||||
|
button.locked = true
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
SkinButton(PetStablePurchaseButton)
|
||||||
|
end)
|
||||||
Reference in New Issue
Block a user