Skip to content

Commit 9bb6648

Browse files
rubenwardykwolekr
authored andcommittedOct 28, 2014
Add notice when only minimal is installed
1 parent 4a3592f commit 9bb6648

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed
 

‎builtin/mainmenu/dlg_create_world.lua

+10
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,16 @@ local function create_world_formspec(dialogdata)
6262

6363
"button[5,5.5;2.6,0.5;world_create_confirm;" .. fgettext("Create") .. "]" ..
6464
"button[7.5,5.5;2.8,0.5;world_create_cancel;" .. fgettext("Cancel") .. "]"
65+
66+
if #gamemgr.games == 0 then
67+
retval = retval .. "box[2,4;8,1;#ff8800]label[2.25,4;" ..
68+
fgettext("You have no subgames installed.") .. "]label[2.25,4.4;" ..
69+
fgettext("Download one from minetest.net") .. "]"
70+
elseif #gamemgr.games == 1 and gamemgr.games[1].id == "minimal" then
71+
retval = retval .. "box[1.75,4;8.7,1;#ff8800]label[2,4;" ..
72+
fgettext("Warning: The minimal development test is meant for developers.") .. "]label[2,4.4;" ..
73+
fgettext("Download a subgame, such as minetest_game, from minetest.net") .. "]"
74+
end
6575

6676
return retval
6777

‎builtin/mainmenu/gamemgr.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ end
6868
function gamemgr.gamelist()
6969
local retval = ""
7070
if #gamemgr.games > 0 then
71-
retval = retval .. gamemgr.games[1].id
71+
retval = retval .. gamemgr.games[1].name
7272

7373
for i=2,#gamemgr.games,1 do
7474
retval = retval .. "," .. gamemgr.games[i].name

0 commit comments

Comments
 (0)
Please sign in to comment.