benilla-re systems structs docs

Script::UpdateMapHighlight

function · ui · primitive

Address
0x4a7fa0 · 1645 bytes, up to 0x4a860c
Signature
int __fastcall (lua_State *L)
Meaning
Pushes the eight values of the area or overlay under the cursor
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/worldmap#hover-and-click
Test
ui::worldmap_highlight

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 8

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