add initial icon support + license information

This commit is contained in:
Dirk Sohler 2019-11-03 08:00:12 +01:00
parent fb51c1eebe
commit 52a937ef88
No known key found for this signature in database
GPG Key ID: B9751241BD7D4E1A
17 changed files with 16 additions and 1 deletions

@ -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>

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB