aboutsummaryrefslogtreecommitdiff
path: root/builtin/mainmenu/tab_server.lua
diff options
context:
space:
mode:
Diffstat (limited to 'builtin/mainmenu/tab_server.lua')
-rw-r--r--builtin/mainmenu/tab_server.lua42
1 files changed, 21 insertions, 21 deletions
diff --git a/builtin/mainmenu/tab_server.lua b/builtin/mainmenu/tab_server.lua
index 34706efbe..1ae2a0656 100644
--- a/builtin/mainmenu/tab_server.lua
+++ b/builtin/mainmenu/tab_server.lua
@@ -23,33 +23,33 @@ local function get_formspec(tabview, name, tabdata)
)
local retval =
- "button[4,4.15;2.6,0.5;world_delete;".. fgettext("Delete") .. "]" ..
- "button[6.5,4.15;2.8,0.5;world_create;".. fgettext("New") .. "]" ..
- "button[9.2,4.15;2.55,0.5;world_configure;".. fgettext("Configure") .. "]" ..
- "button[8.5,4.9;3.25,0.5;start_server;".. fgettext("Start Game") .. "]" ..
- "label[4,-0.25;".. fgettext("Select World:") .. "]"..
- "vertlabel[0,-0.25;".. fgettext("START SERVER") .. "]" ..
- "checkbox[0.5,0.25;cb_creative_mode;".. fgettext("Creative Mode") .. ";" ..
- dump(core.setting_getbool("creative_mode")) .. "]"..
- "checkbox[0.5,0.7;cb_enable_damage;".. fgettext("Enable Damage") .. ";" ..
- dump(core.setting_getbool("enable_damage")) .. "]"..
- "checkbox[0.5,1.15;cb_server_announce;".. fgettext("Public") .. ";" ..
- dump(core.setting_getbool("server_announce")) .. "]"..
- "field[0.8,3.2;3.5,0.5;te_playername;".. fgettext("Name") .. ";" ..
+ "button[4,4.15;2.6,0.5;world_delete;" .. fgettext("Delete") .. "]" ..
+ "button[6.5,4.15;2.8,0.5;world_create;" .. fgettext("New") .. "]" ..
+ "button[9.2,4.15;2.55,0.5;world_configure;" .. fgettext("Configure") .. "]" ..
+ "button[8.5,4.95;3.25,0.5;start_server;" .. fgettext("Start Game") .. "]" ..
+ "label[4,-0.25;" .. fgettext("Select World:") .. "]" ..
+ "checkbox[0.25,0.25;cb_creative_mode;" .. fgettext("Creative Mode") .. ";" ..
+ dump(core.setting_getbool("creative_mode")) .. "]" ..
+ "checkbox[0.25,0.7;cb_enable_damage;" .. fgettext("Enable Damage") .. ";" ..
+ dump(core.setting_getbool("enable_damage")) .. "]" ..
+ "checkbox[0.25,1.15;cb_server_announce;" .. fgettext("Public") .. ";" ..
+ dump(core.setting_getbool("server_announce")) .. "]" ..
+ "label[0.25,2.2;" .. fgettext("Name/Password") .. "]" ..
+ "field[0.55,3.2;3.5,0.5;te_playername;;" ..
core.formspec_escape(core.setting_get("name")) .. "]" ..
- "pwdfield[0.8,4.2;3.5,0.5;te_passwd;".. fgettext("Password") .. "]"
-
+ "pwdfield[0.55,4;3.5,0.5;te_passwd;]"
+
local bind_addr = core.setting_get("bind_address")
if bind_addr ~= nil and bind_addr ~= "" then
retval = retval ..
- "field[0.8,5.2;2.25,0.5;te_serveraddr;".. fgettext("Bind Address") .. ";" ..
- core.formspec_escape(core.setting_get("bind_address")) .."]" ..
- "field[3.05,5.2;1.25,0.5;te_serverport;".. fgettext("Port") .. ";" ..
- core.formspec_escape(core.setting_get("port")) .."]"
+ "field[0.55,5.2;2.25,0.5;te_serveraddr;" .. fgettext("Bind Address") .. ";" ..
+ core.formspec_escape(core.setting_get("bind_address")) .. "]" ..
+ "field[2.8,5.2;1.25,0.5;te_serverport;" .. fgettext("Port") .. ";" ..
+ core.formspec_escape(core.setting_get("port")) .. "]"
else
retval = retval ..
- "field[0.8,5.2;3.5,0.5;te_serverport;".. fgettext("Server Port") .. ";" ..
- core.formspec_escape(core.setting_get("port")) .."]"
+ "field[0.55,5.2;3.5,0.5;te_serverport;" .. fgettext("Server Port") .. ";" ..
+ core.formspec_escape(core.setting_get("port")) .. "]"
end
retval = retval ..