WoW:FrameXML elements: Difference between revisions

Line 14: Line 14:


==== Example: Looping through all tooltip lines ====
==== Example: Looping through all tooltip lines ====
  local i = 1;
  for 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


Anonymous user