View Single Post
04/02/17, 02:57 PM   #3
Baertram
Super Moderator
 
Baertram's Avatar
WoWInterface Super Mod
AddOn Author - Click to view addons
Join Date: Mar 2014
Posts: 4,989
You can colorize the map pin textures instead of exchanging them with new ones.
You just need to find their global name (using addon ZGOO and moving the mouse above the pin on the map and thenn type "/zgoo mouse" into the chat na dpress return), get the control for the name by

Lua Code:
  1. local mapPinTextureCtrl = WINDOW_MANAGER:GetControlByName("ZO_MapPin36", "Background").
->Background contains the texture for the pin itsself, Highlight the blue glowing surrounding. Bozth are children of type CT_TEXTURE of that pin ZO_MapPin36.
-> The pins should all be in ZO_WorldMapContainer as children, starting with "ZO_MapPin" and then a number.

After this you can use somehting like this to colorize it
Lua Code:
  1. mapPinTextureCtrl:SetColor(r, g, b, a)

Where r = red, g= green, b=blue and a = alpha value (0 to 1, in 0.1 steps I think)

To exchange the texture instead use:
Lua Code:
  1. mapPinTextureCtrl:SetTexture("/esoui/art/path/to/ingame/texturefile.dds")
  Reply With Quote