Added bag sort capability to the inventory frame
This commit is contained in:
@ -2,12 +2,13 @@ local MYINVENTORY_DEFAULT_OPTIONS = {
|
||||
["Columns"] = 12,
|
||||
["Replace"] = true,
|
||||
["Bag"] = "bar",
|
||||
["BagSort"] = true,
|
||||
["Graphics"] = "art",
|
||||
["Count"] = "free",
|
||||
["HlItems"] = true,
|
||||
["Sort"] = "realm",
|
||||
["Search"] = true,
|
||||
["Token"] = true,
|
||||
["Sort"] = "realm",
|
||||
["Search"] = true,
|
||||
["Token"] = true,
|
||||
["HlBags"] = true,
|
||||
["Freeze"] = "sticky",
|
||||
["NoEsc"] = false,
|
||||
@ -137,6 +138,17 @@ function MyInventory:OnInitialize()
|
||||
MyInventory:SetBagDisplay(val)
|
||||
end
|
||||
},
|
||||
bagsort = {
|
||||
type = "toggle",
|
||||
name = "BagSort",
|
||||
desc = "Toggle bag sort button",
|
||||
get = function(info)
|
||||
return MyInventory.IsSet("BagSort")
|
||||
end,
|
||||
set = function(info, val)
|
||||
MyInventory:SetBagSort()
|
||||
end,
|
||||
},
|
||||
back = {
|
||||
type = "select",
|
||||
name = "Background",
|
||||
|
||||
Reference in New Issue
Block a user