+local function startGlow(button, slot, spell)
+ local stype, id, _ = GetActionInfo(slot);
+ if stype == "spell" and id == spell then
+ button.glow:Show();
+ elseif stype == "macro" then
+ local _, _, macroid = GetMacroSpell(id);
+ if macroid and macroid == spell then
+ button.glow:Show();
+ end
+ end
+ -- TODO FlyoutHasSpell glow
+end
+
+local function stopGlow(button, slot, spell)
+ local stype, id, _ = GetActionInfo(slot);
+ if stype == "spell" and id == spell then
+ button.glow:Hide();
+ elseif stype == "macro" then
+ local _, _, macroid = GetMacroSpell(id);
+ if macroid and macroid == spell then
+ button.glow:Hide();
+ end
+ end
+ -- TODO FlyoutHasSpell glow
+end
+