s_textureTypeId
global · ui
- Address
0xcf4cdc· 4 bytes, up to0xcf4cdf- Type
uint32_t- Meaning
- Holds the script type id of Texture, assigned on first use
- Confidence
- verified, proof one
- Finding
- ui/tooltip#loading-the-template
Finding: Loading the template in ui: GameTooltip, the widget
The tooltip's post-load override (0x529650, slot 9 of CGTooltip::vftable, stored at 0x808f84) runs the frame's PostLoadXML and then finds the template's regions by name. In two passes, the first counting
and the second storing, it looks up <name>TextLeft<n> and <name>TextRight<n> for n from 1 as FontStrings (the name is <unnamed> for an unnamed tooltip) until either is missing. Between
the passes it sizes the three line arrays at +0x324, +0x330 and +0x33c to the count; the second pass stores the left and right regions and 0 in the arrays' data (+0x32c, +0x338, +0x344). It then finds <name>Texture1 to 3
into +0x34c, +0x350, +0x354 and <name>StatusBar into +0x348, each by FindFrameOfType with that type's id.
The derivation is in the doc.