+ user panel info
This commit is contained in:
parent
7d4284b403
commit
ad6385d51d
|
@ -15,6 +15,10 @@ local bottomPanelImage = gfx.CreateSkinImage("result/panels/bottom.png", 0);
|
||||||
|
|
||||||
local defaultJacketImage = gfx.CreateSkinImage("result/default_jacket.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 = {
|
local gradeImages = {
|
||||||
S = gfx.CreateSkinImage("score/S.png", 0),
|
S = gfx.CreateSkinImage("score/S.png", 0),
|
||||||
AAA_P = gfx.CreateSkinImage("score/AAA+.png", 0),
|
AAA_P = gfx.CreateSkinImage("score/AAA+.png", 0),
|
||||||
|
@ -49,6 +53,8 @@ local BOTTOM_PANEL_TRANSTION_ENTER_OFFSET = 128;
|
||||||
|
|
||||||
local highScore;
|
local highScore;
|
||||||
|
|
||||||
|
local username = game.GetSkinSetting('username');
|
||||||
|
|
||||||
local earlyLateBarsStats = {
|
local earlyLateBarsStats = {
|
||||||
earlyErrors = 0,
|
earlyErrors = 0,
|
||||||
earlyNears = 0,
|
earlyNears = 0,
|
||||||
|
@ -255,7 +261,33 @@ local drawBottomPanel = function()
|
||||||
end
|
end
|
||||||
|
|
||||||
local drawBottomPanelContent = function ()
|
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
|
end
|
||||||
|
|
||||||
local drawJacketPanel = function()
|
local drawJacketPanel = function()
|
||||||
|
@ -354,9 +386,13 @@ render = function(deltaTime, showStats)
|
||||||
drawIdol(deltaTime)
|
drawIdol(deltaTime)
|
||||||
|
|
||||||
drawTopBar()
|
drawTopBar()
|
||||||
|
|
||||||
drawBottomPanel()
|
drawBottomPanel()
|
||||||
|
drawBottomPanelContent()
|
||||||
|
|
||||||
drawRightPanel()
|
drawRightPanel()
|
||||||
drawRightPanelContent()
|
drawRightPanelContent()
|
||||||
|
|
||||||
drawJacketPanel()
|
drawJacketPanel()
|
||||||
drawJacketPanelContent()
|
drawJacketPanelContent()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue