benilla-re systems structs docs

AddChatLine

function · ui · primitive

Address
0x49a870 · 1904 bytes, up to 0x49afdf
Meaning
Shows one chat line: rewrites, filters and decorates it, fires its event, bubbles it and logs it
Confidence
verified, proof one
Finding
ui/chatevents#the-chat-line-function

Finding: The chat line function in ui: chat messages and their events

0x49a870(text, type, sender, language, channel, name2, tag, bubbleGuid, rank, reportGuid) (ret 0x28) shows one line. A null text sets last error 0x57 and returns. A language of -1 takes the addon arm. Otherwise it forces the language to 0 for types 8, 10, 13 and 90 and replaces an empty text of type 8 with the global CHAT_EMOTE_UNKNOWN; rewrites the text by language (chatlanguage); decorates the channel name; applies the filters (chatfilter); replaces the sender by a PvP rank title; stores the line in the history; fires the event; tells the keyboard display about a whisper; shows a bubble; and writes the log line.

The derivation is in the doc.

Callers 40

Callees 28

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