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:
Wuzzy 2017-09-18 16:28:38 +02:00
parent 1e522e2896
commit ec238287cb

View File

@ -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}