Thread Tools Display Modes
Prev Previous Post   Next Post Next
09-13-19, 07:13 AM   #1
MinguasBeef
A Wyrmkin Dreamwalker
AddOn Author - Click to view addons
Join Date: May 2019
Posts: 51
Adding line of text to player tooltip

I've been having trouble getting this to work...

I want it so that when I mouse over a player, or unit that there will be an extra line of text in the tooltip window.

I tried hooking SetUnit, but didn't have any luck.

Code:
function AdditionalUnitText(unit)
	GameTooltip:AddLine("Test", 1, 1, 1)
	GameTooltip:Show()
end
hooksecurefunc(GameTooltip,"SetUnit",AdditionalUnitText)
  Reply With Quote
 

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Adding line of text to player tooltip

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