* scale down the gauge
|
@ -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);
|
||||||
|
|
||||||
|
|
||||||
|
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 11 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 9.5 KiB |
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 19 KiB |
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 11 KiB |