1
0
mirror of https://repo.or.cz/minetest_hudbars.git synced 2025-09-09 18:15:33 +02:00

15 Commits

Author SHA1 Message Date
6e2173c6e3 Merge remote-tracking branch 'upstream/master' 2022-08-26 15:02:26 +02:00
Wuzzy
dd2a9a008d Add mailmap for Wuzzy 2022-08-01 13:57:41 +02:00
a7d0774ad0 Merge remote-tracking branch 'upstream/master' 2021-07-16 23:40:29 +02:00
Wuzzy
812b2538ff Version 2.3.3 2021-07-08 15:43:14 +02:00
Wuzzy
906f7876f7 Version 2.3.2 2021-07-08 15:42:11 +02:00
Wuzzy
a44de6230b Fix massive hud_change spam (hide/unhide) 2021-07-08 15:34:50 +02:00
26a36dde55 Merge remote-tracking branch 'upstream/master' 2020-07-17 22:49:18 +02:00
Wuzzy
0684bac45b Version 2.3.1 2020-07-11 03:41:09 +02:00
Wuzzy
183d727635 Revert "12×12 textures, compress textures"
This reverts commit 746945dd0f.
2020-07-11 03:38:16 +02:00
Wuzzy
f1001432eb Revert "Tweak breath icons"
This reverts commit 5d65623d90.
2020-07-11 03:38:14 +02:00
28dcf8af65 Merge remote-tracking branch 'upstream/master' into nalc-1.2-dev 2020-06-16 22:33:04 +02:00
c4ddef312e Merge remote-tracking branch 'upstream/master' into nalc-1.2-dev 2020-02-16 18:04:10 +01:00
7f6ed309b3 Merge branch 'master' of yunohost.local:mtcontrib/minetest_hudbars into nalc-1.2-dev 2019-12-22 13:28:33 +01:00
7cd5940c68 Merge branch 'master' into nalc-1.2 2019-05-09 22:15:22 +02:00
sys4-fr
67ca481f7c Ajoute message de chargement du mod dans le journal "action" 2018-12-25 17:43:52 +01:00
10 changed files with 8 additions and 2 deletions

2
.mailmap Normal file
View File

@@ -0,0 +1,2 @@
Wuzzy <Wuzzy@disroot.org> <Wuzzy2@mail.ru>
Wuzzy <Wuzzy@disroot.org> <almikes@aol.com>

View File

@@ -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 2.3.0. The current version is 2.3.3.
It works for Minetest 5.3.0. 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 This software uses [semantic versioning](http://semver.org), as defined by version 2.0.0 of the SemVer

View File

@@ -209,7 +209,7 @@ function hb.register_hudbar(identifier, text_color, label, textures, default_sta
scale = iconscale, scale = iconscale,
text = textures.icon, text = textures.icon,
alignment = {x=-1,y=1}, alignment = {x=-1,y=1},
offset = { x = offset.x - 4, y = offset.y + 2 }, offset = { x = offset.x - 3, y = offset.y },
z_index = 1, z_index = 1,
}) })
end end
@@ -404,6 +404,7 @@ function hb.hide_hudbar(player, identifier)
local name = player:get_player_name() local name = player:get_player_name()
local hudtable = hb.get_hudtable(identifier) local hudtable = hb.get_hudtable(identifier)
if hudtable == nil then return false end 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 hb.settings.bar_type == "progress_bar" then
if hudtable.hudids[name].icon ~= nil then if hudtable.hudids[name].icon ~= nil then
player:hud_change(hudtable.hudids[name].icon, "scale", {x=0,y=0}) 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 name = player:get_player_name()
local hudtable = hb.get_hudtable(identifier) local hudtable = hb.get_hudtable(identifier)
if hudtable == nil then return false end if hudtable == nil then return false end
if hudtable.hudstate[name].hidden == false then return true end
local value = hudtable.hudstate[name].value local value = hudtable.hudstate[name].value
local max = hudtable.hudstate[name].max local max = hudtable.hudstate[name].max
if hb.settings.bar_type == "progress_bar" then if hb.settings.bar_type == "progress_bar" then
@@ -564,3 +566,5 @@ minetest.register_globalstep(function(dtime)
end end
if timer > 4 then timer = 0 end if timer > 4 then timer = 0 end
end) end)
minetest.log("action", "[hudbars] loaded.")

Binary file not shown.

Before

Width:  |  Height:  |  Size: 110 B

After

Width:  |  Height:  |  Size: 140 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 74 B

After

Width:  |  Height:  |  Size: 80 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 71 B

After

Width:  |  Height:  |  Size: 80 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 354 B

After

Width:  |  Height:  |  Size: 811 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 222 B

After

Width:  |  Height:  |  Size: 302 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 443 B

After

Width:  |  Height:  |  Size: 818 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 306 B

After

Width:  |  Height:  |  Size: 321 B