mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-05 21:20:00 +00:00
actionbar: option to toggle mod paging separately
This commit is contained in:
+17
-3
@@ -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
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user