mirror of
https://repo.or.cz/minetest_hudbars.git
synced 2024-11-24 08:03:46 +01: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
|
local bar_image, bar_size
|
||||||
if hb.settings.bar_type == "progress_bar" then
|
if hb.settings.bar_type == "progress_bar" then
|
||||||
bar_image = textures.bar
|
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
|
elseif hb.settings.bar_type == "statbar_classic" or hb.settings.bar_type == "statbar_modern" then
|
||||||
bar_image = textures.icon
|
bar_image = textures.icon
|
||||||
bar_size = {x=24, y=24}
|
bar_size = {x=24, y=24}
|
||||||
|
Loading…
Reference in New Issue
Block a user