→Example: Looping through all tooltip lines
| Line 14: | Line 14: | ||
==== Example: Looping through all tooltip lines ==== | ==== Example: Looping through all tooltip lines ==== | ||
for i, GameTooltip:NumLines() do | |||
local mytext = getglobal("GameTooltipTextLeft" .. i) | |||
local mytext = getglobal("GameTooltipTextLeft" .. i) | local text = mytext:GetText() | ||
local text = mytext:GetText() | |||
end | end | ||