CreateWorldMapArrow
function · ui · primitive
- Address
0x4a7a80· 148 bytes, up to0x4a7b13- Meaning
- Creates the world map arrow's model frame once and sets its scale to G48 times 5/3
- Confidence
- verified, proof one
- Finding
- ui/modelview#model-scale-from-xml
- Test
ui::glue_4a6_4a7a80_4a7b20_4a7b80_fmul_scales
Finding: Model scale from XML in ui: Model frames, camera and paint
The scale attribute exists on Model elements only, and it sets the model scale at +0x3a0, never the
frame scale. A value that is not greater than 0, or is NaN, raises Frame %s: Invalid model scale: %s
and leaves the scale unchanged. Other frame types ignore the attribute. The game builds nine minimap
model frames and a world-map arrow with the same constructor and stores a scale into each after
construction: 0.6 into eight minimap widgets, and G48 · 5/3 into the minimap's player arrow and the
world-map arrow, which the root transform multiplies in again, giving s = (G48 · 5/3)² · layoutScale,
0.668 at 16:9, while the aspect is unchanged since the widget was built.
The derivation is in the doc.
Callers 1
Callees 5
- MultiplyByScreenScaleY screencoord
- CenterArrowModel ui
- SMemAlloc storm
- CM2Model::IsLoaded models
- CSimpleModel::CSimpleModel ui
Calls and jumps by a bare address, from tables/calls.tsv.