mirror of
https://github.com/brues-code/pfUI.git
synced 2026-10-09 23: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
|
||||
|
||||
Reference in New Issue
Block a user