@using System; @using Sandbox; @using Sandbox.UI; @namespace Sandbox.Menu
@GameTitle
@GameAuthor
F1 for info, hold ESC to exit
@code { RealTimeSince timeSinceCreated = 0; string GameTitle = "Game Title"; string GameAuthor = "Author Name"; string AvatarUrl = "https://cdn.sbox.game/asset/facepunch.testbed/logo.51722a86.png"; public GameStarting() { if (MenuUtility.GamePackage is not null) { GameTitle = MenuUtility.GamePackage.Title; GameAuthor = MenuUtility.GamePackage.Org?.Title ?? "Unknown"; AvatarUrl = MenuUtility.GamePackage.Thumb; } } public override void Tick() { base.Tick(); if ( timeSinceCreated > 3 ) { Delete(); } } }