Dirk
f7e3ec9cf4
replace minetest -> core + references
...
@addresses https://git.0x7be.net/dirk/mtimer/issues/1
2024-11-16 23:51:13 +01:00
Dirk Sohler
7e367a7509
work on code documentation and i18n ordering
2021-10-09 05:25:41 +02:00
Dirk Sohler
caecb410e8
refactor init and automate formspec files loading
2021-04-02 09:16:47 +02:00
Dirk Sohler
f1214ba398
update main menu to use icons
...
This commit also implements a button getting function to automatically
create icon buttons.
2021-04-02 04:07:40 +02: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
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
1c6245461b
Go through code documentation
...
See https://gitlab.com/4w/mtimer/issues/8
2019-03-16 22:48:49 +01:00
Dirk Sohler
b6db7ce7f8
get rid of manual GC
...
See https://gitlab.com/4w/mtimer/issues/7
2019-03-12 21:38:47 +01:00
Dirk Sohler
abc8fd5b55
try to circumvent Out Of Memory error (Win64)
...
See https://gitlab.com/4w/mtimer/issues/7
2019-03-11 22:11:25 +01: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
0c04bb9f50
make timer default format translatable
2019-02-22 16:00:18 +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
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
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
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
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
9e4d98d896
alter coding style (variables)
2017-07-28 19:01:08 +02:00
Dirk Sohler
7cbb032a43
outsource config loading
2017-07-28 18:59:33 +02:00
Dirk Sohler
dd9716e30d
make independent from xtend_default
2017-07-27 21:20:11 +02:00
Dirk Sohler
e9e625bcf4
rename xTimer to MTimer
2017-07-27 21:00:04 +02:00
Dirk Sohler
11468b08dc
use less globals
...
According to the Lua documentation using globals is slower than using
locals. Before this commit xTend mods used a lot of stuff from the
global _xtend table. A lot of those uses was not necessary.
2017-05-25 12:15:46 +02:00
Dirk Sohler
80b6cb68a3
have _xtend.i() automatically detect the mod
2017-05-25 11:05:42 +02:00
Dirk Sohler
e58964bfd2
read mod configuration from mods
...
For making mods less dependent from the modpack mods now initiate
theimselves. This fixes https://github.com/dsohler/xtend_modpack/issues/1
2017-05-05 22:31:24 +02:00
Dirk Sohler
19bcb516ba
set/check player name/existence first and then run
2017-03-01 18:33:29 +01:00
Dirk Sohler
8beb472234
remove debugging leftovers
2017-02-28 19:57:19 +01:00
Dirk Sohler
c31f0c1570
make multi-user more reliable
2017-02-28 19:38:24 +01:00
Dirk Sohler
4d04eb7b8a
make the timer server (multiplayer) compatible
2017-02-27 20:00:37 +01:00
Dirk Sohler
12e48570c7
putting xtend as only mod to the top directory
2017-02-09 17:03:52 +01:00