View Single Post
03-26-21, 10:05 AM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,871
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.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 03-26-21 at 10:28 AM.
  Reply With Quote