Pad progress bar

This commit is contained in:
Gabriel Tofvesson 2024-10-12 05:40:44 +02:00
parent 4ee78dd7c2
commit 43bfca07c6

View File

@ -373,11 +373,15 @@ local PAGES = {
local maxDamage = group:getMaxDamage()
local damageBar = nil
if damage ~= nil and maxDamage ~= nil then
damageBar = Progress:new{
progress = (damage == 0 and maxDamage or damage / maxDamage),
width = state.width - 2,
height = 1,
fgColor = colors.green
damageBar = Padding:new{
left = 1,
right = 1,
element = Progress:new{
progress = (damage == 0 and maxDamage or damage / maxDamage),
width = state.width - 2,
height = 1,
fgColor = colors.green
}
}
end