mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-03 20:20:01 +00:00
actionbar: make stances dodge the pet bar by default
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user