Commit Graph

74 Commits

Author SHA1 Message Date
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
Dirk Sohler
b6db7ce7f8
get rid of manual GC
See https://gitlab.com/4w/mtimer/issues/7
2019-03-12 21:38:47 +01:00
Dirk Sohler
abc8fd5b55
try to circumvent Out Of Memory error (Win64)
See https://gitlab.com/4w/mtimer/issues/7
2019-03-11 22:11:25 +01:00
Dirk Sohler
c74dcf708a
add mission translation strings
fixes https://gitlab.com/4w/mtimer/issues/6
2019-03-11 21:37:41 +01:00
Dirk Sohler
4f80098fe6
wrap formspec generation into custom function
implements https://gitlab.com/4w/mtimer/issues/5
2019-03-08 22:25:00 +01:00
Dirk Sohler
06b4bfa77e
use dialog instead of set_formspec
Addresses https://gitlab.com/4w/mtimer/issues/5
2019-03-06 18:22:50 +01:00
Dirk Sohler
3fd5d23181
documentation update 2019-02-23 16:08:04 +01:00
Dirk Sohler
5875f97856
add user documentation 2019-02-23 15:51:11 +01:00
Dirk Sohler
dd4ba01c7f
main menu update 2019-02-23 15:09:17 +01:00
Dirk Sohler
5a0f2904fa
write code documentation 2019-02-22 20:33:42 +01:00
Dirk Sohler
ccc0b9a743
make visibility switching work 2019-02-22 18:55:39 +01:00
Dirk Sohler
9f47f58e64
update main menu design 2019-02-22 18:49:00 +01:00
Dirk Sohler
0c04bb9f50
make timer default format translatable 2019-02-22 16:00:18 +01:00
Dirk Sohler
27fef2760f
mTimer is independent from sfinv 2019-02-22 15:52:51 +01:00
Dirk Sohler
574a962371
implement automatic update via globalstep 2019-02-22 15:50:32 +01:00
Dirk Sohler
2e3cc57297
implement timer update function 2019-02-22 15:29:08 +01:00
Dirk Sohler
3aeae84356
implement timer format setting 2019-02-22 14:08:44 +01:00
Dirk Sohler
ef34c5d392
escape strings that could break the formspecs 2019-02-22 13:06:03 +01:00
Dirk Sohler
1817f4b046
unification and configuration additions 2019-02-21 21:07:35 +01:00
Dirk Sohler
91c3ec5332
i18n update 2019-02-21 16:25:07 +01:00
Dirk Sohler
89cd1f6212
implement ingame time format setting
Convert ingame time to millihours and calculate the timestamp from this.
It results in a default timestampo that is parsed by default date and
time functions.

Replacement variables:

{24h} = 24 hours time
{12h} = 12 hours time
{min} = minutes
{its} = ingame timestamp

For some reason I was not able to get the am/pm indicator (`%p`) so 12
hours format is only the time and no optional indicator.
2019-02-21 16:16:10 +01:00
Dirk Sohler
e84fa467db
implement time getting function 2019-02-21 14:37:58 +01:00
Dirk Sohler
fbca7a64fa
implement timezone offset configuration 2019-02-19 13:40:19 +01:00
Dirk Sohler
4c5de1fb42
add a helper function to build the formspec frame
fixes https://gitlab.com/4w/mtimer/issues/4
2019-02-18 22:02:59 +01:00
Dirk Sohler
34c78e20af
add color configuration 2019-02-17 03:10:41 +01:00
Dirk Sohler
970bf47ec0
implement position selection 2019-02-17 01:31:10 +01:00