aboutsummaryrefslogtreecommitdiff
path: root/builtin/mainmenu/dlg_config_world.lua
diff options
context:
space:
mode:
authorPaul Ouellette <oue.paul18@gmail.com>2018-12-02 18:41:05 -0500
committerParamat <paramat@users.noreply.github.com>2018-12-02 23:41:05 +0000
commite8eaab64a09462870f95d3e6703aab378e248ddc (patch)
treea2fac6c04e8c80bf677ce838ba0009ff7255c198 /builtin/mainmenu/dlg_config_world.lua
parentf70f7875e2a2e49f80470832ae97e73f171d6460 (diff)
downloadminetest-e8eaab64a09462870f95d3e6703aab378e248ddc.tar.gz
minetest-e8eaab64a09462870f95d3e6703aab378e248ddc.tar.bz2
minetest-e8eaab64a09462870f95d3e6703aab378e248ddc.zip
Improve world configure menu (#7922)
Replace `Subgame mods` with <game name> mods. Display game description on left instead of dependencies. Fix double DIR_DELIM in some paths.
Diffstat (limited to 'builtin/mainmenu/dlg_config_world.lua')
-rw-r--r--builtin/mainmenu/dlg_config_world.lua20
1 files changed, 12 insertions, 8 deletions
diff --git a/builtin/mainmenu/dlg_config_world.lua b/builtin/mainmenu/dlg_config_world.lua
index 140eb60d9..1a1107c24 100644
--- a/builtin/mainmenu/dlg_config_world.lua
+++ b/builtin/mainmenu/dlg_config_world.lua
@@ -33,11 +33,15 @@ local function get_formspec(data)
local hard_deps, soft_deps = pkgmgr.get_dependencies(mod.path)
- if mod.is_modpack then
+ if mod.is_modpack or mod.type == "game" then
local info = minetest.formspec_escape(
core.get_content_info(mod.path).description)
if info == "" then
- info = fgettext("No modpack description provided.")
+ if mod.is_modpack then
+ info = fgettext("No modpack description provided.")
+ else
+ info = fgettext("No game description provided.")
+ end
end
retval = retval ..
"textarea[0.25,0.7;5.75,7.2;;" .. info .. ";]"
@@ -63,12 +67,12 @@ local function get_formspec(data)
if pkgmgr.is_modpack_entirely_enabled(data, mod.name) then
retval = retval ..
- "button[5.5,0.125;2.5,0.5;btn_mp_disable;" ..
- fgettext("Disable MP") .. "]"
+ "button[5.5,0.125;3,0.5;btn_mp_disable;" ..
+ fgettext("Disable modpack") .. "]"
else
retval = retval ..
- "button[5.5,0.125;2.5,0.5;btn_mp_enable;" ..
- fgettext("Enable MP") .. "]"
+ "button[5.5,0.125;3,0.5;btn_mp_enable;" ..
+ fgettext("Enable modpack") .. "]"
end
else
retval = retval ..
@@ -78,11 +82,11 @@ local function get_formspec(data)
end
if enabled_all then
retval = retval ..
- "button[8.75,0.125;2.5,0.5;btn_disable_all_mods;" ..
+ "button[8.95,0.125;2.5,0.5;btn_disable_all_mods;" ..
fgettext("Disable all") .. "]"
else
retval = retval ..
- "button[8.75,0.125;2.5,0.5;btn_enable_all_mods;" ..
+ "button[8.95,0.125;2.5,0.5;btn_enable_all_mods;" ..
fgettext("Enable all") .. "]"
end
return retval ..