Files
LuckerGame/code/UI/HudComponents/CameraCursor.razor

19 lines
378 B
Plaintext

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