mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
Backport of the TBC (2.4.0) tooltip method. Fills the tooltip with the slot's active totem as two native lines - name (NORMAL_FONT_COLOR) and time remaining (white) - mirroring retail's Script_GameTooltip_SetTotem (verified against the 3.3.5 binary; the two line colors are read verbatim from its color data). Built with the engine's own per-tooltip clear plus raw add-line - no Lua method dispatch - and shows itself via Script_Show, matching retail's TotemFrame.xml OnEnter which calls SetTotem with no trailing :Show(). The time line mirrors SecondsToTimeAbbrev (raw seconds under a minute, minutes rounded up above) and localizes through the FrameXML GlobalStrings SPELL_TIME_REMAINING_SEC/_MIN with English fallbacks; slot data is the existing GetTotemInfo tracker.