99 Commits

Author SHA1 Message Date
Dirk Sohler
75365e2f1c use new style for position dialog
addresses https://gitlab.com/4w/mtimer/-/issues/16
2021-04-04 17:15:32 +02:00
Dirk Sohler
f7d6025557 adapt custom timer to new style
Also implement control buttons

closes https://gitlab.com/4w/mtimer/-/issues/12
2021-04-04 14:23:35 +02:00
Dirk Sohler
70760fc37f adapt timer format to new style 2021-04-04 13:04:49 +02:00
Dirk Sohler
69dd2386c0 adapt visibility dialog to new style
Also button image locations are slightly adapted
2021-04-04 12:59:41 +02:00
Dirk Sohler
fd7c3f67d3 use better icon for visibility 2021-04-04 12:35:28 +02:00
Dirk Sohler
c0559c6a9d use better icon for exit button 2021-04-04 12:30:24 +02:00
Dirk Sohler
120336493b remove debug leftovers 2021-04-03 15:34:11 +02:00
Dirk Sohler
b179c6f8c1 use formspec checkbox for timer type
Unfortunately the formspec seems not to be properly updated when
unchecking a checkbox, even if fields are sent and thus the formspec
action should be triggered. This causes unselecting the currently
selected timer type to be unselected when uinselecting it – instead of
updating the formspec and show the selected option again.

This is just a “visual glitch” and does not affect the timer
functionality. When re-opening the timer window the type is selected
correctly again.

addresses https://gitlab.com/4w/mtimer/-/issues/11
2021-04-03 15:25:52 +02:00
Dirk Sohler
50e44e2e32 split off custom timer from other formspecs
Since the custom timer formspec is fairly complex (and will be a bit
more complex in the future) the best thing is splitting it off from the
other formspec definitions.
2021-04-03 15:10:05 +02:00
Dirk Sohler
dc0b0dc03d make title dynamic and adapt to new style 2021-04-03 15:06:17 +02:00
Dirk Sohler
18efcb0307 update icons and button images readme 2021-04-02 11:04:37 +02:00
Dirk Sohler
8640ba95c5 make all timer standard values configurable 2021-04-02 10:54:49 +02:00
Dirk Sohler
caecb410e8 refactor init and automate formspec files loading 2021-04-02 09:16:47 +02:00
Dirk Sohler
91c7ddd0b8 optipng exit button icon 2021-04-02 08:58:43 +02:00
Dirk Sohler
4c1640773b remove unused image file 2021-04-02 08:57:44 +02:00
Dirk Sohler
b3b23e8860 unify formspec cration files 2021-04-02 08:57:00 +02:00
Dirk Sohler
7e0713a67a make all dialogs use the new style buttons 2021-04-02 08:52:29 +02:00
Dirk Sohler
f1214ba398 update main menu to use icons
This commit also implements a button getting function to automatically
create icon buttons.
2021-04-02 04:07:40 +02:00
Dirk Sohler
a62fc8bbc8 optipng all textures (icons, buttons, etc.) 2021-02-12 20:27:12 +01:00
Dirk Sohler
7700d9e35b optipng all screenshots 2021-02-12 20:25:11 +01:00
Dirk Sohler
55dd5b1d9a fully implement custom timer logic
Addresses https://gitlab.com/4w/mtimer/-/issues/10
2021-02-12 20:23:40 +01:00
Dirk Sohler
8b1664111f implement custom timer setting logic
Addresses https://gitlab.com/4w/mtimer/-/issues/10
2021-02-12 12:02:23 +01:00
Dirk Sohler
a28f97b135 build custom timer formspec with options parsing
No functionality yet and the fields are just dumped. Translation to
German is done and the meta data is loaded properly.

Addresses https://gitlab.com/4w/mtimer/-/issues/10
2021-02-11 21:49:26 +01:00
Dirk Sohler
60e55dc36a fully implement custom timer into logic
Nothing is done right now but the custoim timer is fully implemented
into mTimer’s logic and is processed regularly. Next step is to write
the custom timer formspec and logic.
2021-02-10 21:34:11 +01:00
Dirk Sohler
5085711f6b prepare implementation of custom timer
Addresses https://gitlab.com/4w/mtimer/-/issues/10
2021-02-10 21:21:24 +01:00
Dirk Sohler
6922ab9797 make mTimer game-agnostic
Before this commit mTimer depended on Minetest Game’s `default` mod just
for the reason because it was common practice depending mods on it.

