Fix: removed legacy full ui teardowns of ui on refresh functions with button-specific updates, add CDC toggle logic, and update documentation for mod integrations

This commit is contained in:
Bluewhale1337
2026-08-24 12:52:44 +02:00
parent 6d977f6963
commit 9c1f873b48
4 changed files with 17 additions and 6 deletions
+4 -4
View File
@@ -10,13 +10,13 @@ function HealBot_Options_BuffWatch_OnClick(self)
else
HealBot_Options_BuffWatchInCombat:Enable()
end
HealBot_RecalcParty();
HealBot_Action_RefreshButtons(nil);
end
-- HealBot_Options_BuffWatchInCombat_OnClick: UI handler for OnClick options panel.
function HealBot_Options_BuffWatchInCombat_OnClick(self)
local frame = self or this
HealBot_Config.BuffWatchInCombat = frame:GetChecked() or 0;
HealBot_RecalcParty();
HealBot_Action_RefreshButtons(nil);
end
-- HealBot_Options_BuffSelf_OnLoad: UI handler for OnLoad options panel.
function HealBot_Options_BuffSelf_OnLoad(self)
@@ -42,7 +42,7 @@ function HealBot_Options_BuffSelf_OnClick(self)
else
HealBot_Config.BuffWatchSelf[id] = 0
end
HealBot_RecalcParty();
HealBot_Action_RefreshButtons(nil);
end
-- HealBot_Options_Buff_OnLoad: UI handler for OnLoad options panel.
function HealBot_Options_Buff_OnLoad(self)
@@ -87,7 +87,7 @@ function HealBot_Options_Buff_OnClick()
HealBot_UIDropDownMenu_SetSelectedID(frame, this.value + 1)
UIDropDownMenu_SetText(text, frame)
HealBot_RecalcParty();
HealBot_Action_RefreshButtons(nil);
end
-- HealBot_Options_SetBuffs: UI handler for SetBuffs options panel.
function HealBot_Options_SetBuffs()