A little screenshot and associated code for map tooltips :
Lua Code:
pinTooltipCreator.creator = function(pin)
local pinTag = pin.m_PinTag
local title, icon, known = GetLoreBookInfo(1, pinTag[3], pinTag[4])
local collection = GetLoreCollectionInfo(1, pinTag[3])
local moreinfo = {}
if pinTag[6] then
table.insert(moreinfo, "[" .. GetString("LBOOKS_MOREINFO", pinTag[6]) .. "]")
end
if pinTag[5] then
table.insert(moreinfo, "[" .. zo_iconFormat(GetAllianceSymbolIcon(pinTag[5]), 24, 24) .. "]")
end
if known then
table.insert(moreinfo, "[" .. GetString(LBOOKS_KNOWN) .. "]")
end
if IsInGamepadPreferredMode() and ZO_MapLocationTooltip_Gamepad then
INFORMATION_TOOLTIP:LayoutIconStringLine(INFORMATION_TOOLTIP.tooltip, nil, zo_strformat(collection), INFORMATION_TOOLTIP.tooltip:GetStyle("mapTitle"))
INFORMATION_TOOLTIP:LayoutIconStringLine(INFORMATION_TOOLTIP.tooltip, icon, title, INFORMATION_TOOLTIP.tooltip:GetStyle("mapLocationTooltipContent"))
if #moreinfo > 0 then
INFORMATION_TOOLTIP:LayoutIconStringLine(INFORMATION_TOOLTIP.tooltip, nil, table.concat(moreinfo, " / "), INFORMATION_TOOLTIP.tooltip:GetStyle("worldMapTooltip"))
end
else
INFORMATION_TOOLTIP:AddLine(text, arrayStyle)
INFORMATION_TOOLTIP:AddLine(zo_strformat(collection), "ZoFontGameOutline", ZO_SELECTED_TEXT:UnpackRGB())
ZO_Tooltip_AddDivider(INFORMATION_TOOLTIP)
INFORMATION_TOOLTIP:AddLine(zo_iconTextFormat(icon, 32, 32, title), "", ZO_HIGHLIGHT_TEXT:UnpackRGB())
if #moreinfo > 0 then
INFORMATION_TOOLTIP:AddLine(table.concat(moreinfo, " / "), "", ZO_TOOLTIP_DEFAULT_COLOR:UnpackRGB())
end
end
end