WoW API: ProcessMapClick

From AddOn Studio
Revision as of 04:47, 15 August 2023 by Move page script (talk | contribs) (Move page script moved page API ProcessMapClick to API ProcessMapClick without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

WoW API < ProcessMapClick

Passes a click on the map to the client, which then calculates if the zone has to be changed

ProcessMapClick(x, y)

Parameters

Arguments

x
Number - X position of the click (A proportion between 0 and 1, relative to WorldMapDetailFrame)
y
Number - Y position of the click (A proportion between 0 and 1, relative to WorldMapDetailFrame)

Example

ProcessMapClick(0.456742343, 0.623435432);

Result

Changes the world map zoom to another zone, if Blizzard has defined the region of the click as a link.

Notes

This is one of Blizzard's "magic" functions. It set the world map zoom in dependence on the click coordinates, issuing appropriate events.