Update hbarmor mod to v1.0.0...

http://repo.or.cz/minetest_hbarmor.git/tree/93d994c
This commit is contained in:
Jordan Irwin 2021-04-18 22:13:43 -07:00
parent 09044e2073
commit 975ceeeb53
11 changed files with 21 additions and 32 deletions

View File

@ -109,12 +109,12 @@ The game includes the mods from the default [minetest_game](https://github.com/m
* [workbench][] ([LGPL / WTFPL](mods/tools/workbench/LICENSE)) -- version: [bd14f59 Git][ver.workbench] *2017-08-08*
* transport/
* [bike][] ([MIT][lic.bike]) -- version: [1.2][ver.bike] *2021-04-12*
* [boats][boats2] ([LGPL][lic.lgpl3.0] / [CC BY-SA][lic.ccbysa3.0]) -- version [b83231e Git][ver.boats2] *2016-10-14* ([patched][patch.boats2]) ***UPSTREAM MOVED***
* [boats][boats2] ([LGPL][lic.lgpl3.0] / [CC BY-SA][lic.ccbysa3.0]) -- version: [b83231e Git][ver.boats2] *2016-10-14* ([patched][patch.boats2]) ***UPSTREAM MOVED***
* [helicopter][] ([GPL][lic.gpl2.0] / [CC0][lic.cc0] / CC BY-NC) -- version: [1955cdd Git][ver.helicopter] *2021-03-28*
* [hovercraft][] ([LGPL / CC BY-SA / CC0][lic.hovercraft]) -- version: [4d50e68 Git][ver.hovercraft] *2017-05-14* ([patched][patch.hovercraft])
* [hovercraft][] ([LGPL / CC BY-SA / CC0][lic.hovercraft]) -- version: [4d50e68 Git][ver.hovercraft] *2017-05-14* ([patched][patch.hovercraft])
* ui/
* [bookmarks_gui][] ([BSD 3-Clause][lic.bookmarks_gui]) -- version: [f7ae10a Git][ver.bookmarks_gui] *2017-08-29*
* [hbarmor][] ([MIT][lic.mit] / [CC BY-SA][lic.ccbysa3.0]) -- version [0.4.0][ver.hbarmor] *2017-09-18* ([patched][patch.hbarmor]) ***UPDATES***
* [hbarmor][] ([MIT][lic.mit] / [CC BY-SA][lic.ccbysa3.0]) -- version: [1.0.0][ver.hbarmor] *2019-04-01*
* [home_gui][] ([BSD 3-Clause][lic.home_gui]) -- version: [90086d0 Git][ver.home_gui] *2018-03-15* ([patched][patch.home_gui]) ***UPDATES***
* [hudbars][] ([MIT][lic.mit] / [CC BY-SA][lic.ccbysa3.0]) -- version [1.11.0][ver.hudbars] *2018-02-05* ***UPDATES***
* [hudmap][] ([LGPL][lic.lgpl2.1] / [WTFPL][lic.wtfpl]) -- version: [3b8bdc0 Git][ver.hudmap] *2017-05-14*
@ -459,7 +459,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
[ver.gems_tools]: https://github.com/captainLAD/gems/tree/b375432
[ver.glass]: https://github.com/AntumMT/mod-glass/tree/d61a6c6
[ver.glow]: https://github.com/bdjnk/glow/tree/4c015a0
[ver.hbarmor]: http://repo.or.cz/minetest_hbarmor.git/tree/e513aeb
[ver.hbarmor]: http://repo.or.cz/minetest_hbarmor.git/tree/93d994c
[ver.hbsprint]: https://github.com/tacotexmex/hbsprint/tree/f566d0f
[ver.helicopter]: https://github.com/APercy/helicopter/tree/1955cdd
[ver.hill_nodebox]: https://github.com/cornernote/minetest-hill_nodebox/tree/41bbfa2

View File

@ -1,6 +1,6 @@
# HUD bar for `3d_armor` [`hbarmor`]
* Version: 0.4.0
* Version: 1.0.0
## Description
This mod adds a simple HUD bar which displays the current damage
@ -16,8 +16,8 @@ only how worn out it already is.
By default, the armor bar is hidden if the player wears no armor.
## Dependencies
* HUD bars [`hudbars`], major version 1
* 3D Armor [`3d_armor`] (tested with Minetest 0.4.14)
* HUD bars [`hudbars`], major version 2
* 3D Armor [`3d_armor`] (tested with Minetest 5.0.0)
## Licensing
This mod is entirly free softare.

View File

@ -1,3 +0,0 @@
hudbars
3d_armor
intllib?

View File

@ -1 +0,0 @@
Adds a HUD bar displaying the current damage of the player's armor.

View File

@ -1,15 +1,5 @@
local S
if (minetest.global_exists("intllib")) then
if (intllib.make_gettext_pair) then
-- New method using gettext.
S = intllib.make_gettext_pair()
else
-- Old method using text files.
S = intllib.Getter()
end
else
S = function ( s ) return s end
end
local S = minetest.get_translator("hbarmor")
local N = function(s) return s end
if (not armor) or (not armor.def) then
minetest.log("error", "[hbarmor] Outdated 3d_armor version. Please update your version of 3d_armor!")
@ -71,7 +61,7 @@ local function custom_hud(player)
end
--register and define armor HUD bar
hb.register_hudbar("armor", 0xFFFFFF, S("Armor"), { icon = "hbarmor_icon.png", bgicon = "hbarmor_bgicon.png", bar = "hbarmor_bar.png" }, 0, 100, hbarmor.autohide, S("%s: %d%%"))
hb.register_hudbar("armor", 0xFFFFFF, S("Armor"), { icon = "hbarmor_icon.png", bgicon = "hbarmor_bgicon.png", bar = "hbarmor_bar.png" }, 0, 100, hbarmor.autohide, N("@1: @2%"), { order = { "label", "value" }, textdomain = "hbarmor" } )
function hbarmor.get_armor(player)
if not player or not armor.def then

View File

@ -1,2 +0,0 @@
Armor = Panzerung
%s: %d%% = %s: %d%%

View File

@ -0,0 +1,3 @@
# textdomain:hbarmor
Armor=Panzerung
@1: @2%=@1: @2%

View File

@ -0,0 +1,3 @@
# textdomain:hbarmor
Armor=Armatura
@1: @2%=@1:@2%

View File

@ -1,4 +0,0 @@
Armor = Armatura
# Format string for displaying the armor. E.g. "Armor: 100%"
%s: %d%% =

View File

@ -1,4 +1,5 @@
Armor =
# textdomain:hbarmor
Armor=
# Format string for displaying the armor. E.g. "Armor: 100%"
%s: %d%% =
@1: @2%=

View File

@ -1 +1,3 @@
name = hbarmor
description = Adds a HUD bar displaying the current damage of the player's armor.
depends = hudbars, 3d_armor