diff --git a/system/formspec/formspec_helpers.lua b/system/formspec/formspec_helpers.lua index 4ab9339..821f9b8 100644 --- a/system/formspec/formspec_helpers.lua +++ b/system/formspec/formspec_helpers.lua @@ -90,7 +90,8 @@ mtimer.show_formspec = function (name, def) local formspec = table.concat({ 'formspec_version[2]', 'size[+width,+height]', - 'label[0.25,0.35;+title]', + 'image[0.25,0.2;0.3,0.3;+icon]', + 'label[0.65,0.35;+title]', 'box[0.25,0.6;+linewidth,0.04;#ffffff]', 'container[0.25,+content]', table.concat(def.formspec, ' '), @@ -103,6 +104,7 @@ mtimer.show_formspec = function (name, def) ['+height'] = height, ['+linewidth'] = width-0.25, ['+title'] = minetest.formspec_escape(prefix..def.title), + ['+icon'] = 'mtimer_icon_'..name:gsub('mtimer:', '')..'.png', ['+content'] = 0.9 + content_offset, ['+buttons'] = height-1, ['+defbutton'] = 0.25, diff --git a/textures/README.md b/textures/README.md new file mode 100644 index 0000000..0e5afef --- /dev/null +++ b/textures/README.md @@ -0,0 +1,13 @@ +## License + +If not specified otherwise: All textures are released under CC-BY-SA 4.0 or newer. + +* + +## Buttons and Icons + +All textures named `mtimer_button_*` or `mtimer_icon_*` are taken from the Tango icon library base icon theme. This base icon theme is released under Public Domain by the Tango Desktop Project at freedesktop.org. + +* +* +* diff --git a/textures/mtimer_button_apply.png b/textures/mtimer_button_apply.png new file mode 100644 index 0000000..ffdd633 Binary files /dev/null and b/textures/mtimer_button_apply.png differ diff --git a/textures/mtimer_button_back.png b/textures/mtimer_button_back.png new file mode 100644 index 0000000..2fef135 Binary files /dev/null and b/textures/mtimer_button_back.png differ diff --git a/textures/mtimer_button_reset_default.png b/textures/mtimer_button_reset_default.png new file mode 100644 index 0000000..8383f40 Binary files /dev/null and b/textures/mtimer_button_reset_default.png differ diff --git a/textures/mtimer_button_reset_everything.png b/textures/mtimer_button_reset_everything.png new file mode 100644 index 0000000..d8940b8 Binary files /dev/null and b/textures/mtimer_button_reset_everything.png differ diff --git a/textures/mtimer_icon_host_time_format.png b/textures/mtimer_icon_host_time_format.png new file mode 100644 index 0000000..a7c9a3c Binary files /dev/null and b/textures/mtimer_icon_host_time_format.png differ diff --git a/textures/mtimer_icon_ingame_time_format.png b/textures/mtimer_icon_ingame_time_format.png new file mode 100644 index 0000000..60676b6 Binary files /dev/null and b/textures/mtimer_icon_ingame_time_format.png differ diff --git a/textures/mtimer_icon_main_menu.png b/textures/mtimer_icon_main_menu.png new file mode 100644 index 0000000..d84dd85 Binary files /dev/null and b/textures/mtimer_icon_main_menu.png differ diff --git a/textures/mtimer_icon_real_world_time_format.png b/textures/mtimer_icon_real_world_time_format.png new file mode 100644 index 0000000..7c81ed2 Binary files /dev/null and b/textures/mtimer_icon_real_world_time_format.png differ diff --git a/textures/mtimer_icon_session_duration_format.png b/textures/mtimer_icon_session_duration_format.png new file mode 100644 index 0000000..d84dd85 Binary files /dev/null and b/textures/mtimer_icon_session_duration_format.png differ diff --git a/textures/mtimer_icon_session_start_time_format.png b/textures/mtimer_icon_session_start_time_format.png new file mode 100644 index 0000000..773d9e8 Binary files /dev/null and b/textures/mtimer_icon_session_start_time_format.png differ diff --git a/textures/mtimer_icon_set_color.png b/textures/mtimer_icon_set_color.png new file mode 100644 index 0000000..66ce348 Binary files /dev/null and b/textures/mtimer_icon_set_color.png differ diff --git a/textures/mtimer_icon_set_position.png b/textures/mtimer_icon_set_position.png new file mode 100644 index 0000000..13a1d82 Binary files /dev/null and b/textures/mtimer_icon_set_position.png differ diff --git a/textures/mtimer_icon_set_visibility.png b/textures/mtimer_icon_set_visibility.png new file mode 100644 index 0000000..3f49099 Binary files /dev/null and b/textures/mtimer_icon_set_visibility.png differ diff --git a/textures/mtimer_icon_timer_format.png b/textures/mtimer_icon_timer_format.png new file mode 100644 index 0000000..1cbe6fc Binary files /dev/null and b/textures/mtimer_icon_timer_format.png differ diff --git a/textures/mtimer_icon_timezone_offset.png b/textures/mtimer_icon_timezone_offset.png new file mode 100644 index 0000000..476afd9 Binary files /dev/null and b/textures/mtimer_icon_timezone_offset.png differ