add initial icon support + license information
@ -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,
|
||||
|
13
textures/README.md
Normal file
@ -0,0 +1,13 @@
|
||||
## License
|
||||
|
||||
If not specified otherwise: All textures are released under CC-BY-SA 4.0 or newer.
|
||||
|
||||
* <https://creativecommons.org/licenses/by-sa/4.0/>
|
||||
|
||||
## 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.
|
||||
|
||||
* <http://tango.freedesktop.org/Tango_Icon_Library>
|
||||
* <http://tango.freedesktop.org/Tango_Desktop_Project>
|
||||
* <https://www.freedesktop.org>
|
BIN
textures/mtimer_button_apply.png
Normal file
After Width: | Height: | Size: 6.0 KiB |
BIN
textures/mtimer_button_back.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
textures/mtimer_button_reset_default.png
Normal file
After Width: | Height: | Size: 3.0 KiB |
BIN
textures/mtimer_button_reset_everything.png
Normal file
After Width: | Height: | Size: 5.9 KiB |
BIN
textures/mtimer_icon_host_time_format.png
Normal file
After Width: | Height: | Size: 2.7 KiB |
BIN
textures/mtimer_icon_ingame_time_format.png
Normal file
After Width: | Height: | Size: 5.9 KiB |
BIN
textures/mtimer_icon_main_menu.png
Normal file
After Width: | Height: | Size: 8.2 KiB |
BIN
textures/mtimer_icon_real_world_time_format.png
Normal file
After Width: | Height: | Size: 6.0 KiB |
BIN
textures/mtimer_icon_session_duration_format.png
Normal file
After Width: | Height: | Size: 8.2 KiB |
BIN
textures/mtimer_icon_session_start_time_format.png
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
textures/mtimer_icon_set_color.png
Normal file
After Width: | Height: | Size: 4.1 KiB |
BIN
textures/mtimer_icon_set_position.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
textures/mtimer_icon_set_visibility.png
Normal file
After Width: | Height: | Size: 6.8 KiB |
BIN
textures/mtimer_icon_timer_format.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
textures/mtimer_icon_timezone_offset.png
Normal file
After Width: | Height: | Size: 7.8 KiB |