2020-04-25 12:50:35 +02:00
|
|
|
# HUD Timers (`hud_timers`)
|
2019-05-01 16:53:20 +02:00
|
|
|
|
2020-02-13 11:15:06 +01:00
|
|
|
A library for easily maintaining HUD timers.
|
2019-05-01 16:53:20 +02:00
|
|
|
|
2020-02-13 11:15:06 +01:00
|
|
|
HUD timers are colorful yet subtle bars indicating some time consuming process.
|
2019-05-01 16:53:20 +02:00
|
|
|
|
|
|
|
## About
|
|
|
|
|
|
|
|
Configuration help can be found under `config_help.md` in the same folder as this.
|
|
|
|
|
|
|
|
Depends on [`modlib`](https://github.com/appgurueu/modlib).
|
|
|
|
|
|
|
|
**Please note that this mod may not work along well with other mods altering the HUD.**
|
|
|
|
|
2019-11-23 20:15:01 +01:00
|
|
|
Code licensed under the MIT License. Written by Lars Mueller alias LMD or appguru(eu).
|
|
|
|
|
|
|
|
Media license: files taken or derived from [hudbars](https://repo.or.cz/w/minetest_hudbars.git)
|
|
|
|
|
|
|
|
* `textures/hudbars_bar_background.png`: made by Wuzzy, licensed under MIT
|
|
|
|
* `textures/hud_timers_bar_timeout.png`: made by LMD, but very similar, can be seen as derivative of Wuzzy's work, therefore licensed under MIT as well
|
|
|
|
|
|
|
|
All in all, the media is licensed under the MIT license, with credits going to Wuzzy.
|
2019-05-01 16:53:20 +02:00
|
|
|
|
2020-02-13 11:15:06 +01:00
|
|
|
## Screenshot
|
|
|
|
|
|
|
|
![Screenshot](screenshot.png)
|
|
|
|
|
2019-05-01 16:53:20 +02:00
|
|
|
## API
|
|
|
|
|
|
|
|
Code should be self-explanatory. If not, feel free to contact me (opening an issue is also fine). Will probably document it here at some point...
|
2020-04-25 12:50:35 +02:00
|
|
|
|
|
|
|
## Configuration
|
|
|
|
|
2022-09-18 16:23:30 +02:00
|
|
|
<!--modlib:conf:2-->
|
|
|
|
### `format`
|
2020-04-25 12:50:35 +02:00
|
|
|
|
2022-09-18 16:23:30 +02:00
|
|
|
The format for the timer label - first string is timer name, second one is seconds left.
|
2020-04-25 12:50:35 +02:00
|
|
|
|
2022-09-18 16:23:30 +02:00
|
|
|
* Type: string
|
|
|
|
* Default: `%s: %s s`
|
2020-04-25 12:50:35 +02:00
|
|
|
|
2022-09-18 16:23:30 +02:00
|
|
|
### `globalstep`
|
2020-04-25 12:50:35 +02:00
|
|
|
|
2022-09-18 16:23:30 +02:00
|
|
|
How often timers should be updated (interval duration in seconds).
|
2020-04-25 12:50:35 +02:00
|
|
|
|
2022-09-18 16:23:30 +02:00
|
|
|
* Type: number
|
|
|
|
* Default: `0.1`
|
|
|
|
* >= `0`
|
2020-04-25 12:50:35 +02:00
|
|
|
|
2022-09-18 16:23:30 +02:00
|
|
|
### `hud_pos`
|
2020-04-25 12:50:35 +02:00
|
|
|
|
|
|
|
Screen coordinates where the timer stack should start.
|
|
|
|
|
2022-09-18 16:23:30 +02:00
|
|
|
### `hud_timers_max`
|
2020-04-25 12:50:35 +02:00
|
|
|
|
|
|
|
How many timers(maximum) may exist at a time.
|
|
|
|
|
2022-09-18 16:23:30 +02:00
|
|
|
* Type: number
|
|
|
|
* Default: `10`
|
|
|
|
* >= `0`
|
|
|
|
* <= `100`
|
|
|
|
<!--modlib:conf-->
|