actionbar: option to toggle mod paging separately

This commit is contained in:
Jason Gibson
2025-02-04 18:09:50 +01:00
committed by shagu
parent cedee86c4c
commit ab898f6ae4
2 changed files with 20 additions and 4 deletions
+17 -3
View File
@@ -960,14 +960,27 @@ pfUI:RegisterModule("actionbar", "vanilla:tbc", function ()
-- setup page switch frame
local pageswitch = CreateFrame("Frame", "pfActionBarPageSwitch", UIParent)
pageswitch:SetScript("OnUpdate", function()
if C.bars.pagemaster == "1" then
-- a different block for each mod key
if C.bars.pagemastershift == "1" then
if IsShiftKeyDown() then
SwitchBar(shift)
return
elseif IsControlKeyDown() then
else
SwitchBar(default)
end
end
if C.bars.pagemasterctrl == "1" then
if IsControlKeyDown() then
SwitchBar(ctrl)
return
elseif IsAltKeyDown() then
else
SwitchBar(default)
end
end
if C.bars.pagemasteralt == "1" then
if IsAltKeyDown() then
SwitchBar(alt)
return
else
@@ -975,6 +988,7 @@ pfUI:RegisterModule("actionbar", "vanilla:tbc", function ()
end
end
if C.bars.druidstealth == "1" then
local stealth = IsCatStealth()
if stealth and _G.CURRENT_ACTIONBAR_PAGE == 1 then