benilla-re systems structs docs

BeginLoadingScreen

function · loadingscreen · primitive

Address
0x406640 · 443 bytes, up to 0x4067fa
Signature
void __fastcall (uint32_t mapId)
Meaning
Lays out the tip text when one is set, stores the map id and raises the screen
Confidence
verified, proof one
Finding
loadingscreen/screen#tip-text

Finding: Tip text in loadingscreen: screen

0x406630 stores the tip text pointer in 0x882e10. When it is set, 0x406640 lays the text out once into a one-string batch that the plain screen draws every frame. The font is Fonts\FRIZQT__.TTF, except Fonts\2002.TTF for koKR and Fonts\FZLBJW.TTF for zhCN and zhTW, at 0.018 of the scaled height. With the scaled aspect a, the wrap width is s = 515 / (a·1024) rounded through the horizontal scale and back, and the position (0.5 − s·0.5, 0.025 + 0.075 + yoff, 0) with yoff = (1 − a)·0.5 for a < 1, else 0. The text is a copy with trailing CR and LF cut; the colour is 0xd7c8c8c8, with a black shadow offset (0.001, −0.001).

The derivation is in the doc.

Callers 2

Callees 13

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