Wowpedia

We have moved to Warcraft Wiki. Click here for information and the new URL.

READ MORE

Wowpedia
No edit summary
 
({{wowapi}}, formatting.)
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
  +
{{wowapi}} __NOTOC__
<center>'''ProcessMapClick''' ''-Documentation by [[user:Meog|Meog]]-''</center>
 
 
Passes a click on the map to the client, which then calculates if the zone has to be changed
   
 
ProcessMapClick(x, y)
Passes a click to the client, which then calculates if the zone has to be changed
 
   
  +
==Parameters==
ProcessMapClick(ax, ay)
 
 
===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==
----
 
;''Arguments''
 
 
:Number ax, Number ay
 
:;ax : x position of the click (in percent, relative to WorldMapDetailFrame)
 
:;ay : y position of the click (in percent, relative to WorldMapDetailFrame)
 
 
----
 
;''Returns''
 
 
:;nil
 
 
----
 
;''Example''
 
 
ProcessMapClick(0.456742343, 0.623435432);
 
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==
;''Result''
 
 
This is one of Blizzard's "magic" functions. It set the world map zoom in dependence on the click coordinates, issuing appropriate events.
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.
 
----
 
{{Template:WoW API}}
 

Revision as of 17:00, 23 December 2006

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.