From 9f47f58e64cc3226d4f24cb3e44ac037f3e0bcb4 Mon Sep 17 00:00:00 2001 From: Dirk Sohler Date: Fri, 22 Feb 2019 18:49:00 +0100 Subject: [PATCH] update main menu design --- locale/mtimer.de.tr | 5 ++++ system/formspec/formspec_creation.lua | 40 ++++++++++++++++++--------- 2 files changed, 32 insertions(+), 13 deletions(-) diff --git a/locale/mtimer.de.tr b/locale/mtimer.de.tr index c0508a0..d167b7d 100644 --- a/locale/mtimer.de.tr +++ b/locale/mtimer.de.tr @@ -14,6 +14,11 @@ Timer Format=Timerformat Reset Everything=Alles zurücksetzen Open Main Menu=Hauptmenü öffnen +# Main Menu +Visuals=Aussehen +Time Representation=Zeit-Repräsentation +Timer Configuration=Timerkonfiguration + # Visibility Visible=Sichtbar Invisible=Unsichtbar diff --git a/system/formspec/formspec_creation.lua b/system/formspec/formspec_creation.lua index 38256f7..084206b 100644 --- a/system/formspec/formspec_creation.lua +++ b/system/formspec/formspec_creation.lua @@ -6,20 +6,34 @@ local fe = minetest.formspec_escape mtimer.show_formspec.main_menu = function (player_name) minetest.show_formspec(player_name, 'mtimer:main_menu', [[ - size[4,11.25] - label[0,-0.125;]]..S('mTimer Configuration')..[[] + size[9.5,6] - button[0,0.5;4,1;set_visibility;]]..S('Visibility')..[[] - button[0,1.5;4,1;set_position;]]..S('Position')..[[] - button[0,2.5;4,1;set_color;]]..S('Color')..[[] - button[0,3.5;4,1;timezone_offset;]]..S('Timezone Offset')..[[] - button[0,4.5;4,1;ingame_time_format;]]..S('Ingame Time Format')..[[] - button[0,5.5;4,1;real_world_time_format;]]..S('Real-World Time Format')..[[] - button[0,6.5;4,1;session_start_time_format;]]..S('Session Start Time Format')..[[] - button[0,7.5;4,1;session_duration_format;]]..S('Session Duration Format')..[[] - button[0,8.5;4,1;timer_format;]]..S('Timer Format')..[[] - button[0,9.5;4,1;reset_everything;]]..S('Reset Everything')..[[] - button_exit[0,10.5;4,1;exit;]]..S('Exit')..[[] + container[0,0] + label[0,0;]]..S('Visuals')..[[] + button[0,0.5;3,1;set_visibility;]]..S('Visibility')..[[] + button[0,1.5;3,1;set_position;]]..S('Position')..[[] + button[0,2.5;3,1;set_color;]]..S('Color')..[[] + container_end[] + + container[3.25,0] + label[0,0;]]..S('Time Representation')..[[] + button[0,0.5;3,1;ingame_time_format;]]..S('Ingame Time Format')..[[] + button[0,1.5;3,1;real_world_time_format;]]..S('Real-World Time Format')..[[] + button[0,2.5;3,1;session_start_time_format;]]..S('Session Start Time Format')..[[] + button[0,3.5;3,1;session_duration_format;]]..S('Session Duration Format')..[[] + container_end[] + + container[6.5,] + label[0,0;]]..S('Timer Configuration')..[[] + button[0,0.5;3,1;timer_format;]]..S('Timer Format')..[[] + button[0,1.5;3,1;timezone_offset;]]..S('Timezone Offset')..[[] + container_end[] + + container[0,5.25] + box[0,0;9.25,0.02;#ffffff] + button[3.49,0.125;3,1;reset_everything;]]..S('Reset Everything')..[[] + button_exit[6.49,0.125;3,1;exit;]]..S('Exit')..[[] + container_end[] ]]) end