View Single Post
10-31-22, 04:32 AM   #1
Platine
A Cliff Giant
AddOn Author - Click to view addons
Join Date: Dec 2010
Posts: 72
Question Dragonflight : BuffButton : GameTooltips

In the patch 10.0.0 the handling of the BuffButtonX buttons has changed. When you hover the mouse over an aura button - it is not possible to get the name of this button. Always returns nil.

Code:
GameTooltip:HookScript('OnShow', function(self, ...)
   print("The mouse is over " .. GetMouseFocus():GetName());   -- return nil
   local GTownerName = self:GetOwner():GetName();              -- return nil
   print(GTownerName);   
end );

Is there any other method of detecting that the description displayed in GameTooltips is from the Aura button?

We can use the BuffFrame.AuraContainer:IsMouseOver() function

Last edited by Platine : 10-31-22 at 07:59 AM.
  Reply With Quote