added displayname

added option to add DisplayName to tables to make the subcategory name different on the button then whats in the menu itself
This commit is contained in:
Anch
2022-09-28 03:07:55 +13:00
parent 61b52a56e7
commit 57f2a3c07a
3 changed files with 51 additions and 30 deletions
+5 -1
View File
@@ -478,7 +478,11 @@ function AtlasLoot:ShowItemsFrame(dataID, dataSource_backup, tablenum)
--For stopping the subtable from changing if its a token table
if dataSource[dataID].NoSubt == nil and dataID ~= "FilterList" then
AtlasLootDefaultFrame_SubMenuText:SetText(dataSource[dataID].Name);
if dataSource[dataID].DisplayName then
AtlasLootDefaultFrame_SubMenuText:SetText(dataSource[dataID].DisplayName);
else
AtlasLootDefaultFrame_SubMenuText:SetText(dataSource[dataID].Name);
end
AtlasLoot:SubTableScrollFrameUpdate(dataID, dataSource_backup, tablenum);
end