fixed pattern selection not working

This commit is contained in:
Anch
2022-08-03 16:40:17 +12:00
parent 3231ad506c
commit 6910bc2848
5 changed files with 26 additions and 155 deletions
@@ -108,11 +108,12 @@ function AtlasLoot_DewDropSubMenuClick(tablename)
--Show the select loot table
local tablenum = AtlasLoot_Data[tablename].Loadfirst or 1;
ItemindexID = ItemindexID or 2;
if AtlasLoot_Data[tablename].Type == "Crafting" then
ItemindexID = "Pattern";
end
--Show the table that has been selected
AtlasLoot_ShowItemsFrame(tablename, AtlasLoot_Data, AtlasLoot_Data[tablename][tablenum].Name, pFrame, tablenum);
AtlasLootDefaultFrame_SubTableScrollFrameUpdate(tablename, AtlasLoot_Data, pFrame, tablenum);
--Save needed info for fuure re-display of the table
-- AtlasLoot.db.profile.LastBoss = {tablename, AtlasLoot_Data, AtlasLoot_Data[tablename][tablenum].Name, pFrame, tablenum, ATLASLOOT_LASTMODULE, ATLASLOOT_CURRENTTABLE};
--Show the table that has been selected
AtlasLoot_DewdropSubMenu:Close(1);
end