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
+12
View File
@@ -238,6 +238,18 @@ function HealBot_Options_CDCButRight_OnLoad()
UIDropDownMenu_Initialize(this, HealBot_Options_CDCButRight_DropDown)
UIDropDownMenu_SetWidth(140, this)
end
-- HealBot_Options_CDCToggle_OnClick: UI handler for OnClick event.
function HealBot_Options_CDCToggle_OnClick(spell, button, class)
local spellID = HealBot_GetSpellId(spell)
local spellName = HealBot_GetSpellName(spellID)
if HealBot_Config.CDCLeftText[class]==spellName then
HealBot_Config.CDCLeftText[class]="None"
elseif HealBot_Config.CDCRightText[class]==spellName then
HealBot_Config.CDCRightText[class]="None"
end
HealBot_Options_CDC_SetCombo(spell, button, class)
end
-- HealBot_Options_CDCButLeft_OnSelect: UI handler for OnSelect options panel.
function HealBot_Options_CDCButLeft_OnSelect()
local class=UnitClass("Player");