+ dot to progress bar
This commit is contained in:
parent
6d9f26fdec
commit
3366417abb
|
@ -7,6 +7,8 @@ local desh = 1920;
|
|||
local bgLeftImage = gfx.CreateSkinImage("gameplay/song_panel/bg_left.png", 0);
|
||||
local bgRightImage = gfx.CreateSkinImage("gameplay/song_panel/bg_right.png", 0);
|
||||
|
||||
local progressDotImage = gfx.CreateSkinImage("gameplay/song_panel/dot.png", 0);
|
||||
|
||||
local jacketFallbackImage = gfx.CreateSkinImage("song_select/loading.png", 0);
|
||||
|
||||
local jacketImage;
|
||||
|
@ -97,6 +99,17 @@ local render = function (deltaTime, bpm, laneSpeed, jacketPath, diff, level, pro
|
|||
gfx.FillColor(244, 204, 101)
|
||||
gfx.Rect(222, 291, 622 * progress, 3)
|
||||
gfx.Fill()
|
||||
|
||||
gfx.BeginPath();
|
||||
gfx.ImageRect(
|
||||
208 + 622 * progress + ((1-progress) * 8),
|
||||
288.5,
|
||||
24*0.85,
|
||||
10*0.85,
|
||||
progressDotImage,
|
||||
1,
|
||||
0
|
||||
);
|
||||
end
|
||||
|
||||
return {
|
||||
|
|
Loading…
Reference in New Issue