benilla-re systems structs docs

Script::ChangeChatColor

function · ui · primitive

Address
0x4a07f0 · 495 bytes, up to 0x4a09de
Signature
int __fastcall (lua_State *L)
Meaning
Stores a chat type's colour from three unit values and fires UPDATE_CHAT_COLOR
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/chatcolors#changechatcolor
Test
ui::luabind_4a07f0_change_chat_color

Finding: ChangeChatColor in ui: chat colours

ChangeChatColor(name, r, g, b) needs a string and three numbers (otherwise it raises the usage error). Each colour is int(255.0 * x) truncated, with no clamp; the low byte is stored. The name is matched without case against the 94 registry names and then against the extra names, and both matches are written when both exist. If any entry matched, the function fires UPDATE_CHAT_COLOR with the name given and the three stored bytes times 1/255 as numbers. It returns no values.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 8

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