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