mirror of
https://repo.or.cz/minetest_hudbars.git
synced 2024-11-13 03:50:18 +01:00
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