View Single Post
03-26-21, 11:35 AM   #3
MinguasBeef
A Wyrmkin Dreamwalker
AddOn Author - Click to view addons
Join Date: May 2019
Posts: 51
Originally Posted by Fizzlemizz View Post
You want to anchor the tooltip and you can just use the standard GameTooltip.

Code:
f:SetScript("OnEnter", function(self)
    if (UnitBuff("player", 1)) then
        GameTooltip:SetOwner(self, "ANCHOR_LEFT")
        GameTooltip:SetUnitBuff("player", 1, "HELPFUL")
    end
end)
Just noticed you did anchor the tt but it's best to do it just before you show it because it might have been moved (re-anchored) by another process.
Thank you very much for the quick answer! Finally getting back into the swing of working on addons with the tbc announcement. Appreciate the help.
  Reply With Quote