Commit Graph

73 Commits

Author SHA1 Message Date
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
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
Dirk Sohler
613ebf046d
extend chat command 2019-02-16 17:33:16 +01:00
Dirk Sohler
028cdbf99e
establish formspec system 2019-02-16 16:45:32 +01:00
Dirk Sohler
ecfac04415
reboot
The mod will be rewritten from scratch with modern code for most recent
Minetest (feature-complete 5.0.0 pre-release version so when 5.0.0 will
be released the mod will be ready)

See https://gitlab.com/4w/mtimer/issues/3 for status
2019-02-15 19:22:59 +01:00
Dirk Sohler
684bce012f implement /mtimer set chat command
Issue https://github.com/dsohler/mtimer/issues/1
2017-07-29 23:13:09 +02:00
Dirk Sohler
ba2f0c9147 add /mtimer help chat command
Issue: https://github.com/dsohler/mtimer/issues/1
2017-07-29 21:41:24 +02:00
Dirk Sohler
43c633732e implement base functionality for chat commands
Chat commands alwys start with `/mtimer` and then the player defines
what action to perform and adds a payload.

    /mtimer help
    /mtimer show
    /mtimer set setting value

Issue: https://github.com/dsohler/mtimer/issues/1
2017-07-29 21:19:05 +02:00
Dirk Sohler
d65c1f11ba switch to player based configuration
Before all variables and “constants” (configuration variables) were
stored in one single global table. Now the players get custom attributes
set. This allows player-based displaying of the timer information.

This will be done in subsequent commits.

Tracking issue: https://github.com/dsohler/mtimer/issues/1
2017-07-29 16:36:07 +02:00
Dirk Sohler
7cbb032a43 outsource config loading 2017-07-28 18:59:33 +02:00