mirror of
https://github.com/brues-code/ClassicAPI.git
synced 2026-11-16 16:10:36 +00:00
Retail's contract, probed on 5.5.4: a frame, texture or font string goes back to the state its class constructs it in, not the one it was created in, so template values, a font string's creation font and a button's construction-time mouse input are lost. The parent, keyboard and wheel input, registered events, child regions and Lua fields stay. 1.12's constructor values agree with the probed reset (MEDIUM, parent level + 1, no font, white text, black shadow at 0,0, CENTER/MIDDLE, gradient -1). Values reset through each object's own methods, looked up through its vtable's method lookup, so neither table fields nor a replaced metatable (Blizzard_Menu's Compositor replaces them) are consulted and every backport keeps its state in step. Engine paths where no method expresses the default: every script slot released and emptied as SetScript(nil) does; Frame::Attributes::ClearAll, firing no OnAttributeChanged; the text of a font string or button label through the font string's SetText member; the font unlinked and cleared through the engine's own no-font store; the follower mask and alpha gradient back to their constructor values. Verified against the retail snapshot property by property on 1.12. Not copied: retail leaves a hidden frame IsShown() but not IsVisible() after the reset; this one shows it.