Since Minetest Game will be discontinued and put in maintenance mode
mTimer was sucessfully tested to run without the `default` dependency.

Tests were done using “Development Test” and paramat’s “minipeli”.

https://github.com/minetest/minetest/tree/master/games/devtest
https://github.com/paramat/minipeli
2020-08-24 20:56:21 +02:00
Dirk Sohler
663ba84961 add missing documentation to config set function 2020-08-17 16:46:50 +02:00
Dirk Sohler
15ded5a0b2 implement an default settings configuration system
Settings can be placed in minetest.conf ow world-specific _mtimer.conf
files. See updated readme for details.
2020-08-16 00:13:24 +02:00
Dirk Sohler
bc4e940c80 fix bug in size setting sanitizing 2020-08-11 21:33:14 +02:00
Dirk Sohler
a7e89e6c2e fully implement hud element offset 2020-08-11 21:30:16 +02:00
Dirk Sohler
93771fbbaf implement offset dialogs+i18n and setting logic
Formspec, menu entry, and logic are done. Logic for setting the timer
offsets on receiving formspec fields needs to be done.
2020-08-11 21:02:26 +02:00
Dirk Sohler
471f3aac80 add HUD element size description 2020-08-07 05:28:52 +02:00
Dirk Sohler
dc8729c0f5 add HUD element scaling using HUD's size parameter 2020-08-07 05:15:47 +02:00
Dirk Sohler
52a937ef88 add initial icon support + license information 2019-11-03 08:00:12 +01:00
Dirk Sohler
fb51c1eebe update formspecs to version 2 2019-10-16 01:00:11 +02:00
Dirk Sohler
76115d9e13 update timer format screenshot 2019-04-12 22:04:16 +02:00
Dirk Sohler
249de53f70 18n update 2019-04-12 21:58:01 +02:00
Dirk Sohler
3d0d58fe64 add host time format setting 2019-04-12 21:56:06 +02:00
Dirk Sohler
a3f7c60ead add thumbnail
Since mods without thumbnails get punished in the CDB the thumbnail was
added. It is not related to the mod itself.

CDB issue about unfair punishment: https://github.com/minetest/contentdb/issues/138
Original picture taken by me: http://www.ipernity.com/doc/dirk/5203978
Relevant to the release-ready issue: https://gitlab.com/4w/mtimer/issues/8
2019-04-07 05:33:04 +02:00
Dirk Sohler
bdd8233b04 fix day being one day of 2019-03-24 09:54:58 +01:00
Dirk Sohler
29e8398997 add language information 2019-03-21 18:54:34 +01:00
Dirk Sohler
e4dd32cd44 reorder Italian translation 2019-03-21 18:52:21 +01:00
Dirk
db99767984 Merge branch 'italian' into 'master'
Added Italian locale file

See merge request 4w/mtimer!2
2019-03-21 17:42:10 +00:00
Dirk Sohler
f498c39d06 Go through translation strings
See https://gitlab.com/4w/mtimer/issues/8
2019-03-16 23:41:27 +01:00
Dirk Sohler
85c109e23a Check user documentation
See https://gitlab.com/4w/mtimer/issues/8
2019-03-16 23:26:16 +01:00
Dirk Sohler
bfc2c5adc5 use better placement screenshot 2019-03-16 23:07:40 +01:00
Dirk Sohler
1c6245461b Go through code documentation
See https://gitlab.com/4w/mtimer/issues/8
2019-03-16 22:48:49 +01:00
Dirk Sohler
58c916e18c make formspec separator lines thicker 2019-03-16 22:30:48 +01:00
H4mlet
5c2abf3e16 Added Italian locale file 2019-03-13 12:08:28 +01:00
Dirk Sohler
a465d0d989 replace %T with %H:%M:%S
See https://gitlab.com/4w/mtimer/issues/7
2019-03-12 21:41:53 +01:00