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:
Aviu00
2024-02-04 15:53:50 +09:00
committed by GitHub
parent 23b6c11b4f
commit bc55584a1f
10 changed files with 40 additions and 25 deletions

View File

@@ -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;

View File

@@ -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>

View File

@@ -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)