From 9c2c81495644e9d091ba075736419226fa1f00d0 Mon Sep 17 00:00:00 2001 From: Anch Date: Wed, 10 Aug 2022 22:42:22 +1200 Subject: [PATCH] added tooltip to map data --- AtlasLoot/DefaultFrame/AtlaslootDefaultFrameCreate.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/AtlasLoot/DefaultFrame/AtlaslootDefaultFrameCreate.lua b/AtlasLoot/DefaultFrame/AtlaslootDefaultFrameCreate.lua index 496e32a..a08e267 100644 --- a/AtlasLoot/DefaultFrame/AtlaslootDefaultFrameCreate.lua +++ b/AtlasLoot/DefaultFrame/AtlaslootDefaultFrameCreate.lua @@ -505,6 +505,12 @@ function AtlasLoot:SubTableScrollFrameUpdate(tablename, dataSource, pFrame, tabl row.pFrame = pFrame; if dataSource == AtlasLoot_MapData then row.Text:SetText(dataSource[tablename][value][1]); + row:SetScript("OnEnter", function(self) + GameTooltip:SetOwner(self, "ANCHOR_RIGHT"); + GameTooltip:SetText(dataSource[tablename][value][1]); + GameTooltip:Show(); + end) + row:SetScript("OnLeave", function() GameTooltip:Hide() end) else row.Text:SetText("|cffFFd200"..dataSource[tablename][value].Name); if tablenum == value and dataSource ~= AtlasLoot_MapData then