Script::GetMapZones
function · ui · primitive
- Address
0x4a7d10· 146 bytes, up to0x4a7da1- Signature
int __fastcall (lua_State *L)- Meaning
- Pushes the zone names of a continent and returns their count
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- Finding
- ui/worldmap#the-getters
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 0
None by a direct call or jump.
Callees 7
- __ftol crt
- GetContinentZoneName ui
- lua_checkstack lua
- lua_isnumber lua
- lua_tonumber lua
- lua_pushstring lua
- luaL_error lua
Calls and jumps by a bare address, from tables/calls.tsv.