benilla-re systems structs docs

Script::AddChatWindowChannel

function · ui · primitive

Address
0x4a1000 · 593 bytes, up to 0x4a1250
Signature
int __fastcall (lua_State *L)
Meaning
Adds a channel to a window and pushes its ChatChannels id, 0 for a custom channel
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/chatwindows#channels-of-a-window

Finding: Channels of a window in ui: chat windows and their settings file

A window keeps channel names beside ids. GetChatWindowChannels(index) returns, for each non-null slot, the name and then the id as a number. AddChatWindowChannel(index, name) returns one number: the ChatChannels row id when name is a row's shortcut, 0 for any other channel. For a shortcut it stores the row's own shortcut string, not the argument, and returns nothing while no zone text is set (GetRealZoneText is nil or empty). A name already present is not stored twice. RemoveChatWindowChannel takes a name or the number of a joined channel and clears the matching slot; it returns no values.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 11

Calls and jumps by a bare address, from tables/calls.tsv.