Navigation menu

WoW:API ProcessMapClick: Difference between revisions

Jump to navigation Jump to search
m
Recategorized
No edit summary
 
m (Recategorized)
Line 1: Line 1:
  <center>'''ProcessMapClick''' ''-Documentation by [[user:Meog|Meog]]-''</center>
  <center>'''ProcessMapClick''' ''-Documentation by [[user:Meog|Meog]]-''</center>


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


  ProcessMapClick(ax, ay)
  ProcessMapClick(x, y)


----
----
;''Arguments''
;''Arguments''


:Number ax, Number ay
:(x, y)
:;ax : x position of the click (in percent, relative to WorldMapDetailFrame)
:;x : Number - X position of the click (A proportion between 0 and 1, relative to WorldMapDetailFrame)
:;ay : y position of the click (in percent, relative to WorldMapDetailFrame)
:;y : Number - Y position of the click (A proportion between 0 and 1, relative to WorldMapDetailFrame)
 
----
;''Returns''
 
:;nil


----
----
Line 22: Line 17:


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


----
----
;''Description''
;''Description''


: This is one of Blizzard's "magic" functions. It set the world map zoom in dependence on the click coordinates.
: 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}}
{{Template:WoW API}}
[[Category:API World Map Functions|ProcessMapClick]]
Anonymous user