Hi,
I can't figure out this issue i have with hidden scanning tooltip. I use standard code to initialize it:
Code:
local scanningTooltip = CreateFrame("GameTooltip", "StatWeightScore_ScanningTooltip", nil, "GameTooltipTemplate");
scanningTooltip:AddFontStrings(
scanningTooltip:CreateFontString("$parentTextLeft1", nil, "GameTooltipText"),
scanningTooltip:CreateFontString("$parentTextRight1", nil, "GameTooltipText"));
then i Populate it with an item link
Code:
local scanningTooltip = StatWeightScore_ScanningTooltip;
scanningTooltip:SetOwner(WorldFrame, "ANCHOR_NONE");
scanningTooltip:SetHyperlink(link);
then iterate over lines:
Code:
for l = 1,tooltip:NumLines() do
local tooltipText = getglobal(tooltip:GetName().."TextLeft"..l);
end
for the 9th line the tooltip text is nil.
when i show the tooltip in game, it's cut off at 9th line (8th line is empty string in this case):
however the code above can read 10th and lines after it fine. only the 9th is missing.
any insight is appreciated.