mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-04 04:30:01 +00:00
Don't let the pet bar dodge reposition the stance bar during unlock
The pet bar force-shows in unlock mode, and its OnShow/OnHide dodge handlers re-anchor the stance bar above the pet bar. That yanked the stance bar off its real position while unlocking (dodging a pet bar that isn't actually active), so it appeared to vanish and only returned when unlock ended. Skip the dodge re-anchor while unlock is active so the stance bar stays put and can be positioned.
This commit is contained in:
@@ -1356,6 +1356,7 @@ pfUI:RegisterModule("actionbar", function ()
|
||||
|
||||
-- make stance bar dodge by default
|
||||
bars[i]:SetScript("OnShow", function()
|
||||
if pfUI.unlock and pfUI.unlock:IsShown() then return end
|
||||
if bars[11] and bars[11]:IsShown() then
|
||||
bars[11]:ClearAllPoints()
|
||||
bars[11]:SetPoint("BOTTOM", bars[12], "TOP", 0, 3*border)
|
||||
@@ -1365,6 +1366,7 @@ pfUI:RegisterModule("actionbar", function ()
|
||||
|
||||
-- restore old stance bar position
|
||||
bars[i]:SetScript("OnHide", function()
|
||||
if pfUI.unlock and pfUI.unlock:IsShown() then return end
|
||||
if bars[11] and bars[11]:IsShown() then
|
||||
bars[11]:ClearAllPoints()
|
||||
bars[11]:SetPoint("BOTTOM", bars[6], "TOP", 0, 3*border)
|
||||
|
||||
Reference in New Issue
Block a user