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
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 4 | void ** | __vfptr | Holds the region's main vtable | verified, proof one | ui/frames#vtables-and-the-two-parts |
0x0004 | 4 | uint32_t | m_tableHolders | Counts the holders of the object's Lua table | verified, proof two | ui/script#the-script-object |
0x0008 | 4 | int32_t | m_tableRef | Holds the registry reference of the Lua table, -2 for none | verified, proof two | ui/script#the-script-object |
0x000c | 8 | uint32_t[2] | m_onEvent | Holds the OnEvent script slot: function reference and context word | verified, proof two | ui/script#the-script-object |
0x0014 | 4 | uint32_t | m_eventCapacity | Holds the capacity of the event index array | verified, proof two | ui/script#the-script-object |
0x0018 | 4 | uint32_t | m_eventCount | Holds the number of events the object listens to | verified, proof two | ui/script#registering-for-an-event |
0x001c | 4 | uint32_t * | m_events | Points to the indices of the events the object listens to | verified, proof two | ui/script#registering-for-an-event |
0x0024 | 116 | CLayoutFrame | m_layout | Holds the region's layout part | verified, proof one | ui/frames#vtables-and-the-two-parts |
0x0098 | 4 | char * | m_name | Holds the region's expanded name, or null | verified, proof two | ui/frames#names-and-lookup-by-name |
0x009c | 4 | CSimpleFrame * | m_parent | Holds the parent frame, or null | verified, proof one | ui/frames#vtables-and-the-two-parts |