aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorproller <proller@github.com>2013-07-10 00:09:17 +0400
committerproller <proller@github.com>2013-07-10 00:17:47 +0400
commite3b7c8e0cc66c0ab9a87dc6626bff9a9fac3eda8 (patch)
tree6a6147ba6739a27b3a7787c406f39d7be04b4f35
parentc8bd2ae11cb0972eda86577ab15c2c69ecae33d0 (diff)
downloadminetest-e3b7c8e0cc66c0ab9a87dc6626bff9a9fac3eda8.tar.gz
minetest-e3b7c8e0cc66c0ab9a87dc6626bff9a9fac3eda8.tar.bz2
minetest-e3b7c8e0cc66c0ab9a87dc6626bff9a9fac3eda8.zip
Public server checkbox
-rw-r--r--builtin/mainmenu.lua10
1 files changed, 8 insertions, 2 deletions
diff --git a/builtin/mainmenu.lua b/builtin/mainmenu.lua
index d5092cda6..0012cab3e 100644
--- a/builtin/mainmenu.lua
+++ b/builtin/mainmenu.lua
@@ -827,6 +827,10 @@ function tabbuilder.handle_server_buttons(fields)
if fields["cb_enable_damage"] then
engine.setting_setbool("enable_damage",tabbuilder.tobool(fields["cb_enable_damage"]))
end
+
+ if fields["cb_server_announce"] then
+ engine.setting_setbool("server_announce",tabbuilder.tobool(fields["cb_server_announce"]))
+ end
if fields["start_server"] ~= nil or
@@ -1175,9 +1179,11 @@ function tabbuilder.tab_server()
dump(engine.setting_getbool("creative_mode")) .. "]"..
"checkbox[0.5,0.7;cb_enable_damage;Enable Damage;" ..
dump(engine.setting_getbool("enable_damage")) .. "]"..
- "field[0.8,2.2;3,0.5;te_playername;Name;" ..
+ "checkbox[0.5,1.15;cb_server_announce;Public;" ..
+ dump(engine.setting_getbool("server_announce")) .. "]"..
+ "field[0.8,3.2;3,0.5;te_playername;Name;" ..
engine.setting_get("name") .. "]" ..
- "pwdfield[0.8,3.2;3,0.5;te_passwd;Password]" ..
+ "pwdfield[0.8,4.2;3,0.5;te_passwd;Password]" ..
"field[0.8,5.2;3,0.5;te_serverport;Server Port;30000]" ..
"textlist[4,0.25;7.5,3.7;srv_worlds;"