WoW:API GetMapLandmarkInfo: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
(→‎Returns: Formatting)
m (Robot: Automated text replacement (-[[Image: +[[File:))
Line 17: Line 17:


<onlyinclude>=== Landmarks ===
<onlyinclude>=== Landmarks ===
[[Image:POIIcons.png|center|frame|POIIcons.blp, ''Landmarks for [[API GetMapLandmarkInfo]].'']]
[[File:POIIcons.png|center|frame|POIIcons.blp, ''Landmarks for [[API GetMapLandmarkInfo]].'']]


{{col-begin}}
{{col-begin}}
Line 181: Line 181:
* 154 [[File:IconSmall POI154.png]] - 16x16 <br/><span style="font-size:x-small;">Refinery, Horde assaulted</span>
* 154 [[File:IconSmall POI154.png]] - 16x16 <br/><span style="font-size:x-small;">Refinery, Horde assaulted</span>
{{col-end}}</onlyinclude>
{{col-end}}</onlyinclude>
[[ru:API GetMapLandmarkInfo]]
[[ru:API GetMapLandmarkInfo]]

Revision as of 02:22, 30 April 2010

WoW API < GetMapLandmarkInfo

Returns the information about a landmark on the current world map.

name, description, textureIndex, x, y = GetMapLandmarkInfo(landmarkIndex);

Note that 3.0.2 added more icons (102 now), doubled the size of the POIIcons.blp texture to 256x256 and moved the invisible texture from index 15 to 0.

Parameters

Arguments

landmarkIndex
Number - Indicates which landmark to query (from 1 to GetNumMapLandmarks())

Returns

name
String - The name of the landmark
description
String - A description of the landmark. In Battlegrounds this can dynamic information such as which faction controls the landmark.
textureIndex
Number - An index representing which landmark icon to display. These icons are in Interface\Minimap\POIIcons.blp, in an 16x16 grid (each icon is 16x16). Values are listed in the Landmarks section, below:
x
Number - The X location of the landmark's center (A proportion of the current map's width, between 0 and 1)
y
Number - The Y location of the landmark's center (A proportion of the current map's height, between 0 and 1)

Landmarks

POIIcons.blp, Landmarks for API GetMapLandmarkInfo.

Template:Col-begin Template:Col-5

Template:Col-5

Template:Col-5

Template:Col-5

Template:Col-5

Template:Col-end ru:API GetMapLandmarkInfo