In one of my addons I'm using item link in the label text:
Lua Code:
zo_strformat("<<1>> (<<t:2>>)", GetString("SI_ITEMSTYLE", ITEMSTYLE_RACIAL_ORC), GetItemLinkName("|H0:item:33257:30:1:0:0:0:0:0:0:0:0:0:0:0:0:3:0:0:0:0|h|h"))
On live server is displayed "Orc (Manganese)", but on PTS just "Orc ()". Is there any change in label control?
Text is set in this code (actualy it is in LibAddonMenu-2.0, this is just simplified version):
Lua Code:
local name = zo_strformat("<<1>> (<<t:2>>)", GetString("SI_ITEMSTYLE", ITEMSTYLE_RACIAL_ORC), GetItemLinkName("|H0:item:33257:30:1:0:0:0:0:0:0:0:0:0:0:0:0:3:0:0:0:0|h|h"))
local label = WINDOW_MANAGER:CreateControl(nil, control, CT_LABEL)
label:SetFont("ZoFontWinH4")
label:SetText(name)
label:SetWrapMode(TEXT_WRAP_MODE_ELLIPSIS)
label:SetHeight(26)
The same goes for tooltip:
Lua Code:
local tooltipText = "|H0:item:16426:1:50:0:0:0:0:0:0:0:0:0:0:0:0:3:0:0:0:0|h|h"
InitializeTooltip(InformationTooltip, control, BOTTOMLEFT, 0, -2, TOPLEFT)
SetTooltipText(InformationTooltip, tooltipText)
If this code is used on live server you will get "Racial Motifs 8: The Orcs", but on PTS you will get just "h".