local m = mtimer local S = m.translator mtimer.show_formspec.menu = function (player_name) minetest.show_formspec(player_name, 'mtimer:main_menu', [[ size[4,7.75] button[0,0;4,1;set_visibility;]]..S('Set Visibility')..[[] button[0,1;4,1;set_position;]]..S('Set Position')..[[] button[0,2;4,1;set_color;]]..S('Set Color')..[[] button[0,3;4,1;timezone_offset;]]..S('Timezone Offset')..[[] button[0,4;4,1;ingame_time;]]..S('Ingame Time Representation')..[[] button[0,5;4,1;real_time;]]..S('Real World Time Representation')..[[] button[0,6;4,1;timer_text;]]..S('Set Timer Text')..[[] button_exit[0,7;4,1;exit;]]..S('Exit')..[[] ]]) end mtimer.show_formspec.set_visibility = function (player_name) minetest.show_formspec(player_name, 'mtimer:set_visibility', [[ size[6,2.25] label[0,-0.125;]]..S('mTimer Visibility')..[[] button[0,0.5;2,1;visible;]]..S('Visible')..[[] button[2,0.5;2,1;invisible;]]..S('Invisible')..[[] button[4,0.5;2,1;default;]]..S('Default')..[[] button_exit[0,1.5;3,1;exit;]]..S('Exit')..[[] button[3,1.5;3,1;back;]]..S('Back')..[[] ]]) end