{{wowapi}}, format
No edit summary |
({{wowapi}}, format) |
||
| Line 1: | Line 1: | ||
{{wowapi}} __NOTOC__ | |||
name, fileName, texPctX, texPctY, texX, texY, scrollX, scrollY = UpdateMapHighlight(x, y); | name, fileName, texPctX, texPctY, texX, texY, scrollX, scrollY = UpdateMapHighlight(x, y); | ||
Provides rollover region detection for the map frame. | Provides rollover region detection for the map frame. | ||
==Parameters== | |||
===Arguments=== | |||
:;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) | ||
===Returns=== | |||
:;name : String - The name of the area which is being pointed at. | :;name : String - The name of the area which is being pointed at. | ||
:;fileName : String - The filename of the highlight texture to use, or <tt>nil</tt> if none. | :;fileName : String - The filename of the highlight texture to use, or <tt>nil</tt> if none. | ||
| Line 24: | Line 16: | ||
:;scrollX : Number - The X location of the start of the highlight texture as a proportion of the map's width (between 0 and 1) | :;scrollX : Number - The X location of the start of the highlight texture as a proportion of the map's width (between 0 and 1) | ||
:;scrollY : Number - The Y location of the start of the highlight texture as a proportion of the map's height (between 0 and 1) | :;scrollY : Number - The Y location of the start of the highlight texture as a proportion of the map's height (between 0 and 1) | ||