Thread Tools Display Modes
Prev Previous Post   Next Post Next
11/13/14, 12:16 PM   #1
SnowmanDK
 
SnowmanDK's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 161
Problem with Destinations

I am stuck on a problem trying to make Destinations compatible with MiniMap by Fyrakin.
My "Semi-Real" pins was made in a very dirty way earlier.
Now I want to add them correctly like this (short example):
Lua Code:
  1. LMP:AddPinType(PINS_REALUNKNOWNQUESTHUB, MapCallback_unknown, nil, pinLayout_RealUnknownQuestHub, pinTooltipCreator)
  2.     local pinLayout_RealUnknownCrafting = {
  3.         level = pinTextureLevelUnknown,
  4.         texture = pinTextures.unknownrealpins[9],
  5.         size = pinTextureSizeUnknown,
  6.     }
  7.     LMP:AddPinType(PINS_REALUNKNOWNCRAFTING, MapCallback_unknown, nil, pinLayout_RealUnknownCrafting, pinTooltipCreator)
  8.     local pinLayout_RealUnknownSoloDungeon = {
  9.         level = pinTextureLevelUnknown,
  10.         texture = pinTextures.unknownrealpins[10],
  11.         size = pinTextureSizeUnknown,
  12.     }
The poiTypeId sets the pin type used below, ending with creating the pins.
Lua Code:
  1. if poiTypeId == 1 then
  2.                         pinType = PINS_REALUNKNOWNWAYSHRINE
  3.                         local data = GuildTraderDataStore[GetCurrentMapZoneIndex()]
  4.                         if not data then return end
  5.                         for _, pinData in ipairs(data) do
  6.                             local ID = pinData[GuildTraderDataIndex.ID]
  7.                             if ID == 1 then
  8.                                 local WAYSHRINE = pinData[GuildTraderDataIndex.WAYSHRINE]
  9.                                 if WAYSHRINE == objectiveName then
  10.                                     table.insert(pinTag, 3, zo_strformat("|c666666<<t:1>>|r", GetString(POITYPE_GUILDTRADERS)))
  11.                                     pinType = PINS_REALUNKNOWNWAYSHRINETRADER
  12.                                 end
  13.                             end
  14.                         end
  15.                     elseif poiTypeId == 2 then
  16.                         pinType = PINS_REALUNKNOWNAOI
  17.                     elseif poiTypeId == 3 and zoneIndex ~= 353 then
  18.                         pinType = PINS_REALUNKNOWNPUBLICDUNGEON
  19.                     elseif poiTypeId == 3 and zoneIndex == 353 then
  20.                         pinType = PINS_REALUNKNOWNPUBLICDUNGEON2
  21.                     elseif poiTypeId == 4 then
  22.                         pinType = PINS_REALUNKNOWNMUNDUS
  23.                     elseif poiTypeId == 5 then
  24.                         pinType = PINS_REALUNKNOWNDOLMEN
  25.                     elseif poiTypeId == 6 then
  26.                         pinType = PINS_REALUNKNOWNGROUPBOSS
  27.                     elseif poiTypeId == 7 then
  28.                         pinType = PINS_REALUNKNOWNGROUPDUNGEON
  29.                     elseif poiTypeId == 8 then
  30.                         pinType = PINS_REALUNKNOWNQUESTHUB
  31.                     elseif poiTypeId == 9 then
  32.                         pinType = PINS_REALUNKNOWNCRAFTING
  33.                     elseif poiTypeId == 10 then
  34.                         pinType = PINS_REALUNKNOWNSOLODUNGEON
  35.                     elseif poiTypeId == 11 then
  36.                         pinType = PINS_REALUNKNOWNGROUPEVENT
  37.                     elseif poiTypeId == 12 then
  38.                         pinType = PINS_REALUNKNOWNGROUPDELVE
  39.                     elseif poiTypeId == 13 then
  40.                         pinType = PINS_REALUNKNOWNTRIAL
  41.                     elseif poiTypeId == 14 then
  42.                         pinType = PINS_REALUNKNOWNGUILDTRADER
  43.                     elseif poiTypeId == 22 then
  44.                         pinType = PINS_REALUNKNOWN
  45.                     end
  46.                 end
  47.                 LMP:CreatePin(pinType, pinTag, normalizedX, normalizedY)
The pins are shown correctly , but (I assume) as they all use the same pinTooltipCreator, then I get the tag on each pin shown multiple times, like this:

It is ONLY the unknown pins that do this and ONLY those using my "Semi_Real" pins.
Any help will be appreciated

Last edited by SnowmanDK : 11/13/14 at 09:11 PM.
  Reply With Quote
 

ESOUI » Developer Discussions » General Authoring Discussion » Problem with Destinations


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off