ExperimentalGear/scripts/gameplay/user_panel.lua

81 lines
1.5 KiB
Lua
Raw Normal View History

2021-10-09 22:09:25 +02:00
local VolforceWindow = require('components.volforceWindow');
local desw = 1080;
local desh = 1920;
local bgImage = gfx.CreateSkinImage("gameplay/user_panel/bg.png", 0);
2021-10-25 21:39:16 +02:00
local appealCardImage = gfx.CreateSkinImage("crew/appeal_card.png", 0);
2021-10-09 22:14:24 +02:00
local danBadgeImage = gfx.CreateSkinImage("dan.png", 0);
2021-10-25 21:39:16 +02:00
local idolFrameImage = gfx.CreateSkinImage("crew/frame.png", 0);
2021-10-09 22:14:24 +02:00
2021-10-09 22:09:25 +02:00
local username = game.GetSkinSetting('username') or '';
2021-10-09 22:09:25 +02:00
local tickTransitions = function (deltaTime)
end
local render = function (deltaTime)
tickTransitions(deltaTime)
2021-10-25 21:39:16 +02:00
gfx.BeginPath();
gfx.ImageRect(
0,
650,
449*0.85,
336*0.85,
idolFrameImage,
1,
0
);
2021-10-09 22:09:25 +02:00
gfx.BeginPath();
gfx.ImageRect(
0,
650,
449*0.85,
336*0.85,
bgImage,
1,
0
);
-- Draw appeal card
gfx.BeginPath();
gfx.ImageRect(
10,
767,
150*0.62,
192*0.62,
appealCardImage,
1,
0
);
-- Draw username
gfx.LoadSkinFont('Digital-Serial-Bold.ttf')
gfx.TextAlign(gfx.TEXT_ALIGN_LEFT + gfx.TEXT_ALIGN_MIDDLE)
gfx.FontSize(26)
gfx.Text(username, 150, 802);
2021-10-09 22:14:24 +02:00
-- Draw dan badge & volforce
gfx.BeginPath();
gfx.ImageRect(
117,
856,
294*0.32, -- what are these whacky measurements
84*0.32,
danBadgeImage,
1,
0
);
2021-10-09 22:09:25 +02:00
VolforceWindow.render(deltaTime, 220, 847)
end
return {
render=render
}