Thread Tools Display Modes
Prev Previous Post   Next Post Next
11-26-20, 05:41 PM   #1
sgkdnay
A Defias Bandit
Join Date: Feb 2011
Posts: 3
GameTooltip Issue

Trying to understand GameTooltip but for some reason not working as intended (reading tooltips)

Code:
function vQC_ToolTips(self)
	local lines = self:NumLines()
	print(lines)
	for i = 1, lines do
		local txtL = getglobal(self:GetName() .. "TextLeft" .. i)
		if txtL:GetText() ~= nil then
			if txtL:GetText() == "Quest ID" then
				local txtR = getglobal(self:GetName() .. "TextRight" .. i)
				print("Found it "..txtR:GetText())
			end
		end
	end
end
GameTooltip:HookScript("OnShow", vQC_ToolTips)
Some would give me information, other will not.
This will NOT give me QuestID into chat, also x.Numlines shows 3 when it's 11
http://prntscr.com/vqv2ya
But this one will, while this x.NumLines shows 12 properly
https://prnt.sc/vqv3fx

So what am i missing? Im trying to extract all information from whomever's addon's tooltip created

Last edited by sgkdnay : 11-26-20 at 05:43 PM. Reason: url won't display properly
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » GameTooltip Issue


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