mirror of
https://repo.or.cz/minetest_hudbars.git
synced 2024-12-25 14:52:26 +01:00
Explicitly set statbar size for progress bars
This commit is contained in:
parent
fa82d2df1c
commit
cfebd5138d
2
init.lua
2
init.lua
@ -236,7 +236,7 @@ function hb.register_hudbar(identifier, text_color, label, textures, default_sta
|
||||
local bar_image, bar_size
|
||||
if hb.settings.bar_type == "progress_bar" then
|
||||
bar_image = textures.bar
|
||||
bar_size = nil
|
||||
bar_size = {x=2, y=16}
|
||||
elseif hb.settings.bar_type == "statbar_classic" or hb.settings.bar_type == "statbar_modern" then
|
||||
bar_image = textures.icon
|
||||
bar_size = {x=24, y=24}
|
||||
|
Loading…
Reference in New Issue
Block a user