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:
LMP:AddPinType(PINS_REALUNKNOWNQUESTHUB, MapCallback_unknown, nil, pinLayout_RealUnknownQuestHub, pinTooltipCreator)
local pinLayout_RealUnknownCrafting = {
level = pinTextureLevelUnknown,
texture = pinTextures.unknownrealpins[9],
size = pinTextureSizeUnknown,
}
LMP:AddPinType(PINS_REALUNKNOWNCRAFTING, MapCallback_unknown, nil, pinLayout_RealUnknownCrafting, pinTooltipCreator)
local pinLayout_RealUnknownSoloDungeon = {
level = pinTextureLevelUnknown,
texture = pinTextures.unknownrealpins[10],
size = pinTextureSizeUnknown,
}
The poiTypeId sets the pin type used below, ending with creating the pins.
Lua Code:
if poiTypeId == 1 then
pinType = PINS_REALUNKNOWNWAYSHRINE
local data = GuildTraderDataStore[GetCurrentMapZoneIndex()]
if not data then return end
for _, pinData in ipairs(data) do
local ID = pinData[GuildTraderDataIndex.ID]
if ID == 1 then
local WAYSHRINE = pinData[GuildTraderDataIndex.WAYSHRINE]
if WAYSHRINE == objectiveName then
table.insert(pinTag, 3, zo_strformat("|c666666<<t:1>>|r", GetString(POITYPE_GUILDTRADERS)))
pinType = PINS_REALUNKNOWNWAYSHRINETRADER
end
end
end
elseif poiTypeId == 2 then
pinType = PINS_REALUNKNOWNAOI
elseif poiTypeId == 3 and zoneIndex ~= 353 then
pinType = PINS_REALUNKNOWNPUBLICDUNGEON
elseif poiTypeId == 3 and zoneIndex == 353 then
pinType = PINS_REALUNKNOWNPUBLICDUNGEON2
elseif poiTypeId == 4 then
pinType = PINS_REALUNKNOWNMUNDUS
elseif poiTypeId == 5 then
pinType = PINS_REALUNKNOWNDOLMEN
elseif poiTypeId == 6 then
pinType = PINS_REALUNKNOWNGROUPBOSS
elseif poiTypeId == 7 then
pinType = PINS_REALUNKNOWNGROUPDUNGEON
elseif poiTypeId == 8 then
pinType = PINS_REALUNKNOWNQUESTHUB
elseif poiTypeId == 9 then
pinType = PINS_REALUNKNOWNCRAFTING
elseif poiTypeId == 10 then
pinType = PINS_REALUNKNOWNSOLODUNGEON
elseif poiTypeId == 11 then
pinType = PINS_REALUNKNOWNGROUPEVENT
elseif poiTypeId == 12 then
pinType = PINS_REALUNKNOWNGROUPDELVE
elseif poiTypeId == 13 then
pinType = PINS_REALUNKNOWNTRIAL
elseif poiTypeId == 14 then
pinType = PINS_REALUNKNOWNGUILDTRADER
elseif poiTypeId == 22 then
pinType = PINS_REALUNKNOWN
end
end
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