Originally Posted by circonian
Hm, well I guess I'm doing something else wrong then. Thats what I was trying to do, but it doesn't show up properly.
I will look at miniMap, thank you for the info.
|
Ah, sorry there is pinType instead of pinTypeString.
Lua Code:
local pinType = pin:GetPinType()
local tooltipData = pin.TOOLTIP_CREATORS[pinType]
InitializeTooltip(tooltipData.tooltip, yourControl, anchorPoint, xOffset, yOffset)
tooltipData.creator(pin)
In Update 6 will be this code a bit different because WorldMap uses mode instead of tooltip control, so it will look like this:
Lua Code:
local function GetTooltip(mode)
if mode == 1 then
return InformationTooltip
elseif mode == 2 then
return ZO_KeepTooltip
elseif mode == 3 then
return ZO_MapLocationTooltip
elseif mode == 4 then
return ZO_ImperialCityTooltip
else
return mode
end
end
local pinType = pin:GetPinType()
local tooltipData = pin.TOOLTIP_CREATORS[pinType]
InitializeTooltip(GetTooltip(tooltipData.tooltip), yourControl, anchorPoint, xOffset, yOffset)
tooltipData.creator(pin)