benilla-re systems structs docs

CSimpleTexture::PreLoadXML

function · ui · orchestration

Address
0x76fdf0 · 41 bytes, up to 0x76fe18
Signature
void __thiscall (CSimpleTexture *this, XMLNode *node, CStatus *status)
Meaning
Names a texture from its XML node's name attribute when it is not empty
Confidence
verified, proof two
Finding
ui/frames#a-textures-name-from-xml

Finding: A texture's name from XML in ui: the frame object model

0x76fdf0(texture, node, status) reads the node's name attribute and, when it is present and not empty, names the texture with SetName, ignoring status. The XML texture builder runs it on each Texture element before the texture's load. CreateTexture(name, layer, template) sets the Lua name first and then, with a template found, runs it on the template's node, so a template node with a name names the texture a second time: +0x98 takes the template's name, expanded against the texture's parent, while the global of the passed name stays bound to it, since LockScriptObject binds a global only while it is nil and never clears one; it also raises the lock count +0x4 again.

The derivation is in the doc.

Callers 2

Callees 2

Calls and jumps by a bare address, from tables/calls.tsv.