centered tooltip on map
This commit is contained in:
@@ -799,10 +799,8 @@ Checks if a loot table is in memory and attempts to load the correct LoD module
|
||||
dataID: Loot table dataID
|
||||
]]
|
||||
function AtlasLoot:IsLootTableAvailable(dataSource)
|
||||
|
||||
local moduleName = nil;
|
||||
moduleName = AtlasLoot:GetLODModule(dataSource);
|
||||
|
||||
if IsAddOnLoaded(moduleName) then
|
||||
return true;
|
||||
else
|
||||
|
||||
@@ -508,7 +508,7 @@ function AtlasLoot:SubTableScrollFrameUpdate(tablename, dataSource, tablenum)
|
||||
if dataSource == AtlasLoot_MapData then
|
||||
row.Text:SetText(dataSource[tablename][value][1]);
|
||||
row:SetScript("OnEnter", function(self)
|
||||
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
|
||||
GameTooltip:SetOwner(self, "ANCHOR_TOP");
|
||||
GameTooltip:SetText(dataSource[tablename][value][1]);
|
||||
GameTooltip:Show();
|
||||
end)
|
||||
@@ -516,7 +516,6 @@ function AtlasLoot:SubTableScrollFrameUpdate(tablename, dataSource, tablenum)
|
||||
else
|
||||
row.Text:SetText("|cffFFd200"..dataSource[tablename][value].Name);
|
||||
row:SetScript("OnEnter", function(self)
|
||||
GameTooltip:SetOwner(self, "ANCHOR_RIGHT");
|
||||
GameTooltip:Hide();
|
||||
end)
|
||||
if tablenum == value and dataSource ~= AtlasLoot_MapData then
|
||||
|
||||
Reference in New Issue
Block a user