→Example: Looping through all tooltip lines
| Line 14: | Line 14: | ||
==== Example: Looping through all tooltip lines ==== | ==== Example: Looping through all tooltip lines ==== | ||
local i = 1 | local i = 1; | ||
while (i <= GameTooltip:NumLines()) do | while (i <= GameTooltip:NumLines()) do | ||
local mytext = getglobal("GameTooltipTextLeft" .. i); | local mytext = getglobal("GameTooltipTextLeft" .. i); | ||
local text = mytext:GetText(); | local text = mytext:GetText(); | ||
i = i + 1; | |||
end | end | ||