More russian roulette setup
This commit is contained in:
@@ -10,10 +10,9 @@
|
||||
<root>
|
||||
<ChatBox/>
|
||||
<VoiceList/>
|
||||
<VotingLobby/>
|
||||
<VotingLobby/>
|
||||
<Scoreboard/>
|
||||
|
||||
<div class="pointer-visible" />
|
||||
<CameraCursor/>
|
||||
|
||||
</root>
|
||||
|
||||
|
||||
16
code/UI/HudComponents/CameraCursor.razor
Normal file
16
code/UI/HudComponents/CameraCursor.razor
Normal 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;
|
||||
}
|
||||
3
code/UI/HudComponents/CameraCursor.razor.scss
Normal file
3
code/UI/HudComponents/CameraCursor.razor.scss
Normal file
@@ -0,0 +1,3 @@
|
||||
CameraCursor {
|
||||
pointer-events: all;
|
||||
}
|
||||
@@ -1,3 +1,6 @@
|
||||
Scoreboard {
|
||||
z-index: 0;
|
||||
.scoreboard-panel {
|
||||
flex-direction: column;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user