16 lines
328 B
Plaintext
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;
|
|
} |