WoW:API ProcessMapClick: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 23: Line 23:


: This is one of Blizzard's "magic" functions. It set the world map zoom in dependence on the click coordinates, issuing appropriate events.
: This is one of Blizzard's "magic" functions. It set the world map zoom in dependence on the click coordinates, issuing appropriate events.
----
----
{{Template:WoW API}}
{{WoW API}}
[[Category:API Functions|ProcessMapClick]]
[[Category:API World Map Functions|ProcessMapClick]]

Revision as of 05:26, 4 January 2006

ProcessMapClick -Documentation by Meog-

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

ProcessMapClick(x, y)

Arguments
(x, y)
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.

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

Template:WoW API