Initial commit

This commit is contained in:
gamer147
2023-08-02 19:47:53 -04:00
commit 285a130a81
33 changed files with 1699 additions and 0 deletions

27
code/UI/Hud.razor Normal file
View File

@@ -0,0 +1,27 @@
@using Sandbox;
@using Sandbox.UI;
@using LuckerGame.UI.HudComponents
@using LuckerGame.UI.Menus
@namespace LuckerGame.UI
@inherits RootPanel
@attribute [StyleSheet]
<root>
<ChatBox/>
<VoiceList/>
<VotingLobby/>
<Scoreboard/>
<div class="pointer-visible" />
</root>
@code
{
public override void Tick()
{
var devCam = Game.LocalClient.Components.Get<DevCamera>();
SetClass( "camera-movement", Input.UsingController || Input.Down( "attack2" ) || devCam is not null );
}
}