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

@@ -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;
}