From 642b4def124edd9987c220772f5e8752c8a7a276 Mon Sep 17 00:00:00 2001 From: Vigers Ray <60344369+VigersRay@users.noreply.github.com> Date: Fri, 9 Jan 2026 17:12:31 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=BF=D1=82=D0=B8=D0=BC=D0=B8=D0=B7?= =?UTF-8?q?=D0=B0=D1=86=D0=B8=D1=8F=20=D0=BF=D1=80=D0=BE=D1=81=D1=82=D1=80?= =?UTF-8?q?=D0=B0=D0=BD=D1=81=D1=82=D0=B2=D0=B0=20=D0=B2=20=D0=BB=D0=BE?= =?UTF-8?q?=D0=B1=D0=B1=D0=B8=20(#3686)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- Content.Client/Lobby/LobbyState.cs | 11 +- Content.Client/Lobby/LobbyUIController.cs | 29 +++-- .../Lobby/UI/LobbyCharacterPreviewPanel.xaml | 13 +- .../UI/LobbyCharacterPreviewPanel.xaml.cs | 123 +++++++++++++++++- Content.Client/Lobby/UI/LobbyGui.xaml | 36 ++--- Content.Client/Lobby/UI/LobbyGui.xaml.cs | 33 ++++- .../_Sunrise/Pets/LobbyPetPreviewPanel.xaml | 2 - .../Pets/LobbyPetPreviewPanel.xaml.cs | 11 +- 8 files changed, 205 insertions(+), 53 deletions(-) diff --git a/Content.Client/Lobby/LobbyState.cs b/Content.Client/Lobby/LobbyState.cs index b23986ccc9..2576919fcd 100644 --- a/Content.Client/Lobby/LobbyState.cs +++ b/Content.Client/Lobby/LobbyState.cs @@ -90,15 +90,16 @@ namespace Content.Client.Lobby _voteManager.SetPopupContainer(Lobby.VoteContainer); LayoutContainer.SetAnchorPreset(Lobby, LayoutContainer.LayoutPreset.Wide); - var lobbyNameCvar = _cfg.GetCVar(CCVars.ServerLobbyName); - var serverName = _baseClient.GameInfo?.ServerName ?? string.Empty; + // Sunrise-Start + //var lobbyNameCvar = _cfg.GetCVar(CCVars.ServerLobbyName); + //var serverName = _baseClient.GameInfo?.ServerName ?? string.Empty; // Lobby.ServerName.Text = string.IsNullOrEmpty(lobbyNameCvar) // ? Loc.GetString("ui-lobby-title", ("serverName", serverName)) // : lobbyNameCvar; - var width = _cfg.GetCVar(CCVars.ServerLobbyRightPanelWidth); - Lobby.RightPanel.SetWidth = width; + // var width = _cfg.GetCVar(CCVars.ServerLobbyRightPanelWidth); + // Lobby.RightPanel.SetWidth = width; UpdateLobbyUi(); @@ -130,7 +131,7 @@ namespace Content.Client.Lobby // Subscribe to resource loaded events _netTexturesManager.ResourceLoaded += OnNetworkResourceLoaded; - // Sunrise-end + // Sunrise-End Lobby.CharacterPreview.CharacterSetupButton.OnPressed += OnSetupPressed; Lobby.ReadyButton.OnPressed += OnReadyPressed; diff --git a/Content.Client/Lobby/LobbyUIController.cs b/Content.Client/Lobby/LobbyUIController.cs index c6e9dd7688..d57231a8dc 100644 --- a/Content.Client/Lobby/LobbyUIController.cs +++ b/Content.Client/Lobby/LobbyUIController.cs @@ -1,6 +1,7 @@ using System.Linq; using Content.Client._Sunrise.Pets; using Content.Client.Guidebook; +using Content.Shared._Sunrise.Pets; using Content.Client.Humanoid; using Content.Client.Inventory; using Content.Client.Lobby.UI; @@ -108,11 +109,11 @@ public sealed partial class LobbyUIController : UIController, IOnStateEntered(currentPetSelection, out var petSelectionPrototype)) + { + petDummy = EntityManager.SpawnEntity(petSelectionPrototype.PetEntity, MapCoordinates.Nullspace); + } + + PreviewPanel.SetPetSprite(petDummy); } private void OpenPetPanel() diff --git a/Content.Client/Lobby/UI/LobbyCharacterPreviewPanel.xaml b/Content.Client/Lobby/UI/LobbyCharacterPreviewPanel.xaml index 1c0b7305a9..93e4596cf2 100644 --- a/Content.Client/Lobby/UI/LobbyCharacterPreviewPanel.xaml +++ b/Content.Client/Lobby/UI/LobbyCharacterPreviewPanel.xaml @@ -5,14 +5,17 @@ -