mirror of
https://repo.or.cz/minetest_hudbars.git
synced 2024-08-20 05:04:12 +02:00
No longer set progress bar image size explicitly
This may fix problems with some people having the progress bar displaced.
This commit is contained in:
parent
1e522e2896
commit
ec238287cb
2
init.lua
2
init.lua
@ -195,7 +195,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 = {x=2, y=16}
|
||||
bar_size = nil
|
||||
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