View Single Post
04/27/15, 01:48 PM   #5
SnowmanDK
 
SnowmanDK's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 161
Thanks for the replies
I was sure I tried it, but I guess I made some mistake...
This is the solution (using my first code example as template):
Lua Code:
  1. local pinLayout_QuestsDone = {
  2.     maxDistance = savedVariables.pinTextureQuestsDone.maxDistance,
  3.     level = savedVariables.pinTextureQuestsDone.level,
  4.     texture = pinTextures.Quests[savedVariables.pinTextureQuestsDone.type],
  5.     size = savedVariables.pinTextureQuestsDone.size,
  6.     tint = ZO_ColorDef:New(unpack(savedVariables.pinTextureQuestsDone.tint)),
  7.     additionalLayout = {
  8.         function(pin)
  9.             pin:GetNamedChild("Background"):SetColor(unpack(savedVariables.pinTextureQuestsDone.tint))
  10.         end,
  11.         function(pin)
  12.             pin:GetNamedChild("Background"):SetColor(1,1,1,1)
  13.         end,
  14.     },
  15. }
  16.  
  17. LMP:AddPinType(PINS_QUESTS_DONE, Quests_Done_pinTypeCallback, nil, pinLayout_QuestsDone, pinTooltipCreator)
  18. COMPASS_PINS:AddCustomPin(PINS_QUESTS_DONE, Quests_CompassPins, pinLayout_QuestsDone)
  19. COMPASS_PINS:RefreshPins(PINS_QUESTS_DONE)

Case closed
  Reply With Quote