s_float768
global · ui
- Address
0x80458c· 4 bytes, up to0x80458f- Type
const float- Meaning
- Holds 768.0, the interface height the automatic scale divides by
- Confidence
- verified, proof one
- Finding
- ui/uiscale#the-automatic-scale
Finding: The automatic scale in ui: The interface scale
With useUiScale off, which is the default, UIParent is not left at 1.0. Its scale is 768 over the
window's height when the height is above 768, else 1.0; capped to 0.75·a for an aspect under 4/3; and
raised to at least 0.9. It is applied when the display mode is set and when useUiScale is turned off.
The result is 0.9 at 1920×1080 and 2560×1440 and 0.96 at 1280×800.
The derivation is in the doc.