GetStats("target") |
end |
|
tooltiptable = {} |
|
local function tooltipScanner(guid) |
local tooltip = TestTooltip or CreateFrame("GameTooltip","TestTooltip",UIParent,"GameTooltipTemplate") |
tooltip:SetOwner(UIParent, "ANCHOR_NONE") |
tooltip:SetPoint("CENTER",UIParent,"CENTER") |
tooltip:SetPoint("BOTTOMRIGHT",UIParent,"BOTTOMRIGHT") |
tooltip:ClearLines() |
tooltip:SetHyperlink('unit:' .. guid) |
if not tooltiptable[guid] then tooltiptable[guid] = true end |
tooltip:Show() |
local close = CreateFrame("Button", nil, tooltip, "UIPanelCloseButton") |
close:SetPoint("TOPLEFT") |
close:SetScript("OnClick", function() |
tooltip:Hide() |
end) |
|
local printline |
local line2 = TestTooltipTextLeft2:GetText() |
local line3 = TestTooltipTextLeft3:GetText() |