Commit Graph

33 Commits

Author SHA1 Message Date
Dirk Sohler
59f973d480
implement hard reset of configuration
closes https://gitlab.com/4w/mtimer/-/issues/21
2021-12-10 08:35:12 +01:00
Dirk Sohler
0e281498a3
adapt HUD element size to new style
option was renamed to `scale` instead of `size` because `scale`
describes the technical fact better than `size`.

Please also see DEVELOPERS message in `hud_element_scale.lua` file if
you’re interested in contributing to this project.

Addresses https://gitlab.com/4w/mtimer/-/issues/16
2021-10-09 04:36:43 +02:00
Dirk Sohler
77ff151591
adapt timezone offset to new style 2021-10-06 01:43:53 +02:00
Dirk Sohler
c2d1d1019e
validate if fields sender is an actual player
fixes https://gitlab.com/4w/mtimer/-/issues/18
2021-05-08 20:56:14 +02:00
Dirk Sohler
90d005dcd6
make visibility formspec update after change
fixes https://gitlab.com/4w/mtimer/-/issues/17
2021-05-08 20:53:37 +02:00
Dirk Sohler
062c01e535
adapt color dialog to new style
This also adds a palette to the color dialog so players can pick a color
without typing in the hexadecimal number of it.

Addresses https://gitlab.com/4w/mtimer/-/issues/16
2021-04-05 09:29:44 +02:00
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
69dd2386c0
adapt visibility dialog to new style
Also button image locations are slightly adapted
2021-04-04 12:59:41 +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
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
5085711f6b
prepare implementation of custom timer
Addresses https://gitlab.com/4w/mtimer/-/issues/10
2021-02-10 21:21:24 +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
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