pagemaster: page modifiers via override bindings; hoverbind: warn on conflicts

The old pagemaster wipe block checked a setting that was migrated away and
never ran, so saved MOD-key bindings beat the paged action. Override every
key bound to ACTIONBUTTON1-12 for each enabled page modifier instead; the
saved binding set stays untouched.

Hoverbind now reports when a bind takes a key from another action, and when
an override masks the new bind.
This commit is contained in:
Brues
2026-10-22 20:59:30 -05:00
parent 287a4ed46c
commit 340bd9be9e
2 changed files with 38 additions and 13 deletions
+16 -2
View File
@@ -105,6 +105,10 @@ pfUI:RegisterModule("hoverbind", function ()
end
end
local function BindingName(command)
return _G["BINDING_NAME_" .. command] or command
end
function pfUI.hoverbind:GetPrefix()
return string.format("%s%s%s",
(IsAltKeyDown() and modifiers.ALT or ""),
@@ -165,9 +169,19 @@ pfUI:RegisterModule("hoverbind", function ()
end
else
-- Create new binding
local key = map and map[arg1] or arg1
if (SetBinding(prefix..key, binding)) then
local key = prefix .. (map and map[arg1] or arg1)
local previous = GetBindingAction(key)
if (SetBinding(key, binding)) then
SaveBindings(GetCurrentBindingSet())
if previous and previous ~= "" and previous ~= binding then
DEFAULT_CHAT_FRAME:AddMessage("|cff33ffcc" .. key .. "|r " .. T["was unbound from"] .. " " .. BindingName(previous))
end
local active = GetBindingAction(key, true)
if active ~= binding then
DEFAULT_CHAT_FRAME:AddMessage("|cff33ffcc" .. key .. "|r " .. T["is currently overridden by"] .. " " .. BindingName(active))
end
end
end
end