pet: make sure pet buttons are placed above the frame

This commit is contained in:
shagu
2017-01-02 00:29:37 +01:00
parent 0fd03bcb77
commit 66106aa976
+1
View File
@@ -135,6 +135,7 @@ pfUI:RegisterModule("actionbar", function ()
for i=1, NUM_PET_ACTION_SLOTS do
local b = getglobal("PetActionButton"..i)
b:ClearAllPoints()
b:SetFrameLevel(pfUI.bars.pet:GetFrameLevel() + 1)
b:SetParent(pfUI.bars.pet)
pfUI.api:CreateBackdrop(b, default_border)
pfUI.api:BarButtonAnchor(b, "PetActionButton", i, NUM_PET_ACTION_SLOTS, pfUI_config.bars.pet.formfactor, pfUI_config.bars.icon_size, default_border)