WoW:API GetMapLandmarkInfo: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
m (Move page script moved page API GetMapLandmarkInfo to API GetMapLandmarkInfo without leaving a redirect)
 
(9 intermediate revisions by 9 users not shown)
Line 1: Line 1:
{{wowapi}} __NOTOC__
{{wowapi}}
Returns the information about a landmark on the current world map.
Returns the information about a landmark on the current world map.
  name, description, textureIndex, x, y = GetMapLandmarkInfo(landmarkIndex);
  name, description, textureId, x, y = GetMapLandmarkInfo(landmarkId)


==Parameters==
== Parameters ==
===Arguments===
=== Arguments ===
:;landmarkIndex : Number - Indicates which landmark to query (from 1 to [[API GetNumMapLandmarks|GetNumMapLandmarks()]])
* landmarkId (number) - indicates which landmark to query, from 1 to [[API GetNumMapLandmarks|GetNumMapLandmarks()]].
===Returns===


:;name : String - The name of the landmark
=== Returns ===
:;description : String - A description of the landmark.  In Battlegrounds this can dynamic information such as which faction controls the landmark.
* name (string) - the name of the landmark
:;textureIndex : Number - An index representing which landmark icon to display. These icons are in <tt>Interface\Minimap\POIIcons.blp</tt>, in an 8x8 grid.  Values are:
* description (string) - a description of the landmark.  In Battlegrounds this can dynamic information such as which faction controls the landmark
[[Image:POIIcons.png|frame|POIIcons.blp]]
* textureId (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.
::: <span style="visibility:hidden">0</span>0 [[Image:IconSmall_POI0.png]] Mine, neutral
* x (number) - The X location of the landmark's cente, as a proportion of the current map's width, between 0 and 1
::: <span style="visibility:hidden">0</span>1 [[Image:IconSmall_POI1.png]] Mine, held by [[Horde]]
* y (number) - The Y location of the landmark's center, as a proportion of the current map's height, between 0 and 1
::: <span style="visibility:hidden">0</span>2 [[Image:IconSmall_POI2.png]] Mine, held by [[Alliance]]
::: <span style="visibility:hidden">0</span>3 [[Image:IconSmall_POI3.png]] Graveyard, assaulted by Alliance
::: <span style="visibility:hidden">0</span>4 [[Image:IconSmall_POI4.png]] Town
::: <span style="visibility:hidden">0</span>5 [[Image:IconSmall_POI5.png]] City
::: <span style="visibility:hidden">0</span>6 [[Image:IconSmall_POI6.png]] Flag (Shown when you ask a town guard for directions.)
::: <span style="visibility:hidden">0</span>7 [[Image:IconSmall_POI7.png]] Player corpse marker
::: <span style="visibility:hidden">0</span>8 [[Image:IconSmall_POI8.png]] Tower, assaulted by Alliance
::: <span style="visibility:hidden">0</span>9 [[Image:IconSmall_POI9.png]] Tower, held by Horde
::: 10 [[Image:IconSmall_POI10.png]] Tower, held by Alliance
::: 11 [[Image:IconSmall_POI11.png]] Tower, assaulted by Horde
::: 12 [[Image:IconSmall_POI12.png]] Graveyard, held by Horde
::: 13 [[Image:IconSmall_POI13.png]] Graveyard, assaulted by Horde
::: 14 [[Image:IconSmall_POI14.png]] Graveyard, held by Alliance
::: 15 &mdash; Invisible (There's a number of these on zoomed in maps that don't get displayed.)
::: 16 [[Image:IconSmall_POI16.png]] Gold Mine, neutral
::: 17 [[Image:IconSmall_POI17.png]] Gold Mine, assaulted by Alliance
::: 18 [[Image:IconSmall_POI18.png]] Gold Mine, held by Alliance
::: 19 [[Image:IconSmall_POI19.png]] Gold Mine, assaulted by Horde
::: 20 [[Image:IconSmall_POI20.png]] Gold Mine, held by Horde
::: 21 [[Image:IconSmall_POI21.png]] Lumber Mill, neutral
::: 22 [[Image:IconSmall_POI22.png]] Lumber Mill, assaulted by Alliance
::: 23 [[Image:IconSmall_POI23.png]] Lumber Mill, held by Alliance
::: 24 [[Image:IconSmall_POI24.png]] Lumber Mill, assaulted by Horde
::: 25 [[Image:IconSmall_POI25.png]] Lumber Mill, held by Horde
::: 26 [[Image:IconSmall_POI26.png]] Blacksmith, neutral
::: 27 [[Image:IconSmall_POI27.png]] Blacksmith, assaulted by Alliance
::: 28 [[Image:IconSmall_POI28.png]] Blacksmith, held by Alliance
::: 29 [[Image:IconSmall_POI29.png]] Blacksmith, assaulted by Horde
::: 30 [[Image:IconSmall_POI30.png]] Blacksmith, held by Horde
::: 31 [[Image:IconSmall_POI31.png]] Farm, neutral
::: 32 [[Image:IconSmall_POI32.png]] Farm, assaulted by Alliance
::: 33 [[Image:IconSmall_POI33.png]] Farm, held by Alliance
::: 34 [[Image:IconSmall_POI34.png]] Farm, assaulted by Horde
::: 35 [[Image:IconSmall_POI35.png]] Farm, held by Horde
::: 36 [[Image:IconSmall_POI36.png]] Stables, neutral
::: 37 [[Image:IconSmall_POI37.png]] Stables, assaulted by Alliance
::: 38 [[Image:IconSmall_POI38.png]] Stables, held by Alliance
::: 39 [[Image:IconSmall_POI39.png]] Stables, assaulted by Horde
::: 40 [[Image:IconSmall_POI40.png]] Stables, held by Horde
::: 41-63 &mdash; Currently unused


:;x : Number - The X location of the landmark's center (A proportion of the current map's width, between 0 and 1)
== Landmark texture and textureIDs ==
:;y : Number - The Y location of the landmark's center (A proportion of the current map's height, between 0 and 1)
{{Map/Note/doc/markers_poi}}
 
