actionbar: make stances dodge the pet bar by default

This commit is contained in:
shagu
2025-08-13 21:29:49 +02:00
parent eea59bc94a
commit baad7e7135
+18
View File
@@ -1401,6 +1401,24 @@ pfUI:RegisterModule("actionbar", "vanilla:tbc", function ()
bars[i]:SetPoint("BOTTOM", bars[6], "TOP", 0, 3*border)
elseif i == 12 then -- pet
bars[i]:SetPoint("BOTTOM", bars[6], "TOP", 0, 3*border)
-- make stance bar dodge by default
bars[i]:SetScript("OnShow", function()
if bars[11] and bars[11]:IsShown() then
bars[11]:ClearAllPoints()
bars[11]:SetPoint("BOTTOM", bars[12], "TOP", 0, 3*border)
UpdateMovable(bars[11], true)
end
end)
-- restore old stance bar position
bars[i]:SetScript("OnHide", function()
if bars[11] and bars[11]:IsShown() then
bars[11]:ClearAllPoints()
bars[11]:SetPoint("BOTTOM", bars[6], "TOP", 0, 3*border)
UpdateMovable(bars[11], true)
end
end)
else -- others
bars[i]:SetPoint("TOP", 0, -i*50)
end