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
@@ -1,7 +1,7 @@
--[[
Functions:
AtlasLoot:DewDropClick(tablename, text, tabletype, tabletype2)
AtlasLoot:DewDropSubMenuClick(tablename, text)
AtlasLoot:DewDropSubMenuClick(tablename)
AtlasLoot:DewdropExpansionMenuClick(tablename, text)
AtlasLoot_DefaultFrame_OnShow()
AtlasLootDefaultFrame_OnHide()
@@ -90,7 +90,7 @@ function AtlasLoot:DewDropClick(tablename, text, tablenum)
end
--[[
AtlasLoot:DewDropSubMenuClick(tablename, text):
AtlasLoot:DewDropSubMenuClick(tablename):
tablename - Name of the loot table in the database
text - Heading for the loot table
Called when a button in AtlasLoot_DewdropSubMenu is clicked
@@ -191,18 +191,15 @@ function AtlasLoot:DewdropSubMenuRegister(loottable)
'textR', 0.2,
'textG', 0.82,
'textB', 0.5,
'func', function(arg1,arg2) AtlasLoot:DewDropSubMenuClick(arg1,arg2) end,
'func', function(arg1) AtlasLoot:DewDropSubMenuClick(arg1) end,
'arg1', v[2],
'arg2', v[1],
'arg2', v[3],
'notCheckable', true
)
else
AtlasLoot_DewdropSubMenu:AddLine(
'text', AtlasLoot_Data[v[2]].Name,
'func', function(arg1,arg2) AtlasLoot:DewDropSubMenuClick(arg1,arg2) end,
'func', function(arg1,arg2) AtlasLoot:DewDropSubMenuClick(arg1) end,
'arg1', v[2],
'arg2', AtlasLoot_Data[v[2]].Name,
'notCheckable', true
)
end