diff options
author | rubenwardy <rubenwardy@gmail.com> | 2014-10-16 19:23:02 +0100 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2014-10-28 13:17:14 -0400 |
commit | 9bb6648f2623a35190a9b1a858ccae1d6cc0bc15 (patch) | |
tree | 2a07bd076f2aa337d1da748fe4934bf302fdb431 /builtin | |
parent | 4a3592ff9a10767c2831b569a316560a7d30577d (diff) | |
download | minetest-9bb6648f2623a35190a9b1a858ccae1d6cc0bc15.tar.gz minetest-9bb6648f2623a35190a9b1a858ccae1d6cc0bc15.tar.bz2 minetest-9bb6648f2623a35190a9b1a858ccae1d6cc0bc15.zip |
Add notice when only minimal is installed
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/mainmenu/dlg_create_world.lua | 10 | ||||
-rw-r--r-- | builtin/mainmenu/gamemgr.lua | 2 |
2 files changed, 11 insertions, 1 deletions
diff --git a/builtin/mainmenu/dlg_create_world.lua b/builtin/mainmenu/dlg_create_world.lua index 5771d8b27..6d433bde4 100644 --- a/builtin/mainmenu/dlg_create_world.lua +++ b/builtin/mainmenu/dlg_create_world.lua @@ -62,6 +62,16 @@ local function create_world_formspec(dialogdata) "button[5,5.5;2.6,0.5;world_create_confirm;" .. fgettext("Create") .. "]" .. "button[7.5,5.5;2.8,0.5;world_create_cancel;" .. fgettext("Cancel") .. "]" + + if #gamemgr.games == 0 then + retval = retval .. "box[2,4;8,1;#ff8800]label[2.25,4;" .. + fgettext("You have no subgames installed.") .. "]label[2.25,4.4;" .. + fgettext("Download one from minetest.net") .. "]" + elseif #gamemgr.games == 1 and gamemgr.games[1].id == "minimal" then + retval = retval .. "box[1.75,4;8.7,1;#ff8800]label[2,4;" .. + fgettext("Warning: The minimal development test is meant for developers.") .. "]label[2,4.4;" .. + fgettext("Download a subgame, such as minetest_game, from minetest.net") .. "]" + end return retval diff --git a/builtin/mainmenu/gamemgr.lua b/builtin/mainmenu/gamemgr.lua index 64fb41b9d..b6faa71d9 100644 --- a/builtin/mainmenu/gamemgr.lua +++ b/builtin/mainmenu/gamemgr.lua @@ -68,7 +68,7 @@ end function gamemgr.gamelist() local retval = "" if #gamemgr.games > 0 then - retval = retval .. gamemgr.games[1].id + retval = retval .. gamemgr.games[1].name for i=2,#gamemgr.games,1 do retval = retval .. "," .. gamemgr.games[i].name |