Thread Tools Display Modes
07-28-15, 09:07 AM   #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'm currently using Freebtip, and it doesn't restyle all the relevant gametooltip for now.

Is there any api that I can use to detect the name of a gametooltip, so that I can simply reskin it?

"/fstack" only work for those frames that can mouseover.
  Reply With Quote
07-28-15, 10:08 AM   #2
semlar
A Pyroguard Emberseer
 
semlar's Avatar
AddOn Author - Click to view addons
Join Date: Sep 2007
Posts: 1,060
It's not perfect, but depending on your definition of "tooltip", this script should dump its name to the chat if you run it while it's visible.
Lua Code:
  1. /run local f=EnumerateFrames()while f do if(f:GetObjectType()=='GameTooltip'or strfind((f:GetName()or''):lower(),'tip'))and f:IsVisible()and f:GetPoint()then print(f:GetName())end f=EnumerateFrames(f)end
  Reply With Quote

WoWInterface » Developer Discussions » General Authoring Discussion » 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