ChatWindow
struct · ui · 152 bytes
- Meaning
- Holds one chat window: name, group flags, channel name and id arrays, size, colour, locked, docked and shown
- Confidence
- verified, proof one
- Finding
- ui/chatwindows#window-records
Finding: Window records in ui: chat windows and their settings file
The windows are the ten 0x98-byte records at 0xb4fe50 (zero at load), indexed from 1 by Lua. Offsets:
+0x00 name (32 bytes); +0x20 one flag byte per message group (68); +0x64 the channel-name array
header (count +0x68, slots +0x6c); +0x74 the channel-id array header (count +0x78, slots
+0x7c); +0x84 font size (int); +0x88, +0x89, +0x8a, +0x8b blue, green, red, alpha, one
packed dword a<<24 | r<<16 | g<<8 | b; +0x8c locked; +0x90 docked; +0x94 shown. A Lua index
outside 1 to 10 returns with no values and no error in every window function; only a non-number
argument raises the usage error.
The derivation is in the doc.
Fields 9
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0000 | 32 | char[32] | m_name | Holds the window's name, empty until set | verified, proof one | ui/chatwindows#window-records |
0x0020 | 68 | uint8_t[68] | m_groupFlags | Holds one flag byte per message group, set when the window shows the group | verified, proof one | ui/chatwindows#window-records |
0x0064 | 16 | uint32_t[4] | m_channelNames | Holds the header of the array of channel names, its count at +0x68 and slots at +0x6c | verified, proof one | ui/chatwindows#window-records |
0x0074 | 16 | uint32_t[4] | m_channelIds | Holds the header of the array of channel ids, its count at +0x78 and slots at +0x7c | verified, proof one | ui/chatwindows#window-records |
0x0084 | 4 | int32_t | m_fontSize | Holds the font size set by SetChatWindowSize, 0 until set | verified, proof one | ui/chatwindows#setting-colour-alpha-and-size |
0x0088 | 4 | uint32_t | m_color | Holds the background colour as bytes blue, green, red, alpha | verified, proof one | ui/chatwindows#setting-colour-alpha-and-size |
0x008c | 4 | int32_t | m_locked | Holds the locked flag, 1 at start-up | verified, proof one | ui/chatwindows#locked-docked-shown-and-name |
0x0090 | 4 | int32_t | m_docked | Holds the dock position, an integer the interface chooses | verified, proof one | ui/chatwindows#locked-docked-shown-and-name |
0x0094 | 4 | int32_t | m_shown | Holds the shown flag | verified, proof one | ui/chatwindows#locked-docked-shown-and-name |
Globals of this type
0xb4fe50s_chatWindows