More russian roulette setup

This commit is contained in:
gamer147
2023-08-02 20:52:13 -04:00
parent 285a130a81
commit 0d6df93904
10 changed files with 93 additions and 17 deletions

View File

@@ -10,10 +10,9 @@
<root>
<ChatBox/>
<VoiceList/>
<VotingLobby/>
<VotingLobby/>
<Scoreboard/>
<div class="pointer-visible" />
<CameraCursor/>
</root>

View File

@@ -0,0 +1,16 @@
@using LuckerGame.Components.Lucker.Cameras
@using Sandbox
@using Sandbox.UI
@namespace LuckerGame.UI.HudComponents
@attribute [StyleSheet]
@inherits Panel
@if (ShouldShowCursor)
{
<root/>
}
@code {
private bool ShouldShowCursor => Game.LocalClient.Pawn?.Components.Get<AbstractCamera>()?.ShouldShowCursor ?? false;
}

View File

@@ -0,0 +1,3 @@
CameraCursor {
pointer-events: all;
}

View File

@@ -1,3 +1,6 @@
Scoreboard {
z-index: 0;
.scoreboard-panel {
flex-direction: column;
}
}