Thread Tools Display Modes
Prev Previous Post   Next Post Next
09-27-23, 07:52 AM   #1
Benalish
A Flamescale Wyrmkin
 
Benalish's Avatar
Join Date: Dec 2012
Posts: 122
Can't read GameTooltip right text

This script should print the information reported in the GameTooltip created in this way. Specifically, it should print

—› Rank 5
—› 30 yd range

Lua Code:
  1. local f = CreateFrame("GameTooltip", "MyGameTooltip", UIParent, "GameTooltipTemplate")
  2. f:SetOwner(UIParent, "ANCHOR_NONE")
  3. f:SetSpellByID(27217) -- Drain Soul
  4. local n = 1
  5. while _G["MyGameTooltipTextRight"..n]:GetText() do
  6.    local text = _G["MyGameTooltipTextRight"..n]:GetText()
  7.    print(text)
  8.    n = n + 1
  9. end
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » Can't read GameTooltip right text

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off