WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   Legion Beta archived threads (https://www.wowinterface.com/forums/forumdisplay.php?f=177)
-   -   How to get the name of a gametooltip? (https://www.wowinterface.com/forums/showthread.php?t=53770)

siweia 06-23-16 11:48 PM

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?

SDPhantom 06-24-16 02:32 AM

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.

siweia 06-26-16 08:37 AM

Quote:

Originally Posted by SDPhantom (Post 315934)
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.

semlar 06-26-16 10:46 AM

Quote:

Originally Posted by Leatrix (Post 315991)
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.

siweia 06-27-16 09:00 AM

Quote:

Originally Posted by semlar (Post 315992)
Ah, I knew this question sounded familiar.

Jesus, what did I do?

semlar 06-27-16 01:16 PM

Quote:

Originally Posted by siweia (Post 316020)
Jesus, what did I do?

You asked the same question about a year ago.

siweia 06-28-16 08:14 PM

Quote:

Originally Posted by semlar (Post 316024)
You asked the same question about a year ago.

Hopefully I won't do it again next year.:D


All times are GMT -6. The time now is 05:20 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI