Commit Graph

13 Commits

Author SHA1 Message Date
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
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
3d0d58fe64
add host time format setting 2019-04-12 21:56:06 +02:00
Dirk Sohler
bdd8233b04
fix day being one day of 2019-03-24 09:54:58 +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
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
5a0f2904fa
write code documentation 2019-02-22 20:33:42 +01:00
Dirk Sohler
1817f4b046
unification and configuration additions 2019-02-21 21:07:35 +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