Go to file
Lars Mueller 0bba9c4e0c Code quality: use new modlib functionality 2020-07-30 00:07:05 +02:00
textures Add settingtypes.txt & optimize images 2020-05-24 13:07:22 +02:00
Readme.md rolling-5 2020-04-25 12:50:35 +02:00
default_config.json rolling-5 2020-04-25 12:50:35 +02:00
init.lua Code quality: use new modlib functionality 2020-07-30 00:07:05 +02:00
main.lua rolling-5 2020-04-25 12:50:35 +02:00
mod.conf Updates via shellscript 2019-05-01 16:53:20 +02:00
screenshot.png Add settingtypes.txt & optimize images 2020-05-24 13:07:22 +02:00
settingtypes.txt Add settingtypes.txt & optimize images 2020-05-24 13:07:22 +02:00

Readme.md

HUD Timers (hud_timers)

A library for easily maintaining HUD timers.

HUD timers are colorful yet subtle bars indicating some time consuming process.

About

Configuration help can be found under config_help.md in the same folder as this.

Depends on modlib.

Please note that this mod may not work along well with other mods altering the HUD.

Code licensed under the MIT License. Written by Lars Mueller alias LMD or appguru(eu).

Media license: files taken or derived from hudbars

  • 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.

Screenshot

Screenshot

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...

Configuration

Locations

  • JSON Configuration: <worldpath>/config/hud_timers.json
  • Text Logs: <worldpath>/logs/hud_timers/<date>.txt
  • Readme: <modpath/gamepath>/hud_timers/Readme.md

Default Configuration

Located under <modpath/gamepath>/hud_timers/default_config.json

{
  "hud_pos": {"x": 0,"y": 0},
  "globalstep": 0.1,
  "hud_timers_max": 10,
  "format": "%s: %s s"
}

Usage

hud_pos

Screen coordinates where the timer stack should start.

globalstep

How often timers should be updated(interval, seconds).

hud_timers_max

How many timers(maximum) may exist at a time.

format : "%s : %s s"

The format for the timer label - first string is timer name, second one is seconds left.