benilla-re systems structs docs

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

offsetsizetypenamemeaningconfidencefinding
0x000032char[32]m_nameHolds the window's name, empty until setverified, proof oneui/chatwindows#window-records
0x002068uint8_t[68]m_groupFlagsHolds one flag byte per message group, set when the window shows the groupverified, proof oneui/chatwindows#window-records
0x006416uint32_t[4]m_channelNamesHolds the header of the array of channel names, its count at +0x68 and slots at +0x6cverified, proof oneui/chatwindows#window-records
0x007416uint32_t[4]m_channelIdsHolds the header of the array of channel ids, its count at +0x78 and slots at +0x7cverified, proof oneui/chatwindows#window-records
0x00844int32_tm_fontSizeHolds the font size set by SetChatWindowSize, 0 until setverified, proof oneui/chatwindows#setting-colour-alpha-and-size
0x00884uint32_tm_colorHolds the background colour as bytes blue, green, red, alphaverified, proof oneui/chatwindows#setting-colour-alpha-and-size
0x008c4int32_tm_lockedHolds the locked flag, 1 at start-upverified, proof oneui/chatwindows#locked-docked-shown-and-name
0x00904int32_tm_dockedHolds the dock position, an integer the interface choosesverified, proof oneui/chatwindows#locked-docked-shown-and-name
0x00944int32_tm_shownHolds the shown flagverified, proof oneui/chatwindows#locked-docked-shown-and-name

Globals of this type