benilla-re systems structs docs

Script::ProcessMapClick

function · ui · orchestration

Address
0x4a7f30 · 110 bytes, up to 0x4a7f9d
Signature
int __fastcall (lua_State *L)
Meaning
Drills into the map area under the cursor, pushing nothing
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/worldmap#hover-and-click

Finding: Hover and click in ui: the world map

UpdateMapHighlight(x, y) pushes eight values and ProcessMapClick(x, y) none; both take the cursor as fractions of the map. 0x4a7620 finds the hovered row: none for a direct area; at the world level the continent whose normalised rectangle holds the point (edges inclusive, record offsets +0x10014 to +0x10020); otherwise the .zmp cell id from 0x4a6ec0, which is 0 when the cell is the selected zone's own row. 0x4a7540 drills: nothing for a direct area; at the world level SetMap(continent, -1) for the continent hit; otherwise it finds the cell's row among the current continent's children and selects it, whether a continent or a zone is displayed.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 4

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