added some texture and labels

This commit is contained in:
RealFD 2022-01-03 08:42:58 +01:00
parent a05f8ab041
commit 3c060c8ffc
1 changed files with 28 additions and 0 deletions

View File

@ -52,6 +52,9 @@ local badgeLines = gfx.CreateSkinImage("result/badge_lines.png", 0);
local badgeGrade = gfx.CreateSkinImage("result/badge_gradient.png", 0); local badgeGrade = gfx.CreateSkinImage("result/badge_gradient.png", 0);
local timming = gfx.CreateSkinImage("result/timing.png", 0); local timming = gfx.CreateSkinImage("result/timing.png", 0);
local irpanelsB = gfx.CreateSkinImage("result/panels/new_score_blue.png",0);
local irpanelsO = gfx.CreateSkinImage("result/panels/new_score_orange.png",0)
local gradeImages = { local gradeImages = {
S = gfx.CreateSkinImage("common/grades/S.png", 0), S = gfx.CreateSkinImage("common/grades/S.png", 0),
AAA_P = gfx.CreateSkinImage("common/grades/AAA+.png", 0), AAA_P = gfx.CreateSkinImage("common/grades/AAA+.png", 0),
@ -264,6 +267,29 @@ local drawRightPanel = function()
gfx.BeginPath(); gfx.BeginPath();
local tw, th = gfx.ImageSize(rightPanelImage); local tw, th = gfx.ImageSize(rightPanelImage);
gfx.ImageRect(rightPanelX, rightPanelY, tw, th, rightPanelImage, 1, 0); gfx.ImageRect(rightPanelX, rightPanelY, tw, th, rightPanelImage, 1, 0);
gfx.BeginPath();
local tw2, th2 = gfx.ImageSize(irpanelsB);
gfx.ImageRect(1080 - 531, rightPanelY - (130+15), tw2*0.85, th2*0.8, irpanelsO, 1, 0);
-- my Score and something
gfx.FillColor(0,0,0,255)
gfx.Text("LABEL", 1080 - 515, rightPanelY - 130);
gfx.FillColor(255,255,255,255)
-- my score
gfx.Text("00000000", 1080 - 485, rightPanelY - 98);
-- best score
gfx.Text("10000000", 1080 - 325, rightPanelY - 98);
gfx.Text("IR LABEL", 1080 - 205, rightPanelY - 98);
-- my Score and something
gfx.BeginPath();
gfx.ImageRect(1080 - 531, rightPanelY - (60+15), tw2*0.85, th2*0.8, irpanelsB, 1, 0);
gfx.FillColor(0,0,0,255)
gfx.Text("LABEL", 1080 - 515, rightPanelY - 60);
gfx.FillColor(255,255,255,255)
-- my score
gfx.Text("00000000", 1080 - 485, rightPanelY - 28);
-- best score
gfx.Text("10000000", 1080 - 325, rightPanelY - 28);
gfx.Text("IR LABEL", 1080 - 205, rightPanelY - 28);
end end
local scoreNumber = Numbers.load_number_image("score_num"); local scoreNumber = Numbers.load_number_image("score_num");
@ -538,6 +564,8 @@ local drawBottomPanelContent = function(deltatime)
gfx.FontSize(22) gfx.FontSize(22)
gfx.Text(irText, bottomPanelX + 80, bottomPanelY + 461); gfx.Text(irText, bottomPanelX + 80, bottomPanelY + 461);
-- Draw Performance maybe
end end
local drawJacketPanel = function() local drawJacketPanel = function()