diff --git a/Freewood-OctoWoW-Loot.toc b/Freewood-OctoWoW-Loot.toc index ebbc2dc..cef248f 100644 --- a/Freewood-OctoWoW-Loot.toc +++ b/Freewood-OctoWoW-Loot.toc @@ -3,7 +3,7 @@ ## Notes: Blacklist for loot: picks up listed items and deletes them with your next click in the world. ## Notes-deDE: Blacklist für Beute: nimmt gelistete Items mit und löscht sie mit deinem nächsten Klick in der Spielwelt. ## Author: Lacustat -## Version: 0.1.148 +## Version: 0.1.149 ## Dependencies: Freewood-OctoWoW-Core Locales.lua diff --git a/LootUI.lua b/LootUI.lua index 5369b75..13475eb 100644 --- a/LootUI.lua +++ b/LootUI.lua @@ -276,6 +276,17 @@ local function Build(content) row.listed = UI.CreateLabel(row, FW.L.LOOT_RECENT_LISTED, { size = 10, color = "textDim", justify = "RIGHT" }) row.listed:SetPoint("RIGHT", row, "RIGHT", -12, 0) row.name:SetPoint("RIGHT", row, "RIGHT", -96, 0) + row:EnableMouse(true) + row:SetScript("OnEnter", function(self) + if self.itemID and GameTooltip then + GameTooltip:SetOwner(self, "ANCHOR_RIGHT") + pcall(GameTooltip.SetItemByID, GameTooltip, self.itemID) + GameTooltip:Show() + end + end) + row:SetScript("OnLeave", function() + if GameTooltip then GameTooltip:Hide() end + end) recentRows[i] = row end row:ClearAllPoints()