Compare commits
7 Commits
Author | SHA1 | Date |
---|---|---|
Wuzzy | dd2a9a008d | |
Wuzzy | 812b2538ff | |
Wuzzy | 906f7876f7 | |
Wuzzy | a44de6230b | |
Wuzzy | 0684bac45b | |
Wuzzy | 183d727635 | |
Wuzzy | f1001432eb |
|
@ -0,0 +1,2 @@
|
|||
Wuzzy <Wuzzy@disroot.org> <Wuzzy2@mail.ru>
|
||||
Wuzzy <Wuzzy@disroot.org> <almikes@aol.com>
|
|
@ -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.0.
|
||||
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
|
||||
|
|
4
init.lua
|
@ -209,7 +209,7 @@ function hb.register_hudbar(identifier, text_color, label, textures, default_sta
|
|||
scale = iconscale,
|
||||
text = textures.icon,
|
||||
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,
|
||||
})
|
||||
end
|
||||
|
@ -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
|
||||
|
|
Before Width: | Height: | Size: 110 B After Width: | Height: | Size: 140 B |
Before Width: | Height: | Size: 74 B After Width: | Height: | Size: 80 B |
Before Width: | Height: | Size: 71 B After Width: | Height: | Size: 80 B |
Before Width: | Height: | Size: 354 B After Width: | Height: | Size: 811 B |
Before Width: | Height: | Size: 222 B After Width: | Height: | Size: 302 B |
Before Width: | Height: | Size: 443 B After Width: | Height: | Size: 818 B |
Before Width: | Height: | Size: 306 B After Width: | Height: | Size: 321 B |