+ permissive gauge & / gauges being huge again

This commit is contained in:
FajsiEx 2021-07-31 18:51:06 +02:00
parent d9012021ef
commit 38b5004aa1
5 changed files with 15 additions and 0 deletions

View File

@ -708,6 +708,9 @@ local gaugeExcFillImage = gfx.CreateSkinImage("gameplay/gauges/excessive/gauge_f
local gaugeExcArsBgImage = gfx.CreateSkinImage("gameplay/gauges/excessive_ars/gauge_back.png", 0) local gaugeExcArsBgImage = gfx.CreateSkinImage("gameplay/gauges/excessive_ars/gauge_back.png", 0)
local gaugeExcArsFillImage = gfx.CreateSkinImage("gameplay/gauges/excessive_ars/gauge_fill.png", 0) local gaugeExcArsFillImage = gfx.CreateSkinImage("gameplay/gauges/excessive_ars/gauge_fill.png", 0)
local gaugePermBgImage = gfx.CreateSkinImage("gameplay/gauges/permissive/gauge_back.png", 0)
local gaugePermFillImage = gfx.CreateSkinImage("gameplay/gauges/permissive/gauge_fill.png", 0)
function draw_gauge(deltaTime) function draw_gauge(deltaTime)
-- fallbacks in case of unsupported type -- fallbacks in case of unsupported type
@ -728,6 +731,18 @@ function draw_gauge(deltaTime)
gaugeBgImage = gaugeExcBgImage; gaugeBgImage = gaugeExcBgImage;
gaugeFillImage = gaugeExcFillImage; gaugeFillImage = gaugeExcFillImage;
if gameplay.gauge.value < 0.3 then
gaugeFillAlpha = 1 - math.abs(gaugeWarnTransitionScale - 0.5); -- 100 -> 50 -> 100
gaugeWarnTransitionScale = gaugeWarnTransitionScale + deltaTime*10;
if gaugeWarnTransitionScale > 1 then
gaugeWarnTransitionScale = 0;
end
end
elseif gameplay.gauge.type == 2 then
gaugeBgImage = gaugePermBgImage;
gaugeFillImage = gaugePermFillImage;
if gameplay.gauge.value < 0.3 then if gameplay.gauge.value < 0.3 then
gaugeFillAlpha = 1 - math.abs(gaugeWarnTransitionScale - 0.5); -- 100 -> 50 -> 100 gaugeFillAlpha = 1 - math.abs(gaugeWarnTransitionScale - 0.5); -- 100 -> 50 -> 100

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB