+ permissive gauge & / gauges being huge again
|
@ -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 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)
|
||||
-- fallbacks in case of unsupported type
|
||||
|
@ -728,6 +731,18 @@ function draw_gauge(deltaTime)
|
|||
gaugeBgImage = gaugeExcBgImage;
|
||||
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
|
||||
gaugeFillAlpha = 1 - math.abs(gaugeWarnTransitionScale - 0.5); -- 100 -> 50 -> 100
|
||||
|
||||
|
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 20 KiB After Width: | Height: | Size: 20 KiB |
Before Width: | Height: | Size: 19 KiB After Width: | Height: | Size: 19 KiB |