mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
Compared Macro::ShowTooltip against 3.3.5's decompiled MACRONODE::Parse, FindSpellID and GetFullIconPath (WoW/Source/Ui/UIMacros.cpp) and fixed the differences: - Every macro body is parsed, directive or not. A question-mark macro with no #show now shows its first action's icon, and its button follows that action's cooldown, count and usable state; the tooltip stays the engine's (Kind::Implicit). #show counts anywhere in the body, not only on line 1. - "#showtooltip none" stops the parse: the macro keeps its own icon and holds no spell, instead of greying out. - /castrandom and /userandom show their first entry (3.3.5 cuts the value at the first comma); they used to grey the button. - /equip and /equipslot lines are collected and resolve to items only. - Bare numbers 1..23 are inventory slots, the equipped bags included. Edits now always end in a repaint, as 3.3.5's EditMacro does: the engine repaints a macro's buttons straight after its parse, before our rescan, so a re-parsed body is marked and repainted on the next tick, and a reader's catch-up defers its repaint instead of firing ACTIONBAR_SLOT_CHANGED from inside a button handler. Implicit macros are also parked across the unlearn sweep, so a condition-picked value can't delete a macro from the bar.