fixed sub table name not changing

This commit is contained in:
Anch
2021-11-02 18:13:08 +13:00
parent 192005653a
commit 072db74800
2 changed files with 10 additions and 1 deletions
+7
View File
@@ -789,6 +789,12 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame)
lastType = dataSource[dataID].Type
end
if SelectedTableTextSet then
AtlasLootDefaultFrame_SelectedTable:SetText(AtlasLoot_TableNames[dataID][1]);
else
AtlasLootDefaultFrame_SelectedTable:SetText("");
end
AtlasLootItemsFrame.refresh = {dataID, dataSource_backup, boss, pFrame};
if dataID ~= "FilterList" then
AtlasLootItemsFrame.refreshOri = {dataID, dataSource_backup, boss, pFrame}
@@ -858,6 +864,7 @@ function AtlasLoot_ShowItemsFrame(dataID, dataSource, boss, pFrame)
end
end
end
--For Alphamap and Atlas integration, show a 'close' button to hide the loot table and restore the map view
@@ -53,6 +53,7 @@ function AtlasLoot_DewDropClick(tablename, text, tabletype)
AtlasLootDefaultFrame_SubMenu:Disable();
AtlasLootDefaultFrame_SelectedTable:SetText("");
AtlasLootDefaultFrame_SelectedTable:Show();
SelectedTableTextSet = false;
else
--Enable the submenu button
AtlasLootDefaultFrame_SubMenu:Enable();
@@ -69,7 +70,8 @@ function AtlasLoot_DewDropClick(tablename, text, tabletype)
else
AtlasLootDefaultFrame_SelectedTable:SetText(AtlasLoot_TableNames[AtlasLoot_DewDropDown_SubTables[tablename][1][2]][1]);
end
AtlasLootDefaultFrame_SelectedTable:Show();
AtlasLootDefaultFrame_SelectedTable:Show();
SelectedTableTextSet = true;
end
--Show the category that has been selected
AtlasLootDefaultFrame_SelectedCategory:SetText(text);