mirror of
https://gitlab.com/4w/mtimer.git
synced 2024-11-24 16:23:44 +01:00
66 lines
2.3 KiB
Lua
66 lines
2.3 KiB
Lua
local m = mtimer
|
|
local S = m.translator
|
|
|
|
|
|
mtimer.show_formspec.main_menu = function (player_name)
|
|
minetest.show_formspec(player_name, 'mtimer:main_menu', [[
|
|
size[4,8.25]
|
|
label[0,-0.125;]]..S('mTimer Configuration')..[[]
|
|
|
|
button[0,0.5;4,1;set_visibility;]]..S('Set Visibility')..[[]
|
|
button[0,1.5;4,1;set_position;]]..S('Set Position')..[[]
|
|
button[0,2.5;4,1;set_color;]]..S('Set Color')..[[]
|
|
button[0,3.5;4,1;timezone_offset;]]..S('Timezone Offset')..[[]
|
|
button[0,4.5;4,1;ingame_time;]]..S('Ingame Time Representation')..[[]
|
|
button[0,5.5;4,1;real_time;]]..S('Real World Time Representation')..[[]
|
|
button[0,6.5;4,1;timer_text;]]..S('Set Timer Text')..[[]
|
|
button_exit[0,7.5;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('Main Menu')..[[]
|
|
]])
|
|
end
|
|
|
|
|
|
mtimer.show_formspec.set_position = function (player_name)
|
|
minetest.show_formspec(player_name, 'mtimer:set_position', [[
|
|
size[8,6.125]
|
|
label[0,-0.125;]]..S('mTimer Position')..[[]
|
|
|
|
image_button[0,0.5;8,4.5 ;mtimer_positions_orientation.png;pos_xx;;;false]
|
|
|
|
image_button[0,0.5;2.67,1.5;mtimer_transparent.png;pos_tl;;;false]
|
|
image_button[2.67,0.5;2.67,1.5;mtimer_transparent.png;pos_tc;;;false]
|
|
image_button[5.34,0.5;2.67,1.5;mtimer_transparent.png;pos_tr;;;false]
|
|
|
|
image_button[0,2;2.67,1.5;mtimer_transparent.png;pos_ml;;;false]
|
|
image_button[2.67,2;2.67,1.5;mtimer_transparent.png;pos_mc;;;false]
|
|
image_button[5.34,2;2.67,1.5;mtimer_transparent.png;pos_mr;;;false]
|
|
|
|
image_button[0,3.5;2.67,1.5;mtimer_transparent.png;pos_bl;;;false]
|
|
image_button[2.67,3.5;2.67,1.5;mtimer_transparent.png;pos_bc;;;false]
|
|
image_button[5.34,3.5;2.67,1.5;mtimer_transparent.png;pos_br;;;false]
|
|
|
|
label[0,5;]]..S('Click the position you want to place the timer at.')..[[]
|
|
|
|
button_exit[0,5.5;2,1;exit;]]..S('Exit')..[[]
|
|
button[2,5.5;2,1;back;]]..S('Main Menu')..[[]
|
|
button[4,5.5;2,1;default;]]..S('Default')..[[]
|
|
|
|
]])
|
|
end
|
|
|
|
|
|
|