Pulls in FPS menu so we can make edits

This commit is contained in:
gamer147
2023-08-03 12:22:24 -04:00
parent 686edc85a3
commit a5a734b31a
13 changed files with 722 additions and 3 deletions

View File

@@ -0,0 +1,32 @@
@using System;
@using Sandbox;
@namespace LuckerGame.UI.MainMenu
@inherits Sandbox.UI.Panel
<root>
@if ( Package == null )
{
<div class="button" @onclick=@OnCardClicked>Select Package</div>
}
else
{
<div class="button" @onclick=@OnCardClicked>@Package.Title</div>
<i tooltip="See information about this package" @onclick=@( () => Game.Overlay.ShowPackageModal( Package.FullIdent ) )>info</i>
}
</root>
@code
{
public Package Package { get; set; }
public System.Action OnLaunch { get; set; }
void OnCardClicked()
{
OnLaunch?.Invoke();
}
protected override int BuildHash()
{
return HashCode.Combine( Package );
}
}