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
+3 -1
View File
@@ -1994,7 +1994,9 @@ pfUI:RegisterModule("gui", "vanilla:tbc", function ()
CreateConfig(nil, T["Cooldown Text Size"], C.bars, "cd_size")
CreateConfig(nil, T["Auto Paging"], nil, nil, "header")
CreateConfig(U["bars"], T["Switch Pages On Meta Key Press"], C.bars, "pagemaster", "checkbox")
CreateConfig(U["bars"], T["Switch Pages On Alt Key Press"], C.bars, "pagemasteralt", "checkbox")
CreateConfig(U["bars"], T["Switch Pages On Shift Key Press"], C.bars, "pagemastershift", "checkbox")
CreateConfig(U["bars"], T["Switch Pages On Ctrl Key Press"], C.bars, "pagemasterctrl", "checkbox")
CreateConfig(U["bars"], T["Switch Pages On Druid Stealth"], C.bars, "druidstealth", "checkbox")
CreateConfig(nil, T["Range Based Hunter Paging"], C.bars, "hunterbar", "checkbox", nil, nil, nil, nil, "vanilla")
end)