From b826b63ca728aa15df6e0423c9fe55cc860f229f Mon Sep 17 00:00:00 2001 From: shagu Date: Tue, 18 Oct 2016 21:36:20 +0200 Subject: [PATCH] fix pet actionbar buttons --- modules/actionbar.lua | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/modules/actionbar.lua b/modules/actionbar.lua index cb0dffc1..c9e2af5b 100644 --- a/modules/actionbar.lua +++ b/modules/actionbar.lua @@ -61,11 +61,8 @@ pfUI:RegisterModule("actionbar", function () SlidingActionBarTexture1:Hide() SlidingActionBarTexture1.Show = function () return end - PetActionBar_Update() - if (PetHasActionBar()) then - --ShowPetActionBar() - --LockPetActionBar() + PetActionBar_Update() pfUI.bars.pet:Show() pfUI.bars.pet:SetFrameStrata("LOW") pfUI.bars.pet:SetPoint("BOTTOM", pfUI.bars.bottom, "TOP", 0, 5) @@ -75,7 +72,7 @@ pfUI:RegisterModule("actionbar", function () pfUI.bars.pet:SetHeight(pfUI_config.bars.border*3 + pfUI_config.bars.icon_size * 1 + pfUI_config.bars.border) PetActionBarFrame:ClearAllPoints() - PetActionBarFrame:SetAllPoints(pfUI.bars.pet) + PetActionBarFrame:Hide() PetActionButton1:ClearAllPoints() PetActionButton1:SetParent(pfUI.bars.pet) @@ -83,7 +80,7 @@ pfUI:RegisterModule("actionbar", function () for i=2, 10 do local b = getglobal("PetActionButton"..i) local b2 = getglobal("PetActionButton"..i-1) - b:SetAllPoints(pfUI.bars.pet) + b:SetParent(pfUI.bars.pet) b:ClearAllPoints() b:SetPoint("LEFT", b2, "RIGHT", pfUI_config.bars.border, 0) end