Skip to content

Commit

Permalink
Reorganise settingtypes.txt (minetest#12490)
Browse files Browse the repository at this point in the history
This organises the settingstype.txt file to use a logical/user-friendly structure. Advanced settings are also demoted to an advanced section at the end.

At most 3 levels of hierarchy are used, as that's the most allowed by the settings redesign
  • Loading branch information
rubenwardy committed Jun 30, 2022
1 parent 7494ff2 commit 45da0d4
Show file tree
Hide file tree
Showing 2 changed files with 1,596 additions and 1,535 deletions.
8 changes: 4 additions & 4 deletions builtin/mainmenu/dlg_settings_advanced.lua
Original file line number Diff line number Diff line change
Expand Up @@ -351,9 +351,9 @@ local function parse_config_file(read_all, parse_mods)
local file = io.open(path, "r")
if file then
if not games_category_initialized then
fgettext_ne("Games") -- not used, but needed for xgettext
fgettext_ne("Content: Games") -- not used, but needed for xgettext
table.insert(settings, {
name = "Games",
name = "Content: Games",
level = 0,
type = "category",
})
Expand Down Expand Up @@ -384,9 +384,9 @@ local function parse_config_file(read_all, parse_mods)
local file = io.open(path, "r")
if file then
if not mods_category_initialized then
fgettext_ne("Mods") -- not used, but needed for xgettext
fgettext_ne("Content: Mods") -- not used, but needed for xgettext
table.insert(settings, {
name = "Mods",
name = "Content: Mods",
level = 0,
type = "category",
})
Expand Down
Loading

0 comments on commit 45da0d4

Please sign in to comment.