benilla-re systems structs docs

GameTooltipAddLine

function · ui · orchestration

Address
0x5303b0 · 27 bytes, up to 0x5303ca
Signature
void __thiscall (void *this, const char *text, uint32_t *colour, uint32_t wrap)
Meaning
Adds a single left line in a given colour
Confidence
verified, proof one
Finding
ui/tooltipcontent#the-line-arrays

Finding: The line arrays in ui: Tooltip lines, colours and sizing

A tooltip counts its lines at +0x31c and caps them at +0x320. The left font strings are an array at +0x32c, the right ones at +0x338 and each line's wrap flag is in the array at +0x344. The line core adds one line; two wrappers add a single left line in a given colour and a double line in gold. A line with no text on either side is not added, and a line with a right text never wraps. Clearing, the first act of every fresh build, hides the status bar and all font strings, empties their texts and wrap flags, sets the count and the minimum width to 0 and runs the script slot at +0x44c.

The derivation is in the doc.

Callers 14

Callees 1

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