mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 08:00:42 +00:00
/etrace and /eventtrace now open a backport of retail's Blizzard_EventTrace, the load-on-demand addon ClassicAPI_EventTrace embedded in the DLL. It replaces the old event trace frame in ClassicAPI_DebugTools, and DebugToolsSavedVars with it; the panel saves EventTraceSavedVars. What differs on 1.12.1: - RegisterAllEvents adds the frame to every event slot, so it opens the listener gate of each ClassicAPI event that builds its arguments only for a listener (UNIT_AURA_DELTA, the combat log and cast events). The panel registers all events only while it is shown or logging while hidden; otherwise it keeps PLAYER_LOGOUT, which saves its variables, since this client has no ADDONS_UNLOADING. - An engine event signalled by a number with no name arrives with a nil event and is not logged. - An event's table arguments are copied when logged, and the tooltip lists their contents. UNIT_AURA_DELTA refills the same tables on every fire, so a kept reference shows only the latest delta. - No tool windows, ImGui debug tools or secret values. The window's templates are new shared templates in !!!ClassicAPI: ButtonFrameTemplate and PortraitFrameBaseTemplate (with PortraitFrameMixin / TitledPanelMixin), UIPanelCloseButtonNoScripts, PanelResizeButtonTemplate, InputBoxInstructionsTemplate, SharedTooltipTemplate, VisibleWhilePlayingAnimGroupTemplate, and GameTooltip_AddHighlightLine / GameTooltip_AddColoredDoubleLine. Art this client lacks is drawn with its own textures: tooltip border chrome, the world map magnifier, the cancel button, a turned chat expand arrow for the resize grip, and the panel button in three slices. The scroll bars are the 1.12 bar, whose art is wider than its frame, so the lists leave room for it. Retail's search box is ClassicAPISearchBoxTemplate. Turtle's FrameXML registers its own SearchBoxTemplate first, and 1.12 keeps the first template of a name, so the retail one takes that name only through a TOC line marked [ExcludeLoadGameType turtle]. The EVENTTRACE_* strings and SLASH_EVENTTRACE1-4 come from Classic Era's GlobalStrings for each client locale but koKR.