Frame::SetScript
function · ui · orchestration
- Address
0x7748d0· 368 bytes, up to0x774a3f- Signature
int __fastcall (lua_State *L)- Meaning
- Sets a frame's handler slot to a function or nil with the current context word, enabling no input
- Confidence
- verified, proof one
- Finding
- ui/framexml#script-elements
Finding: Script elements in ui: loading the interface from toc and XML files
Each child of Scripts sets the handler of its tag. Setting releases the slot's function first, so
a frame's own handler replaces its template's, and only one OnLoad runs. An empty body stores 0,
no handler, which GetScript answers as nil. A body that fails to compile stores −1 and leaves the
compiler's message on the Lua stack, unreported; firing such a slot calls nil, an error each time.
A tag the frame has no slot for reports Unknown script element %s. The input a handler needs is
enabled even for an empty body; Lua's SetScript enables nothing.
The derivation is in the doc.
Callers 0
None by a direct call or jump.
Callees 9
- lua_settop lua
- lua_type lua
- lua_isstring lua
- lua_tostring lua
- lua_touserdata lua
- lua_rawgeti lua
- luaL_error lua
- luaL_ref lua
- FrameScriptReleaseScript ui
Calls and jumps by a bare address, from tables/calls.tsv.