Originally Posted by trollusk
I'm making an addon that adds pins for certain town services to the compass. These are "Locations" in the API.
Currently I'm figuring out what type each location is by taking the icon filename using GetMapLocationIcon(n), then parsing it to get the filename, then comparing that with the icons for the location types I'm interested in (e.g. if filename == "servicepin_stable.dds")
Is there a better way to get the Location type?
|
pin.m_PinType gives you the map display pin type. m_PinType == MAP_PIN_TYPE_LOCATION
Search for "h5. MapDisplayPinType" in the docs to get the full list :
https://github.com/esoui/esoui/blob/...umentation.txt
EDIT:
sorry, I wasn't fully awake and misread the question, personally I use texture file name too to identify them.