benilla-re systems structs docs

UpdateChatBubble

function · ui · primitive

Address
0x4b0c30 · 617 bytes, up to 0x4b0e98
Meaning
Decides a bubble's fate each frame: destroys it, starts its fade-out or keeps it
Confidence
verified, proof one
Finding
ui/chatbubble#fades
Test
ui::dist2_4b0c30

Finding: Fades in ui: the chat bubble

A bubble fades in over 250 ms and out over 250 ms, at the end of its life and whenever its speaker leaves range. Both ramps compute the alpha from their own start time +0x33c: in 255·t/250, out 255 − 255·t/250, integer division; past 250 ms the fade in sets 255 and the fade out hides the frame. Neither reads the alpha the frame holds, so a fade-out that interrupts a fade-in starts from 255. The state word +0x320 holds 1 fading in, 2 fading out, 4 the final fade-out and 8 a new bubble.

The derivation is in the doc.

Callers 1

Callees 8

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