* scale down the gauge

This commit is contained in:
FajsiEx 2021-07-29 19:47:26 +02:00
parent eabb5c9943
commit 921a1a352b
6 changed files with 6 additions and 4 deletions

View File

@ -741,15 +741,17 @@ function draw_gauge(deltaTime)
local BgW, BgH = gfx.ImageSize(gaugeBgImage); local BgW, BgH = gfx.ImageSize(gaugeBgImage);
local FillW, FillH = gfx.ImageSize(gaugeFillImage); local FillW, FillH = gfx.ImageSize(gaugeFillImage);
local gaugePosX = 1080 - BgW - 48; local gaugePosX = 1080 - BgW - 110;
local gaugePosY = 1920/2 - BgH/2 - 32; local gaugePosY = 1920/2 - BgH/2 - 95;
-- gfx.Text('RESX: ' .. resx .. ' // RESY: ' .. resy .. ' // GPX: ' .. gaugePosX, 255,1200); -- gfx.Text('RESX: ' .. resx .. ' // RESY: ' .. resy .. ' // GPX: ' .. gaugePosX, 255,1200);
gfx.BeginPath()
gfx.ImageRect(gaugePosX, gaugePosY, BgW, BgH, gaugeBgImage, 1, 0) gfx.ImageRect(gaugePosX, gaugePosY, BgW, BgH, gaugeBgImage, 1, 0)
gfx.GlobalAlpha(gaugeFillAlpha); gfx.GlobalAlpha(gaugeFillAlpha);
gfx.ImageRect(gaugePosX+22, gaugePosY+11+(FillH-(FillH*(gameplay.gauge.value))), FillW, FillH*(gameplay.gauge.value), gaugeFillImage, 1, 0) gfx.BeginPath()
gfx.ImageRect(gaugePosX+18, gaugePosY+9+(FillH-(FillH*(gameplay.gauge.value))), FillW, FillH*(gameplay.gauge.value), gaugeFillImage, 1, 0)
gfx.GlobalAlpha(1); gfx.GlobalAlpha(1);

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 11 KiB