== Notes ==
* 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.
 
[[ru:API GetMapLandmarkInfo]]

Latest revision as of 04:46, 15 August 2023

WoW API < GetMapLandmarkInfo

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

name, description, textureId, x, y = GetMapLandmarkInfo(landmarkId)

Parameters[edit]

Arguments[edit]

Returns[edit]

  • 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
  • textureId (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 cente, as a proportion of the current map's width, between 0 and 1
  • y (number) - The Y location of the landmark's center, as a proportion of the current map's height, between 0 and 1

Landmark texture and textureIDs[edit]

POIIcons.png

Template:Flexbox

Special
Mine

Template:Flexbox Template:Flexbox

Other

Template:Flexbox Template:Flexbox

Tower

Template:Flexbox

Template:Flexbox

Graveyard

Template:Flexbox Template:Flexbox

Other
Lumber Mill

Template:Flexbox Template:Flexbox

Blacksmith

Template:Flexbox

Template:Flexbox

Farm

Template:Flexbox Template:Flexbox

Stables

Template:Flexbox

Template:Flexbox

Other
Flag

Template:Flexbox Template:Flexbox

Crest

Template:Flexbox Template:Flexbox

Tower

Template:Flexbox

Template:Flexbox

Bridge

Template:Flexbox Template:Flexbox

Workshop

Template:Flexbox Template:Flexbox

Gate

Template:Flexbox

Template:Flexbox

Wall horizontal

Template:Flexbox Template:Flexbox

Wall vertical

Template:Flexbox

Template:Flexbox

Other
Gate

Template:Flexbox Template:Flexbox

Numbers

Template:Flexbox Template:Flexbox

Unknown

Template:Flexbox

Template:Flexbox

Tower

Template:Flexbox Template:Flexbox

Other
Siege workshop

Template:Flexbox Template:Flexbox

Hangar

Template:Flexbox Template:Flexbox

Docks

Template:Flexbox Template:Flexbox

Refinery

Template:Flexbox

Notes[edit]

  • 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.

ru:API GetMapLandmarkInfo