diff --git a/Content.Client/Lobby/UI/LobbyGui.xaml b/Content.Client/Lobby/UI/LobbyGui.xaml
index c3bd0da642a..1dfbef47d05 100644
--- a/Content.Client/Lobby/UI/LobbyGui.xaml
+++ b/Content.Client/Lobby/UI/LobbyGui.xaml
@@ -12,6 +12,13 @@
+
+
+
+
+
+
@@ -51,6 +58,7 @@
+
diff --git a/Content.Client/Lobby/UI/LobbyGui.xaml.cs b/Content.Client/Lobby/UI/LobbyGui.xaml.cs
index 81230130a1d..7e64d6c3230 100644
--- a/Content.Client/Lobby/UI/LobbyGui.xaml.cs
+++ b/Content.Client/Lobby/UI/LobbyGui.xaml.cs
@@ -19,17 +19,31 @@ public LobbyGui()
IoCManager.InjectDependencies(this);
SetAnchorPreset(MainContainer, LayoutPreset.Wide);
SetAnchorPreset(Background, LayoutPreset.Wide);
+ SetAnchorPreset(ShowInterfaceContainer, LayoutPreset.Wide); // ADT-Tweak
+ SetAnchorPreset(ShowInterface, LayoutPreset.BottomLeft); // ADT-Tweak
LobbySong.SetMarkup(Loc.GetString("lobby-state-song-no-song-text"));
LeaveButton.OnPressed += _ => _consoleHost.ExecuteCommand("disconnect");
OptionsButton.OnPressed += _ => UserInterfaceManager.GetUIController().ToggleWindow();
+ // ADT-Tweak-Start
+ HideInterface.OnPressed += _ => {
+ SwitchState(LobbyGuiState.ScreenSaver);
+ };
+ ShowInterface.OnPressed += _ => {
+ SwitchState(LobbyGuiState.Default);
+ };
+ // ADT-Tweak-End
}
public void SwitchState(LobbyGuiState state)
{
DefaultState.Visible = false;
CharacterSetupState.Visible = false;
+ // ADT-Tweak-Start
+ ShowInterfaceContainer.Visible = false;
+ MainContainer.Visible = true;
+ // ADT-Tweak-End
switch (state)
{
@@ -51,6 +65,13 @@ public void SwitchState(LobbyGuiState state)
UserInterfaceManager.GetUIController().ReloadCharacterSetup();
break;
+
+ // ADT-Tweak-Start
+ case LobbyGuiState.ScreenSaver:
+ ShowInterfaceContainer.Visible = true;
+ MainContainer.Visible = false;
+ break;
+ // ADT-Tweak-End
}
}
@@ -63,7 +84,8 @@ public enum LobbyGuiState : byte
///
/// The character setup state.
///
- CharacterSetup
+ CharacterSetup,
+ ScreenSaver, // ADT-Tweak
}
}
}
diff --git a/Resources/Locale/ru-RU/ADT/lobby/lobby-gui.ftl b/Resources/Locale/ru-RU/ADT/lobby/lobby-gui.ftl
new file mode 100644
index 00000000000..846cb549dce
--- /dev/null
+++ b/Resources/Locale/ru-RU/ADT/lobby/lobby-gui.ftl
@@ -0,0 +1,2 @@
+ui-lobby-hide-interface = Скрыть всё
+ui-lobby-show-interface = Показать всё