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
15 changes: 15 additions & 0 deletions EllesmereUIBags/EllesmereUIBags.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2983,6 +2983,15 @@ function EUI_Bags.SetBindTypeText(fs, isWuE, bindType, quality)
if c then fs:SetTextColor(c.r, c.g, c.b) else fs:SetTextColor(1, 1, 1) end
end

-------------------------------------------------------------------------------
-- Third-party item overlay icons (opt-in extension point for compatibility bridges with addons like CanIMogIt)
-------------------------------------------------------------------------------
EUI_Bags.itemOverlayIcons = EUI_Bags.itemOverlayIcons or {}

function EUI_Bags.RegisterItemOverlayIcon(name, updateFn)
EUI_Bags.itemOverlayIcons[name] = updateFn
end

-------------------------------------------------------------------------------
-- RenderButton
-------------------------------------------------------------------------------
Expand Down Expand Up @@ -3249,6 +3258,12 @@ local function RenderButton(btn, data, _, col, row, startX, currentY, _, interac

end
UpdatePawnArrow(btn, data.itemLink)

-- Allows drawing overlays for external addons
for _, fn in pairs(EUI_Bags.itemOverlayIcons) do
fn(btn, data)
end

-- Same requery the native container update does after re-assigning a slot: the
-- cursor can be resting on this button while the repaint moves another item under
-- it, and nothing re-reads the tooltip until the mouse moves (it kept showing the
Expand Down