Files
LuckerGame/code/UI/HudComponents/CameraCursor.razor
2023-08-02 20:52:13 -04:00

16 lines
328 B
Plaintext

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