Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions EllesmereUIUnitFrames/EllesmereUIUnitFrames.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6797,6 +6797,18 @@ local function ApplyBlizzCastbarState()
end
end

-- Helper function based on the Blizzard UnitFrame_UpdateTooltip method
-- without the Right-Click instruction line
local function UnitFrame_CustomUpdateTooltip(self)
GameTooltip_SetDefaultAnchor(GameTooltip, self)
if GameTooltip:SetUnit(self.unit) then
GameTooltip:Show()
self.UpdateTooltip = UnitFrame_CustomUpdateTooltip
else
self.UpdateTooltip = nil
end
end

local function UnitFrame_OnEnter(self)
local unit = self.unit
if not unit then return end
Expand All @@ -6808,9 +6820,7 @@ local function UnitFrame_OnEnter(self)
if unit and GameTooltip and GameTooltip_SetDefaultAnchor then
local showTooltip = not s or s.showUnitTooltip ~= false
if showTooltip then
GameTooltip_SetDefaultAnchor(GameTooltip, self)
GameTooltip:SetUnit(unit)
GameTooltip:Show()
UnitFrame_CustomUpdateTooltip(self)
end
end
end
Expand Down