Wuzzy
9d76643388
Fix reverting to default setting value not working
2015-05-19 23:38:13 +02:00
Wuzzy
4ac3b25539
Add alternative statbar display modes
...
For those nostalgists. ;-)
2015-05-19 23:35:47 +02:00
Wuzzy
897d40e47b
Rename display_mode to alignment_pattern
2015-05-19 22:35:24 +02:00
Wuzzy
b68af069a4
Add preliminary display mode setting
...
Intentionally not in README.txt yet, because the positions cannot be set in minetest.conf yet.
2015-05-19 22:28:55 +02:00
Wuzzy
fc66c4f0a5
Code cleanup
2015-05-19 21:49:25 +02:00
Wuzzy
f2efdea814
Add HUD bar sorting feature
2015-05-19 21:40:54 +02:00
Wuzzy
015e23c6f2
Add setting to configure breath bar auto-hiding
2015-03-23 18:35:19 +01:00
Wuzzy
e5d1e21a41
Adjust default HUD bars position for MT 0.4.12
2015-03-04 04:40:07 +01:00
Wuzzy
cfe8b3a60b
Remove pointless delays and useless code
2015-02-23 01:39:48 +01:00
Wuzzy
25b59646c2
Fix HUD elements disappearing for reconnectors
2015-02-23 01:34:13 +01:00
Wuzzy
ef30c34609
Fix race condition-like bug
2015-02-14 09:49:13 +01:00
Wuzzy
4ebc24f2ed
Add workaround for bad initial breath value
2015-02-12 22:15:19 +01:00
Wuzzy
0ac416ad49
Fix add_all
2015-02-12 19:50:23 +01:00
Wuzzy
377f194884
Move start_hidden to init_hudbar, rename start_hidden in register function to default_start_hidden
2015-02-12 18:46:05 +01:00
Wuzzy
1fb539e7d8
Minor refactoring
2015-02-12 05:49:30 +01:00
Wuzzy
197fc56145
Refactor settings
2015-02-12 05:22:08 +01:00
Wuzzy
65c8702e64
Fix bad initial breath value of 11
2015-02-12 05:07:00 +01:00
Wuzzy
b0eabd3c7a
Add basic error reporting for bad value/max combinations
2015-02-12 05:04:02 +01:00
Wuzzy
357229450c
Only affect health- and breathbar in hide_buildin
...
... and leave other HUD elements in peace.
2015-02-12 04:40:30 +01:00
Wuzzy
ea9a303e48
Do not register health/breath bar if damage is off
2015-02-12 04:39:15 +01:00
Wuzzy
eb4e72c5a4
Add new function: hb.get_hudbar_state
2015-02-12 04:26:39 +01:00
Wuzzy
1d4af7e0ee
Harden code against missing icon
2015-02-12 03:18:58 +01:00
Wuzzy
8c17e9373b
Fix start_hidden parameter
2015-02-12 03:15:00 +01:00
Wuzzy
20a13045f7
Make breath and health use API instead
2015-02-12 03:00:58 +01:00
Wuzzy
7912e6b4ec
Rename “start_hide” to “start_hidden”
2015-02-11 20:55:22 +01:00
Wuzzy
1016828877
Optimize hb.change_hudbar to change hud_change less times
2015-02-11 20:40:19 +01:00
Wuzzy
652da11a1f
hud.conf → hudbars.conf
2015-02-09 23:42:56 +01:00
Wuzzy
041e76692b
Rename main table from “hud” to “hb”
2015-02-09 23:41:52 +01:00
Wuzzy
79997659d9
Allow hud.change_hudbar to change only one or no value of both
2015-02-09 23:13:33 +01:00
Wuzzy
71f15d3763
Add proper function to initialize HUD bar
2015-02-09 22:51:35 +01:00
Wuzzy
55dc460d42
Use identifier instead of table in API functions
2015-02-09 22:45:08 +01:00
Wuzzy
fdc13e92bd
Change color of breath bar
2015-02-05 01:35:38 +01:00
Wuzzy
023902341f
Fix division by zero in hud.value_to_barlength
2015-02-04 21:45:27 +01:00
Wuzzy
6e1b5be68d
Add forgotten 0/0 corner cases
2015-02-04 21:39:52 +01:00
Wuzzy
e6e8f2d688
Hide bar background when max == 0
...
The bars are intended to show the ratio between value and max.
For a max of 0 (which implies a value of 0), this implies a value/max
ratio of 0/0, which is undefined. Therefore, for this very special case,
we just hide the bar altogether.
2015-02-04 21:28:20 +01:00
Wuzzy
017b304396
Allow freely chosen texture names for custom bars
2015-02-04 20:36:27 +01:00
Wuzzy
d67a97011b
Fix bug preventing change of custom HUD bars
2015-02-04 18:42:40 +01:00
Wuzzy
563db9cb4c
Set hudstate and hudids directly in add_all
2015-02-04 18:14:44 +01:00
Wuzzy
f046592824
Move custom hudbars down by 1 iff damage disabled
2015-02-04 18:00:02 +01:00
Wuzzy
895028086c
Align custom hudbars properly
2015-02-04 17:26:43 +01:00
Wuzzy
df9c660e09
Add hide and unhide functions for bars
2015-02-04 16:16:48 +01:00
Wuzzy
018087b60a
Add API functions to add and modify custom bars
2015-02-04 14:52:48 +01:00
Wuzzy
13058ae1b4
Hide breath bar when breath == 11
2015-02-04 04:53:29 +01:00
Wuzzy
c8d8df7777
Align health and breath bars
2015-02-04 04:32:11 +01:00
Wuzzy
1a89bda932
Add icons to bars
2015-02-04 04:10:11 +01:00
Wuzzy
4776027d18
Add text to bars
2015-02-04 04:01:56 +01:00
Wuzzy
2e40e311a0
Add simple background image for the bars
2015-02-04 03:23:06 +01:00
Wuzzy
5f3d4b70c6
Remove hotbar support
2015-02-04 02:25:47 +01:00
Wuzzy
f6d660d40f
Use max. 160 pixel wide bars to represent stats
2015-02-04 02:18:22 +01:00
Wuzzy
c198284de9
Don't set breath for respawners
2015-02-04 01:53:05 +01:00