diff --git a/scripts/result.lua b/scripts/result.lua index 9cb0bcd..5c077a1 100644 --- a/scripts/result.lua +++ b/scripts/result.lua @@ -15,6 +15,10 @@ local bottomPanelImage = gfx.CreateSkinImage("result/panels/bottom.png", 0); local defaultJacketImage = gfx.CreateSkinImage("result/default_jacket.png", 0); +local appealCardImage = gfx.CreateSkinImage("appeal_card.png", 0); +local danBadgeImage = gfx.CreateSkinImage("dan/inf.png", 0); +local volforceBadgeImage = gfx.CreateSkinImage("volforce/10.png", 0); + local gradeImages = { S = gfx.CreateSkinImage("score/S.png", 0), AAA_P = gfx.CreateSkinImage("score/AAA+.png", 0), @@ -49,6 +53,8 @@ local BOTTOM_PANEL_TRANSTION_ENTER_OFFSET = 128; local highScore; +local username = game.GetSkinSetting('username'); + local earlyLateBarsStats = { earlyErrors = 0, earlyNears = 0, @@ -255,7 +261,33 @@ local drawBottomPanel = function() end local drawBottomPanelContent = function () + -- Draw appeal card + gfx.BeginPath(); + gfx.ImageRect(bottomPanelX+58, bottomPanelY+277, 103, 132, appealCardImage, 1, 0); + + -- Draw description + gfx.FontSize(22) + gfx.LoadSkinFont('Digital-Serial-Bold.ttf') + gfx.TextAlign(gfx.TEXT_ALIGN_LEFT + gfx.TEXT_ALIGN_MIDDLE) + gfx.Text('Hellooooooo', bottomPanelX+190, bottomPanelY+282); + + -- Draw username + gfx.FontSize(28) + gfx.Text(username, bottomPanelX+190, bottomPanelY+314); + + -- Draw dan badge + gfx.BeginPath(); + gfx.ImageRect(bottomPanelX+187, bottomPanelY+362, 107, 29, danBadgeImage, 1, 0); + -- Draw volforce badge + gfx.BeginPath(); + gfx.ImageRect(bottomPanelX+310, bottomPanelY+355, 42, 42, volforceBadgeImage, 1, 0); + + -- Draw volforce label + gfx.FontSize(11) + gfx.Text('VOLFORCE', bottomPanelX+357, bottomPanelY+369); + gfx.FontSize(18) + gfx.Text('20.148', bottomPanelX+357, bottomPanelY+385); end local drawJacketPanel = function() @@ -354,9 +386,13 @@ render = function(deltaTime, showStats) drawIdol(deltaTime) drawTopBar() + drawBottomPanel() + drawBottomPanelContent() + drawRightPanel() drawRightPanelContent() + drawJacketPanel() drawJacketPanelContent()