Skip to content

Commit

Permalink
Added back the ability to create categories from the options menu (bu…
Browse files Browse the repository at this point in the history
…t not configure them).
  • Loading branch information
Cidan committed Sep 5, 2024
1 parent 0d72e63 commit 63e0480
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions config/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ function config:GetOptions()
name = L:G("BetterBags"),
args = {
general = self:GetGeneralOptions(),
customCategories = self:GetCustomCategoryConfig(),
backpack = self:GetBagOptions(const.BAG_KIND.BACKPACK),
bank = self:GetBagOptions(const.BAG_KIND.BANK),
help = self:GenerateHelp(),
Expand Down
9 changes: 5 additions & 4 deletions config/customcat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,11 @@ function config:GetCustomCategoryConfig()
name = L:G("Categories you create can be enabled and disabled just like the default categories in the configuration menu option for the bag (Backpack or Bank) on the left. Once you have created a category, you can configure it by selecting it on the menu on the left."),
order = 1,
},
afterHelp = {
type = "description",
name = L:G("After creating a category, you can use the side menu via the bag menu, Configure Categories, to add or remove items"),
order = 2,
},
name = {
name = L:G("New Category Name"),
type = "input",
Expand Down Expand Up @@ -101,9 +106,5 @@ function config:GetCustomCategoryConfig()
}
},
}

for category, _ in pairs(categories:GetAllCategories()) do
options.args[category] = config:CreateCustomCategoryConfig(category)
end
return options
end

0 comments on commit 63e0480

Please sign in to comment.