Commit Graph

112 Commits

Author SHA1 Message Date
Wuzzy
1e3def3cfa Set bar_size to nil in progress_bar again
See the lengthy comment to learn why
2019-09-13 19:56:22 +02:00
Wuzzy
48d9fd6a12 Allow to specify number format strings explicitly
Also, the default number format string is now "%d"
2019-09-13 19:50:23 +02:00
Wuzzy
afb0242b3b Restructure format_string_config 2019-04-01 12:23:54 +02:00
Wuzzy
915fab08e2 Always send update when changing hide state
This fixes a problem in hbarmor not getting the correct hide state initially.
2019-04-01 12:17:21 +02:00
Wuzzy
895fcae716 Better support for translatable format string 2019-04-01 11:49:30 +02:00
Wuzzy
07b9f766d2 Make format string params changable 2019-03-30 14:57:39 +01:00
Wuzzy
a3fede159b Support custom hp_max/breath_max 2019-03-30 13:56:17 +01:00
Wuzzy
5710667766 Fix translation of format string 2019-03-20 13:38:31 +01:00
Wuzzy
1568d1f418 Add explicit progress bar size 2019-03-20 13:35:36 +01:00
Wuzzy
94b9c545da Move away from intllib in favor of MT 5.0.0 2019-03-20 13:30:28 +01:00
Wuzzy
ec238287cb No longer set progress bar image size explicitly
This may fix problems with some people having the progress bar displaced.
2017-09-18 16:28:38 +02:00
Wuzzy
aa5fef1298 Replace deprecated intllib call:
- 'Getter' with 'make_gettext_pair' if available

Thanks, AntumDeluge!
2017-07-06 03:12:07 +02:00
Wuzzy
9145f492e8 Move default settings into new Lua file 2017-07-02 18:50:17 +02:00
Wuzzy
5e06b35e79 Add hb.get_hudbar_identifiers() 2017-07-02 18:44:24 +02:00
Wuzzy
e09eb8ab4f Use 0.4.16 settings syntax
This breaks compability with Minetest 0.4.15, 0.4.14, 0.4.13 and 0.4.12
2017-06-20 16:38:52 +02:00
Wuzzy
cfebd5138d Explicitly set statbar size for progress bars 2017-05-29 16:14:40 +02:00
Wuzzy
ea58a71e17 Fix crash HP changed before player was registered 2017-02-25 02:04:15 +01:00
Wuzzy
7cf82b4e2f Move statbars 2 pixels up 2016-12-03 02:24:45 +01:00
Wuzzy
5c0f165ddf Event-based health bar change 2016-12-02 23:04:54 +01:00
Wuzzy
3c182884dc Fix breath and health not being updated anymore 2016-12-02 22:36:10 +01:00
Wuzzy
3d74745aec Big statbar icons, introduce new offset config 2016-12-02 21:40:46 +01:00
Wuzzy
d099ae91e2 Remove stupid testing code 2016-11-22 15:12:09 +01:00
Wuzzy
6c0c617b39 Fix possible crash after player left 2016-11-22 14:59:40 +01:00
Wuzzy
27336cee7d Fix outdated inttlib boilerplate 2016-11-09 01:49:05 +01:00
Wuzzy
9a78ce745f Fix some Luacheck warnings 2016-08-11 17:21:33 +02:00
Wuzzy
5348d26a2e Add another string for translation 2016-08-08 03:57:20 +02:00
Wuzzy
6d850edf96 Add breath background icon for statbar_modern 2016-08-05 21:14:42 +02:00
Wuzzy
3b57b2cd4a Bugfix: statbar_modern was not correctly hidden 2016-08-05 20:39:28 +02:00
Wuzzy
d64dcb83b5 Move text 1px up so it fits better into box 2016-08-05 17:59:41 +02:00
Wuzzy
1786ae2cab Add intllib support 2016-08-05 16:54:52 +02:00
Wuzzy
f06e3c362f 1.4.1: Fix bug in hb.change_hudbar being a no-op 2016-07-23 11:47:50 +02:00
Wuzzy
fff42e2a42 Allow to change HUD bar images and label later 2016-07-03 00:18:54 +02:00
Wuzzy
5bff4d453c Remove redundant commenRemove redundant comment 2016-07-02 21:14:30 +02:00
Wuzzy
21651fcbe8 Fix hudbars_tick = hudbars_vmargin 2016-07-02 21:11:03 +02:00
Wuzzy
3362152656 Forceload default HUD bars, fixing a crash when changing enable_damage in-game 2015-05-25 15:59:49 +02:00
Wuzzy
39c1fcfe2f Various settings, now only use minetest.conf instead of hudbars.conf 2015-05-20 17:42:38 +02:00
Wuzzy
9752ddedf6 Typo fixes 2015-05-20 16:06:46 +02:00
Wuzzy
fb2cf988de Bar length is now rounded towards nearest integer 2015-05-20 00:23:21 +02:00
Wuzzy
2a35745ec9 Fix stupid bug (setting_getbool instead of setting_get) 2015-05-19 23:42:07 +02:00
Wuzzy
8d2321d647 Fix typo 2015-05-19 23:39:26 +02:00
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