Skip to content

[Unit Frames] Missing UpdateToolitp logic #302

@Stein-N

Description

@Stein-N

Every UnitFrame is missing a the UpdateTooltip logic.
This prevents any additional modification of the Tooltip by other AddOns.

This can be fixed with the Vanilla UnitFrame_UpdateTooltip function, this inherits the right click line:

Image

Or with this method without the right click line:

local function Custom_UpdateTooltip(frame)
   GameTooltip_SetDefaultAnchor(GameTooltip, frame)
   if GameTooltip:SetUnit(frame.unit) then
      GameTooltip:Show()
      
      frame.UpdateTooltip = Custom_UpdateTooltip
   else
      frame.UpdateTooltip = nil
   end
end
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions