benilla-re systems structs docs

s_tipText

global · loadingscreen

Address
0x882e10 · 4 bytes, up to 0x882e13
Type
const char *
Meaning
Holds the tip text to lay out, or 0
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.