forked from mtcontrib/minetest_hudbars
Add explicit progress bar size
This commit is contained in:
parent
8b577c7424
commit
1568d1f418
2
init.lua
2
init.lua
|
@ -186,7 +186,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