From 4109ba1d57a03eda9a5fbf0f0e07b3aea8314f2d Mon Sep 17 00:00:00 2001 From: shimorio <124311259+shimorio@users.noreply.github.com> Date: Wed, 26 Aug 2026 02:09:26 +0300 Subject: [PATCH 01/12] golobby --- Content.Client/Ghost/GhostSystem.cs | 6 + .../Systems/Ghost/GhostUIController.cs | 7 ++ .../Systems/Ghost/Widgets/GhostGui.xaml | 2 + .../Systems/Ghost/Widgets/GhostGui.xaml.cs | 2 + .../GameTicking/GameTicker.Player.cs | 2 +- .../GameTicking/GameTicker.Spawning.cs | 9 ++ Content.Server/GameTicking/GameTicker.cs | 4 +- .../_CorvaxGoob/Ghost/GhostGoLobbySystem.cs | 107 ++++++++++++++++++ Content.Shared/_CorvaxGoob/CCCVars/CCCVars.cs | 9 ++ .../_CorvaxGoob/Events/GhostGoLobbyEvent.cs | 6 + .../_corvaxgoob/ghost/ghost-go-lobby.ftl | 6 + 11 files changed, 158 insertions(+), 2 deletions(-) create mode 100644 Content.Server/_CorvaxGoob/Ghost/GhostGoLobbySystem.cs create mode 100644 Content.Shared/_CorvaxGoob/Events/GhostGoLobbyEvent.cs create mode 100644 Resources/Locale/ru-RU/_corvaxgoob/ghost/ghost-go-lobby.ftl diff --git a/Content.Client/Ghost/GhostSystem.cs b/Content.Client/Ghost/GhostSystem.cs index 417e4784d462..94e652e556dc 100644 --- a/Content.Client/Ghost/GhostSystem.cs +++ b/Content.Client/Ghost/GhostSystem.cs @@ -2,6 +2,7 @@ using Content.Client._Shitcode.Wizard.Systems; using Content.Client.Movement.Systems; +using Content.Shared._CorvaxGoob.Events; using Content.Shared.Actions; using Content.Shared.Ghost; using Robust.Client.Console; @@ -209,6 +210,11 @@ public void GhostBarSpawn() // CorvaxGoob-GhostBar RaiseNetworkEvent(new GhostBarSpawnEvent()); } + public void GhostGoLobby() // CorvaxGoob-Golobby + { + RaiseNetworkEvent(new GhostGoLobbyEvent()); + } + public void ToggleGhostVisibility(bool? visibility = null) { GhostVisibility = visibility ?? !GhostVisibility; diff --git a/Content.Client/UserInterface/Systems/Ghost/GhostUIController.cs b/Content.Client/UserInterface/Systems/Ghost/GhostUIController.cs index cb7286cf4bc5..a5bd7c1c6cbf 100644 --- a/Content.Client/UserInterface/Systems/Ghost/GhostUIController.cs +++ b/Content.Client/UserInterface/Systems/Ghost/GhostUIController.cs @@ -131,6 +131,7 @@ public void LoadGui() Gui.RequestWarpsPressed += RequestWarps; Gui.ReturnToBodyPressed += ReturnToBody; Gui.GhostRolesPressed += GhostRolesPressed; + Gui.GhostGoLobbyPressed += GhostGoLobby; // CorvaxGoob-GoLobby Gui.GhostBarPressed += GhostBarPressed; // CorvaxGoob-GhostBar Gui.GhostBarWindow.SpawnButtonPressed += GhostBarSpawnPressed; // CorvaxGoob-GhostBar Gui.ThunderdomePressed += ThunderdomePressed; // Goobstation - Thunderdome @@ -148,6 +149,7 @@ public void UnloadGui() Gui.RequestWarpsPressed -= RequestWarps; Gui.ReturnToBodyPressed -= ReturnToBody; Gui.GhostRolesPressed -= GhostRolesPressed; + Gui.GhostGoLobbyPressed -= GhostGoLobby; // CorvaxGoob-GoLobby Gui.ThunderdomePressed -= ThunderdomePressed; // Goobstation - Thunderdome Gui.TargetWindow.WarpClicked -= OnWarpClicked; @@ -159,6 +161,11 @@ private void ReturnToBody() _system?.ReturnToBody(); } + private void GhostGoLobby() // CorvaxGoob-GoLobby + { + _system?.GhostGoLobby(); + } + private void RequestWarps() { _system?.RequestWarps(); diff --git a/Content.Client/UserInterface/Systems/Ghost/Widgets/GhostGui.xaml b/Content.Client/UserInterface/Systems/Ghost/Widgets/GhostGui.xaml index 72b306c1cc94..c6de76730919 100644 --- a/Content.Client/UserInterface/Systems/Ghost/Widgets/GhostGui.xaml +++ b/Content.Client/UserInterface/Systems/Ghost/Widgets/GhostGui.xaml @@ -12,5 +12,7 @@ SPDX-License-Identifier: AGPL-3.0-or-later