WoW API: GetMapLandmarkInfo

From AddOn Studio
Revision as of 18:41, 10 October 2009 by WoWWiki>Howbizr (→‎Returns: Formatting)
Jump to navigation Jump to search

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