View Single Post
10-24-17, 02:51 PM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,877
After making a copy, try changing:
Code:
local _, name, _, textureIndex = GetMapLandmarkInfo(i)
too
Code:
local landmarkType, name = C_WorldMap.GetMapLandmarkInfo(i)
and replace occurences of textureIndex with landmarkType

The macro becomes
Code:
/run for i = 1, GetNumMapLandmarks() do local landmarkType, name = C_WorldMap.GetMapLandmarkInfo(i) print(i, landmarkType, name) end
I'm not sure landmarkType is a direct correlation or can be mapped to what was the textureIndex but you're no worse off

These are the landmarkType used in the WorldMapFrame (there may be more)

LE_MAP_LANDMARK_TYPE_TAMER = 1
LE_MAP_LANDMARK_TYPE_GOSSIP = 3
LE_MAP_LANDMARK_TYPE_TAXINODE = 5
LE_MAP_LANDMARK_TYPE_VIGNETTE = 6
LE_MAP_LANDMARK_TYPE_INVASION = 8
LE_MAP_LANDMARK_TYPE_DUNGEON_ENTRANCE = 9
LE_MAP_LANDMARK_TYPE_CONTRIBUTION = 10
LE_MAP_LANDMARK_TYPE_MAP_LINK = 11
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 10-24-17 at 04:44 PM.
  Reply With Quote