26 lines
509 B
Plaintext
26 lines
509 B
Plaintext
@using Sandbox;
|
|
@using Sandbox.UI;
|
|
@using LuckerGame.UI.HudComponents
|
|
@using LuckerGame.UI.Menus
|
|
|
|
@namespace LuckerGame.UI
|
|
@inherits RootPanel
|
|
@attribute [StyleSheet]
|
|
|
|
<root>
|
|
<ChatBox/>
|
|
<VoiceList/>
|
|
<VotingLobby/>
|
|
<Scoreboard/>
|
|
<CameraCursor/>
|
|
|
|
</root>
|
|
|
|
@code
|
|
{
|
|
public override void Tick()
|
|
{
|
|
var devCam = Game.LocalClient.Components.Get<DevCamera>();
|
|
SetClass( "camera-movement", Input.UsingController || Input.Down( "attack2" ) || devCam is not null );
|
|
}
|
|
} |