Public server checkbox

This commit is contained in:
proller 2013-07-10 00:09:17 +04:00 committed by Nils Dagsson Moskopp
parent 97c03436f6
commit 47d555563a
Signed by: erle
GPG Key ID: A3BC671C35191080
1 changed files with 8 additions and 2 deletions

View File

@ -828,6 +828,10 @@ function tabbuilder.handle_server_buttons(fields)
engine.setting_setbool("enable_damage",tabbuilder.tobool(fields["cb_enable_damage"])) engine.setting_setbool("enable_damage",tabbuilder.tobool(fields["cb_enable_damage"]))
end 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 if fields["start_server"] ~= nil or
world_doubleclick or world_doubleclick or
@ -1175,9 +1179,11 @@ function tabbuilder.tab_server()
dump(engine.setting_getbool("creative_mode")) .. "]".. dump(engine.setting_getbool("creative_mode")) .. "]"..
"checkbox[0.5,0.7;cb_enable_damage;Enable Damage;" .. "checkbox[0.5,0.7;cb_enable_damage;Enable Damage;" ..
dump(engine.setting_getbool("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") .. "]" .. 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]" .. "field[0.8,5.2;3,0.5;te_serverport;Server Port;30000]" ..
"textlist[4,0.25;7.5,3.7;srv_worlds;" "textlist[4,0.25;7.5,3.7;srv_worlds;"