+ clear badges to results

This commit is contained in:
FajsiEx 2021-08-06 19:57:00 +02:00
parent bb3445f81e
commit 2faf1ee402
3 changed files with 15 additions and 0 deletions

View File

@ -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)

View File

Before

Width:  |  Height:  |  Size: 52 KiB

After

Width:  |  Height:  |  Size: 52 KiB

View File

Before

Width:  |  Height:  |  Size: 44 KiB

After

Width:  |  Height:  |  Size: 44 KiB