|
|
| Line 1: |
Line 1: |
| − |
<center>'''GetMapOverlayInfo''' ''-Documentation by [[user:Flickering|Flickering]]-''</center> |
+ |
{{wowapi}} __NOTOC__ |
| − |
|
+ |
Returns the information about an overlay on the current world map. |
| |
textureName, texWidth, texHeight, ofsX, ofsY, mapX, mapY = GetMapOverlayInfo(overlayIndex); |
|
textureName, texWidth, texHeight, ofsX, ofsY, mapX, mapY = GetMapOverlayInfo(overlayIndex); |
| |
|
|
|
| − |
Returns the information about an overlay on the current world map. |
+ |
==Parameters== |
| − |
|
+ |
===Arguments=== |
| − |
---- |
|
| − |
;''Arguments'' |
|
| − |
|
|
| − |
:(overlayIndex) |
|
| |
:;overlayIndex : Number - Indicates which overlay to query (from 1 to [[API GetNumMapOverlays|GetNumMapOverlays()]]) |
|
:;overlayIndex : Number - Indicates which overlay to query (from 1 to [[API GetNumMapOverlays|GetNumMapOverlays()]]) |
| |
|
|
|
| − |
---- |
+ |
===Returns=== |
| − |
;''Returns'' |
|
| − |
|
|
| − |
:textureName, texWidth, texHeight, ofsX, ofsY, mapX, mapY |
|
| |
:;textureName : String - The path of the overlay texture |
|
:;textureName : String - The path of the overlay texture |
| |
:;texWidth : Number - The width of the resulting texture in pixels. |
|
:;texWidth : Number - The width of the resulting texture in pixels. |
| Line 15: |
Line 15: |
| |
:;mapX : Number - Unknown - always 0 and not used in UI. |
|
:;mapX : Number - Unknown - always 0 and not used in UI. |
| |
:;mapY : Number - Unknown - always 0 and not used in UI. |
|
:;mapY : Number - Unknown - always 0 and not used in UI. |
| − |
|
|
| − |
---- |
|
| − |
{{WoW API}} |
|
Returns the information about an overlay on the current world map.
textureName, texWidth, texHeight, ofsX, ofsY, mapX, mapY = GetMapOverlayInfo(overlayIndex);
Parameters
Edit
Arguments
Edit
- overlayIndex
- Number - Indicates which overlay to query (from 1 to GetNumMapOverlays())
- textureName
- String - The path of the overlay texture
- texWidth
- Number - The width of the resulting texture in pixels.
- texHeight
- Number - The height of the resulting texture in pixels.
- ofsX
- Number - X direction pixel offset of the overlay texture from the map texture
- ofsY
- Number - Y direction pixel offset of the overlay texture from the map texture
- mapX
- Number - Unknown - always 0 and not used in UI.
- mapY
- Number - Unknown - always 0 and not used in UI.