Quantcast
WoWInterface - View Single Post - Adding line of text to player tooltip
View Single Post
09-13-19, 07:13 AM   #1
MinguasBeef
An Aku'mai Servant
AddOn Author - Click to view addons
Join Date: May 2019
Posts: 33
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