Thread Tools Display Modes
06-23-16, 11:48 PM   #1
siweia
A Flamescale Wyrmkin
 
siweia's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2011
Posts: 126
How to get the name of a gametooltip?

I am currently trying to reskin the default gametooltip, and everything works fine atm.

But for those gametooltip on the abilities of the OrderHallUI, I couldn't get the name to reskin them.

Are there any apis to get the name of gametooltips?

Last edited by siweia : 06-23-16 at 11:55 PM.
 
06-24-16, 02:32 AM   #2
SDPhantom
A Pyroguard Emberseer
 
SDPhantom's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2006
Posts: 2,323
I guess the easiest way would be to hook the global metatable and see what pops up.
Code:
hooksecurefunc(getmetatable(GameTooltip).__index,"Show",function(self) print(self:GetName() or tostring(self)); end);
This would make every tooltip object print its name to the chat frame when it's shown.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
 
06-26-16, 08:37 AM   #3
siweia
A Flamescale Wyrmkin
 
siweia's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2011
Posts: 126
Originally Posted by SDPhantom View Post
I guess the easiest way would be to hook the global metatable and see what pops up.
Code:
hooksecurefunc(getmetatable(GameTooltip).__index,"Show",function(self) print(self:GetName() or tostring(self)); end);
This would make every tooltip object print its name to the chat frame when it's shown.
It didn't print the name of the follower's abilities gametooltip.
 
06-26-16, 10:46 AM   #4
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
Originally Posted by Leatrix View Post
I use something like this in Leatrix Plus:
Code:
/run local enumf=EnumerateFrames();while enumf do if (enumf:GetObjectType()=="GameTooltip" or strfind((enumf:GetName() or ""):lower(),"tip")) and enumf:IsVisible() and enumf:GetPoint() then print(enumf:GetName()) end enumf = EnumerateFrames(enumf) end
Ah, I knew this question sounded familiar.
 
06-27-16, 09:00 AM   #5
siweia
A Flamescale Wyrmkin
 
siweia's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2011
Posts: 126
Originally Posted by semlar View Post
Ah, I knew this question sounded familiar.
Jesus, what did I do?
 
06-27-16, 01:16 PM   #6
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
Originally Posted by siweia View Post
Jesus, what did I do?
You asked the same question about a year ago.
 
06-28-16, 08:14 PM   #7
siweia
A Flamescale Wyrmkin
 
siweia's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2011
Posts: 126
Originally Posted by semlar View Post
You asked the same question about a year ago.
Hopefully I won't do it again next year.
 
 

WoWInterface » Site Forums » Archived Beta Forums » Legion Beta archived threads » How to get the name of a gametooltip?


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