forked from Mineclonia/Mineclonia
Update hudbars mod to 1.10.0
This commit is contained in:
parent
487281d76b
commit
f51c8c75ba
|
@ -11,7 +11,7 @@ this mod will place them accordingly.
|
||||||
position should be displayed correctly on every screen size.
|
position should be displayed correctly on every screen size.
|
||||||
|
|
||||||
## Current version
|
## Current version
|
||||||
The current version is 1.9.0.
|
The current version is 1.10.0.
|
||||||
|
|
||||||
This software uses [semantic versioning](http://semver.org), as defined by version 2.0.0 of the SemVer
|
This software uses [semantic versioning](http://semver.org), as defined by version 2.0.0 of the SemVer
|
||||||
standard.
|
standard.
|
||||||
|
@ -35,23 +35,24 @@ Translations:
|
||||||
* German: Wuzzy
|
* German: Wuzzy
|
||||||
* Portuguese: BrunoMine
|
* Portuguese: BrunoMine
|
||||||
* Turkish: admicos
|
* Turkish: admicos
|
||||||
|
* Dutch: kingoscargames
|
||||||
|
* Italian: Hamlet
|
||||||
|
|
||||||
This program is free software. It comes without any warranty, to
|
This program is free software. It comes without any warranty, to
|
||||||
the extent permitted by applicable law. You can redistribute it
|
the extent permitted by applicable law. You can redistribute it
|
||||||
and/or modify it under the terms of the Do What The Fuck You Want
|
and/or modify it under the terms of the MIT License.
|
||||||
To Public License (WTFPL), version 2, as published by Sam Hocevar.
|
|
||||||
|
|
||||||
### Licenses of textures
|
### Licenses of textures
|
||||||
|
|
||||||
* `hudbars_icon_health.png`—celeron55 (CC BY-SA 3.0), modified by BlockMen
|
* `hudbars_icon_health.png`—celeron55 (CC BY-SA 3.0), modified by BlockMen
|
||||||
* `hudbars_bgicon_health.png`—celeron55 (CC BY-SA 3.0), modified by BlockMen
|
* `hudbars_bgicon_health.png`—celeron55 (CC BY-SA 3.0), modified by BlockMen
|
||||||
* `hudbars_icon_breath.png`—kaeza (WTFPL), modified by BlockMen, modified again by Wuzzy
|
* `hudbars_icon_breath.png`—kaeza (MIT License), modified by BlockMen, modified again by Wuzzy
|
||||||
* `hudbars_bgicon_breath.png`—based on previous image, edited by Wuzzy (WTFPL)
|
* `hudbars_bgicon_breath.png`—based on previous image, edited by Wuzzy (MIT License)
|
||||||
* `hudbars_bar_health.png`—Wuzzy (WTFPL)
|
* `hudbars_bar_health.png`—Wuzzy (MIT License)
|
||||||
* `hudbars_bar_breath.png`—Wuzzy (WTFPL)
|
* `hudbars_bar_breath.png`—Wuzzy (MIT License)
|
||||||
* `hudbars_bar_background.png`—Wuzzy (WTFPL)
|
* `hudbars_bar_background.png`—Wuzzy (MIT License)
|
||||||
|
|
||||||
### License references
|
### License references
|
||||||
|
|
||||||
* [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/)
|
* [CC-BY-SA 3.0](https://creativecommons.org/licenses/by-sa/3.0/)
|
||||||
* [WTFPL](http://sam.zoy.org/wtfpl/COPYING)
|
* [MIT License](https://opensource.org/licenses/MIT)
|
||||||
|
|
|
@ -1,6 +1,10 @@
|
||||||
local S
|
local S
|
||||||
if (minetest.get_modpath("intllib")) then
|
if minetest.global_exists("intllib") then
|
||||||
|
if intllib.make_gettext_pair then
|
||||||
|
S = intllib.make_gettext_pair()
|
||||||
|
else
|
||||||
S = intllib.Getter()
|
S = intllib.Getter()
|
||||||
|
end
|
||||||
else
|
else
|
||||||
S = function ( s ) return s end
|
S = function ( s ) return s end
|
||||||
end
|
end
|
||||||
|
@ -191,7 +195,7 @@ function hb.register_hudbar(identifier, text_color, label, textures, default_sta
|
||||||
local bar_image, bar_size
|
local bar_image, bar_size
|
||||||
if hb.settings.bar_type == "progress_bar" then
|
if hb.settings.bar_type == "progress_bar" then
|
||||||
bar_image = textures.bar
|
bar_image = textures.bar
|
||||||
bar_size = {x=2, y=16}
|
bar_size = nil
|
||||||
elseif hb.settings.bar_type == "statbar_classic" or hb.settings.bar_type == "statbar_modern" then
|
elseif hb.settings.bar_type == "statbar_classic" or hb.settings.bar_type == "statbar_modern" then
|
||||||
bar_image = textures.icon
|
bar_image = textures.icon
|
||||||
bar_size = {x=24, y=24}
|
bar_size = {x=24, y=24}
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
Health = Salute
|
||||||
|
Breath = Ossigeno
|
||||||
|
|
||||||
|
# Default format string for progress bar-style HUD bars, e.g. “Health 5/20”
|
||||||
|
%s: %d/%d
|
|
@ -0,0 +1,5 @@
|
||||||
|
Health = Gezondheid
|
||||||
|
Breath = Adem
|
||||||
|
|
||||||
|
# Default format string for progress bar-style HUD bars, e.g. “Health 5/20”
|
||||||
|
%s: %d/%d
|
Loading…
Reference in New Issue