benilla-re systems structs docs

GetSelectedAreaName

function · ui · primitive

Address
0x4a6cf0 · 94 bytes, up to 0x4a6d4d
Meaning
Returns the name field of the selected WorldMapArea row, 0 for none
Confidence
verified, proof one
Finding
ui/worldmap#the-getters
Test
ui::worldmap_selected_area_name

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 0

None by a direct call or jump.

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