diff --git a/scripts/gameplay/user_panel.lua b/scripts/gameplay/user_panel.lua index 7fc4a77..724db7a 100644 --- a/scripts/gameplay/user_panel.lua +++ b/scripts/gameplay/user_panel.lua @@ -6,9 +6,12 @@ local desh = 1920; local bgImage = gfx.CreateSkinImage("gameplay/user_panel/bg.png", 0); +local appealCardImage = gfx.CreateSkinImage("appeal_card.png", 0); local danBadgeImage = gfx.CreateSkinImage("dan.png", 0); +local username = game.GetSkinSetting('username') or ''; + local tickTransitions = function (deltaTime) end @@ -27,6 +30,24 @@ local render = function (deltaTime) 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); + -- Draw dan badge & volforce gfx.BeginPath(); gfx.ImageRect(