Minor changes

This commit is contained in:
OldManAlpha 2025-08-05 21:47:55 -07:00
parent f952fc85dc
commit cbda126d3b
4 changed files with 6 additions and 2 deletions

View File

@ -60,7 +60,7 @@ SlashCmdList["PUPPETEER"] = function(args)
PTUtil.Colorize("off", 1, 0.6, 0.6) or PTUtil.Colorize("on", 0.6, 1, 0.6))..".")
elseif args == "help" or args == "?" then
DEFAULT_CHAT_FRAME:AddMessage(PTUtil.Colorize("/pt", 0, 0.8, 0).." -- Opens the addon configuration")
DEFAULT_CHAT_FRAME:AddMessage(PTUtil.Colorize("/pt reset", 0, 0.8, 0).." -- Resets all heal frame positions")
DEFAULT_CHAT_FRAME:AddMessage(PTUtil.Colorize("/pt reset", 0, 0.8, 0).." -- Resets all frame positions")
DEFAULT_CHAT_FRAME:AddMessage(PTUtil.Colorize("/pt testui", 0, 0.8, 0)..
" -- Toggles fake players to see how the UI would look")
DEFAULT_CHAT_FRAME:AddMessage(PTUtil.Colorize("/pt toggle", 0, 0.8, 0).." -- Shows/hides the UI")

View File

@ -137,6 +137,9 @@ function ApplyOverrideBindings()
end
function RemoveOverrideBindings()
if util.IsTableEmpty(StoredBindings) then
return
end
StopUpdateBindingsUpdates()
for button, binding in pairs(StoredBindings) do
SetBinding(button, binding)

View File

@ -252,7 +252,6 @@ function _UpdateBindingDisplay(binding, entry)
text = colorize(text.." (Invalid Macro)", 1, 0.4, 0.4)
end
entry.Normal = text
--rightText = colorize(macro.." (Invalid Macro)", 1, 0.4, 0.4)
elseif binding.Type == "SCRIPT" then
entry.Normal = colorize(text or "Script", textColor)
elseif binding.Type == "MULTI" then

View File

@ -500,6 +500,7 @@ function CreateTab_Options_Advanced(panel)
editor:Dispose()
PopOverlayFrame()
end)
editor:GetEditbox():SetFocus()
AddOverlayFrame(editor)
end)
local postLoadScriptInfo = CreateLabel(container, "The Postload Script runs after everything is initialized. "..
@ -523,6 +524,7 @@ function CreateTab_Options_Advanced(panel)
editor:Dispose()
PopOverlayFrame()
end)
editor:GetEditbox():SetFocus()
AddOverlayFrame(editor)
end)
local reloadInfo = CreateLabel(container, "A reload or relog is required for any changes to take effect.")