View Single Post
04-20-20, 03:59 AM   #5
Walkerbo
A Cobalt Mageweaver
 
Walkerbo's Avatar
AddOn Author - Click to view addons
Join Date: Oct 2010
Posts: 233
Hi Kanegasi

Thanks for that, unfortunately GetRegions returns the same info.

My code;
Code:
local scantip = CreateFrame("GameTooltip", "MyScanningTooltip", nil, "GameTooltipTemplate")
scantip:SetOwner(UIParent, "ANCHOR_NONE")

local function MyGetItemStats(link)
   scantip:SetHyperlink(link)
   local regions={scantip:GetRegions()}
   for i=1,#regions do
       if regions[i].GetText and regions[i]:GetText() then
           print(i," - ",regions[i]:GetName(),":",regions[i]:GetText())
       end
   end
end

MyGetItemStats("|cffa335ee|Hitem:41656::::::::111:259::::::|h[Relentless Gladiator's Leather Legguards]|h|r")
My output;
  Reply With Quote