Commit Graph

9 Commits

Author SHA1 Message Date
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
70760fc37f
adapt timer format to new style 2021-04-04 13:04:49 +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
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
50e44e2e32
split off custom timer from other formspecs
Since the custom timer formspec is fairly complex (and will be a bit
more complex in the future) the best thing is splitting it off from the
other formspec definitions.
2021-04-03 15:10:05 +02:00
Dirk Sohler
dc0b0dc03d
make title dynamic and adapt to new style 2021-04-03 15:06:17 +02:00
Dirk Sohler
caecb410e8
refactor init and automate formspec files loading 2021-04-02 09:16:47 +02:00