diff options
author | olive <oliversimmo@gmail.com> | 2022-04-24 20:09:11 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-24 21:09:11 +0200 |
commit | a13cf0e3ce1774f89e59a730aaadc5b997293f36 (patch) | |
tree | 5b20b119eb2166a07fe5195d1d28fff5b6925b0e /builtin/mainmenu/dlg_config_world.lua | |
parent | 1c8614ac9ad591f8025712deae26b572cdede50d (diff) | |
download | minetest-a13cf0e3ce1774f89e59a730aaadc5b997293f36.tar.gz minetest-a13cf0e3ce1774f89e59a730aaadc5b997293f36.tar.bz2 minetest-a13cf0e3ce1774f89e59a730aaadc5b997293f36.zip |
Use mod names/titles instead of technical names (#12192)
Diffstat (limited to 'builtin/mainmenu/dlg_config_world.lua')
-rw-r--r-- | builtin/mainmenu/dlg_config_world.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/builtin/mainmenu/dlg_config_world.lua b/builtin/mainmenu/dlg_config_world.lua index 510d9f804..f73256612 100644 --- a/builtin/mainmenu/dlg_config_world.lua +++ b/builtin/mainmenu/dlg_config_world.lua @@ -163,10 +163,13 @@ local function get_formspec(data) "button[8.95,0.125;2.5,0.5;btn_enable_all_mods;" .. fgettext("Enable all") .. "]" end + + local use_technical_names = core.settings:get_bool("show_technical_names") + return retval .. "tablecolumns[color;tree;text]" .. "table[5.5,0.75;5.75,6;world_config_modlist;" .. - pkgmgr.render_packagelist(data.list) .. ";" .. data.selected_mod .."]" + pkgmgr.render_packagelist(data.list, use_technical_names) .. ";" .. data.selected_mod .."]" end local function handle_buttons(this, fields) |