benilla-re systems structs docs

DrillMap

function · ui · primitive

Address
0x4a7540 · 212 bytes, up to 0x4a7613
Meaning
Selects the continent or zone whose rectangle holds the cursor
Confidence
verified, proof one
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 1

Callees 2

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