Jordan Irwin 2021-07-20 18:52:47 -07:00
parent af3f767707
commit 122898cdf0
4 changed files with 8 additions and 3 deletions

View File

@ -145,7 +145,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
* [home_gui][] ([BSD 3-Clause][lic.home_gui]) -- version: [425466a Git][ver.home_gui] *2021-05-21* ([patched][home_gui.patch])
* [hud_compass][] (MIT / [CC BY-SA ][lic.ccbysa3.0]) -- version: [648c744
Git][ver.hud_compass] *2020-04-23*
* [hudbars][] ([MIT][lic.mit] / [CC BY-SA][lic.ccbysa3.0]) -- version: [2.3.1][ver.hudbars] *2020-07-11*
* [hudbars][] ([MIT][lic.mit] / [CC BY-SA][lic.ccbysa3.0]) -- version: [2.3.3][ver.hudbars] *2021-07-08*
* [pbmarks][] ([MIT][lic.pbmarks]) -- version: [1.0][ver.pbmarks] *2021-06-15*
* world/
* [bright_night][] ([Unlicense][lic.unlicense]) -- version: [69b750a Git][ver.bright_night] *2018-06-03*
@ -621,7 +621,7 @@ The game includes the mods from the default [minetest_game](https://github.com/m
[ver.hot_air_balloons]: https://notabug.org/NetherEran/hot_air_balloons/src/39a3572ad1bf7fd800525d68b128981e1b2c37d1
[ver.hovercraft]: https://github.com/stujones11/hovercraft/tree/4d50e68
[ver.hud_compass]: https://github.com/kestral246/hud_compass/tree/648c744
[ver.hudbars]: http://repo.or.cz/minetest_hudbars.git/tree/0684bac
[ver.hudbars]: https://repo.or.cz/minetest_hudbars.git/shortlog/refs/tags/2.3.3
[ver.ilights]: https://gitlab.com/VanessaE/ilights/tags/2021-02-25-01
[ver.intllib]: https://github.com/minetest-mods/intllib/tree/6ebdc53
[ver.invisibility]: https://notabug.org/TenPlus1/invisibility/src/65c0823d6a28b62046cdadc67ff1e462d37e3643

View File

@ -11,7 +11,7 @@ this mod will place them accordingly.
position should be displayed correctly on every screen size.
## Current version
The current version is 2.3.1.
The current version is 2.3.3.
It works for Minetest 5.3.0.
This software uses [semantic versioning](http://semver.org), as defined by version 2.0.0 of the SemVer

View File

@ -404,6 +404,7 @@ function hb.hide_hudbar(player, identifier)
local name = player:get_player_name()
local hudtable = hb.get_hudtable(identifier)
if hudtable == nil then return false end
if hudtable.hudstate[name].hidden == true then return true end
if hb.settings.bar_type == "progress_bar" then
if hudtable.hudids[name].icon ~= nil then
player:hud_change(hudtable.hudids[name].icon, "scale", {x=0,y=0})
@ -422,6 +423,7 @@ function hb.unhide_hudbar(player, identifier)
local name = player:get_player_name()
local hudtable = hb.get_hudtable(identifier)
if hudtable == nil then return false end
if hudtable.hudstate[name].hidden == false then return true end
local value = hudtable.hudstate[name].value
local max = hudtable.hudstate[name].max
if hb.settings.bar_type == "progress_bar" then

View File

@ -1,2 +1,5 @@
name = hudbars
description = Replaces the health and breath symbols in the HUD by “progress bars” and shows exact values. Other mods can add more progress bars for custom player stats.
author = Wuzzy
title = HUD bars
release = 8390