benilla-re systems structs docs

GetSelectedTextureHeight

function · ui · primitive

Address
0x4a6d50 · 273 bytes, up to 0x4a6e60
Meaning
Returns the map texture height from the selected row's tile counts or rectangle
Confidence
verified, proof one
Finding
ui/worldmap#the-getters
Test
ui::glue_4a6_4a6d50_aspect_ftol

Finding: The getters in ui: the world map

GetMapInfo() pushes three values: the selected row's area name (the row at the direct area for a continent of -1 or less, the continent's own row, or its child), the texture height and its power-of-two round-up. A direct area has no continent row, so its height and round-up are 0. GetCurrentMapContinent() pushes the continent word plus one, so -1 for a direct area, and GetCurrentMapZone() pushes the zone plus one. GetMapContinents() and GetMapZones(continent) push the names of the lists; GetMapZones uses an unsigned bound on continent - 1, so a continent of -1 or -2 pushes none. SetMapZoom(continent [, zone]) calls 0x4a67a0(continent - 1, zone - 1) with -1 for a missing zone.

The derivation is in the doc.

Callers 1

Callees 1

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