+ clear badges to results
This commit is contained in:
parent
bb3445f81e
commit
2faf1ee402
|
@ -54,6 +54,15 @@ local difficultyLabelImages = {
|
||||||
gfx.CreateSkinImage("diff/8 vivid.png", 0),
|
gfx.CreateSkinImage("diff/8 vivid.png", 0),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
local clearBadgeImages = {
|
||||||
|
gfx.CreateSkinImage("result/clears/CRASH.png", 0),
|
||||||
|
gfx.CreateSkinImage("result/clears/CRASH.png", 0),
|
||||||
|
gfx.CreateSkinImage("result/clears/COMPLETE.png", 0),
|
||||||
|
gfx.CreateSkinImage("result/clears/COMPLETE.png", 0),
|
||||||
|
gfx.CreateSkinImage("result/clears/UC.png", 0),
|
||||||
|
gfx.CreateSkinImage("result/clears/PUC.png", 0),
|
||||||
|
}
|
||||||
|
|
||||||
-- ANIMS
|
-- ANIMS
|
||||||
local idolAnimation = gfx.LoadSkinAnimation('idol', 1/30, 0, false);
|
local idolAnimation = gfx.LoadSkinAnimation('idol', 1/30, 0, false);
|
||||||
|
|
||||||
|
@ -195,6 +204,12 @@ local drawRightPanelContent = function()
|
||||||
|
|
||||||
local highScoreDelta = result.score - highScoreScore
|
local highScoreDelta = result.score - highScoreScore
|
||||||
|
|
||||||
|
-- Draw clear badge
|
||||||
|
local badgeImage = clearBadgeImages[result.badge+1] or clearBadgeImages[1]
|
||||||
|
local tw, th = gfx.ImageSize(badgeImage);
|
||||||
|
gfx.BeginPath();
|
||||||
|
gfx.ImageRect(rightPanelX+1140-tw, rightPanelY-10, tw*0.85, th*0.85, badgeImage, 1, 0);
|
||||||
|
|
||||||
-- Draw song name and artist
|
-- Draw song name and artist
|
||||||
gfx.FontSize(28)
|
gfx.FontSize(28)
|
||||||
gfx.TextAlign(gfx.TEXT_ALIGN_LEFT + gfx.TEXT_ALIGN_MIDDLE)
|
gfx.TextAlign(gfx.TEXT_ALIGN_LEFT + gfx.TEXT_ALIGN_MIDDLE)
|
||||||
|
|
Before Width: | Height: | Size: 52 KiB After Width: | Height: | Size: 52 KiB |
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 44 KiB |
Loading…
Reference in New Issue