View Single Post
07/23/22, 11:53 PM   #2
Masteroshi430
 
Masteroshi430's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2020
Posts: 185
Originally Posted by trollusk View Post
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.

Last edited by Masteroshi430 : 07/24/22 at 12:00 AM.
  Reply With Quote