some tweaks (#26)
* - fix: Fix RD steal objectives * - tweak: Mini ebow now doesn't reset on hand select * - add: Enable fake death * - fix: Fix round restart sounds * - tweak: Increase new gas tank volume * - add: Add quit button
This commit is contained in:
@@ -135,7 +135,7 @@ public sealed class BackgroundAudioSystem : EntitySystem
|
||||
|
||||
private void PlayRestartSound(RoundRestartCleanupEvent ev)
|
||||
{
|
||||
if (!_configManager.GetCVar(CCVars.LobbyMusicEnabled))
|
||||
if (!_configManager.GetCVar(CCVars.RestartSoundsEnabled))
|
||||
return;
|
||||
|
||||
var file = _gameTicker.RestartSound;
|
||||
|
||||
@@ -90,6 +90,12 @@
|
||||
Name="OptionsButton"
|
||||
Access="Public"
|
||||
ButtonText="Options"
|
||||
Margin="0 10 0 10" />
|
||||
|
||||
<buttons:OhioLobbyTextButton
|
||||
Name="QuitButton"
|
||||
Access="Public"
|
||||
ButtonText="Quit"
|
||||
Margin="0 10 0 0" />
|
||||
|
||||
</BoxContainer>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using Content.Client.UserInterface.Systems.EscapeMenu;
|
||||
using Robust.Client.AutoGenerated;
|
||||
using Robust.Client.Console;
|
||||
using Robust.Client.UserInterface;
|
||||
using Robust.Client.UserInterface.XAML;
|
||||
|
||||
@@ -8,6 +9,7 @@ namespace Content.Client.Lobby.UI
|
||||
[GenerateTypedNameReferences]
|
||||
internal sealed partial class LobbyGui : UIScreen
|
||||
{
|
||||
[Dependency] private readonly IClientConsoleHost _consoleHost = default!;
|
||||
[Dependency] private readonly IUserInterfaceManager _userInterfaceManager = default!;
|
||||
|
||||
public LobbyGui()
|
||||
@@ -18,6 +20,7 @@ namespace Content.Client.Lobby.UI
|
||||
SetAnchorPreset(Background, LayoutPreset.Wide);
|
||||
|
||||
OptionsButton.OnPressed += _ => _userInterfaceManager.GetUIController<OptionsUIController>().ToggleWindow();
|
||||
QuitButton.OnPressed += _ => _consoleHost.ExecuteCommand("disconnect");
|
||||
}
|
||||
|
||||
public void SwitchState(LobbyGuiState state)
|
||||
|
||||
Reference in New Issue
Block a user