WORLDTEXTSTRING
struct · playername · 128 bytes
- Vtable
0x811314- Meaning
- Holds a floating text: category, position, colour, start time and string
- Confidence
- verified, proof one
- Finding
- playername/worldtext#text-record
Finding: Text record in playername: world text
A text record (WORLDTEXTSTRING, 0x80 bytes, vtable 0x811314) holds the category, the world
position, the colour, the start time and the string. The constructor takes the category, the
position, the text, an optional colour and an optional icon value.
| offset | holds |
|---|---|
+0x00 | vtable 0x811314; slot 0 is 0x6c8650 |
+0x08 | category 0 to 5 |
+0x0c, +0x10 | half the string's width and height |
+0x14 to +0x1c | the world position |
+0x20 | the colour dword; byte 3 is the text alpha |
+0x24 | the start time in milliseconds |
+0x28 | the string handle |
+0x2c | the cached size, −1.0 at construction |
+0x30 to +0x38 | the screen anchor |
+0x3c | the text, 0x40 bytes |
+0x7c | the rank icon value, category 5 only |
The derivation is in the doc.
Fields 12
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 4 | void * | __vfptr | Holds the vtable pointer | verified, proof one | playername/worldtext#text-record |
0x0008 | 4 | uint32_t | m_category | Holds the category row index, 0 to 5 | verified, proof one | playername/worldtext#text-record |
0x000c | 4 | float | m_halfWidth | Holds half the string's measured width | verified, proof one | playername/worldtext#text-record |
0x0010 | 4 | float | m_halfHeight | Holds half the string's measured block height | verified, proof one | playername/worldtext#text-record |
0x0014 | 12 | float[3] | m_position | Holds the world position | verified, proof one | playername/worldtext#text-record |
0x0020 | 4 | uint32_t | m_color | Holds the colour dword; byte 3 is the text alpha | verified, proof one | playername/worldtext#text-record |
0x0024 | 4 | uint32_t | m_startTime | Holds the clock value at construction, in milliseconds | verified, proof one | playername/worldtext#text-record |
0x0028 | 4 | void * | m_string | Holds the string handle | verified, proof one | playername/worldtext#text-record |
0x002c | 4 | float | m_size | Holds the cached size, -1.0 at construction | verified, proof one | playername/worldtext#text-record |
0x0030 | 12 | float[3] | m_screenAnchor | Holds the screen anchor the draw writes | verified, proof one | playername/worldtext#text-record |
0x003c | 64 | char[64] | m_text | Holds the text | verified, proof one | playername/worldtext#text-record |
0x007c | 4 | uint32_t | m_iconValue | Holds the rank icon value of a category 5 text | verified, proof one | playername/worldtext#text-record |