benilla-re systems structs docs

CScriptRegion

struct · ui · 160 bytes

Vtable
0x81c580
Meaning
Holds a script object part, a CLayoutFrame at +0x24, a name and a parent
Confidence
verified, proof one
Finding
ui/frames#vtables-and-the-two-parts

Finding: Vtables and the two parts in ui: the frame object model

CScriptRegion's vtables are 0x81c580 and, for its layout part, 0x81c5a0; CSimpleFrame's are 0x81c498, 36 slots, and 0x81c46c; the title region's are 0x81c554 and 0x81c528. The first eight slots of each main vtable are those of the script object: the deleting destructor, the name, the method table, the script slot by name, the type test by id, the parent setter, the type test by name and the type name. A layout slot that must act on the frame is a thunk that moves ecx back by 0x24.

The derivation is in the doc.

Fields 10

offsetsizetypenamemeaningconfidencefinding
0x00004void **__vfptrHolds the region's main vtableverified, proof oneui/frames#vtables-and-the-two-parts
0x00044uint32_tm_tableHoldersCounts the holders of the object's Lua tableverified, proof twoui/script#the-script-object
0x00084int32_tm_tableRefHolds the registry reference of the Lua table, -2 for noneverified, proof twoui/script#the-script-object
0x000c8uint32_t[2]m_onEventHolds the OnEvent script slot: function reference and context wordverified, proof twoui/script#the-script-object
0x00144uint32_tm_eventCapacityHolds the capacity of the event index arrayverified, proof twoui/script#the-script-object
0x00184uint32_tm_eventCountHolds the number of events the object listens toverified, proof twoui/script#registering-for-an-event
0x001c4uint32_t *m_eventsPoints to the indices of the events the object listens toverified, proof twoui/script#registering-for-an-event
0x0024116CLayoutFramem_layoutHolds the region's layout partverified, proof oneui/frames#vtables-and-the-two-parts
0x00984char *m_nameHolds the region's expanded name, or nullverified, proof twoui/frames#names-and-lookup-by-name
0x009c4CSimpleFrame *m_parentHolds the parent frame, or nullverified, proof oneui/frames#vtables-and-the-two-parts