WoW:API ProcessMapClick: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (Move page script moved page API ProcessMapClick to API ProcessMapClick without leaving a redirect)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<center>'''ProcessMapClick''' ''-Documentation by [[user:Meog|Meog]]-''</center>
{{wowapi}} __NOTOC__
 
Passes a click on the map 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(x, y)
  ProcessMapClick(x, y)


----
==Parameters==
;''Arguments''
===Arguments===
 
:(x, y)
:;x : Number - X position of the click (A proportion between 0 and 1, relative to WorldMapDetailFrame)
:;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)
:;y : Number - Y position of the click (A proportion between 0 and 1, relative to WorldMapDetailFrame)


----
==Example==
;''Example''
  ProcessMapClick(0.456742343, 0.623435432);
  ProcessMapClick(0.456742343, 0.623435432);
 
===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.


----
==Notes==
;''Description''
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}}
[[Category:API Functions|ProcessMapClick]]
[[Category:API World Map Functions|ProcessMapClick]]

Latest revision as of 04:47, 15 August 2023

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[edit]

Arguments[edit]

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[edit]

ProcessMapClick(0.456742343, 0.623435432);

Result[edit]

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

Notes[edit]

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