18 Commits

Author SHA1 Message Date
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
dc8729c0f5 add HUD element scaling using HUD's size parameter 2020-08-07 05:15:47 +02:00
Dirk Sohler
3d0d58fe64 add host time format setting 2019-04-12 21:56:06 +02: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
5a0f2904fa write code documentation 2019-02-22 20:33:42 +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
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
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