diff --git a/Content.Client/Preferences/UI/CharacterSetupGui.xaml.cs b/Content.Client/Preferences/UI/CharacterSetupGui.xaml.cs index 1e6fb1889e..7a0f80a222 100644 --- a/Content.Client/Preferences/UI/CharacterSetupGui.xaml.cs +++ b/Content.Client/Preferences/UI/CharacterSetupGui.xaml.cs @@ -23,6 +23,9 @@ using Robust.Shared.Prototypes; using static Robust.Client.UserInterface.Controls.BoxContainer; using Direction = Robust.Shared.Maths.Direction; +#if LPP_Sponsors +using Content.Client._LostParadise.Sponsors; +#endif namespace Content.Client.Preferences.UI { @@ -107,22 +110,22 @@ private void UpdateUI() if (!_preferencesManager.ServerDataLoaded) return; - _createNewCharacterButton.ToolTip = - Loc.GetString("character-setup-gui-create-new-character-button-tooltip", - ("maxCharacters", _preferencesManager.Settings!.MaxCharacterSlots)); - #if LPP_Sponsors var isDisplayedMaxSlots = false; // _LostParadise-Sponsors возможно использование дополнительных слотов #endif + _createNewCharacterButton.ToolTip = + Loc.GetString("character-setup-gui-create-new-character-button-tooltip", + ("maxCharacters", _preferencesManager.Settings!.MaxCharacterSlots)); + foreach (var (slot, character) in _preferencesManager.Preferences!.Characters) { if (character is null) { - continue; + continue; } - #if LPP_Sponsors // _LostParadise-Sponsors +#if LPP_Sponsors // _LostParadise-Sponsors isDisplayedMaxSlots = numberOfFullSlots >= _preferencesManager.Settings.MaxCharacterSlots; if (isDisplayedMaxSlots) break; #endif @@ -138,7 +141,7 @@ private void UpdateUI() var characterIndexCopy = slot; characterPickerButton.OnPressed += args => { - _humanoidProfileEditor.Profile = (HumanoidCharacterProfile)character; + _humanoidProfileEditor.Profile = (HumanoidCharacterProfile) character; _humanoidProfileEditor.CharacterSlot = characterIndexCopy; _humanoidProfileEditor.UpdateControls(); _preferencesManager.SelectCharacter(character); @@ -186,7 +189,7 @@ public CharacterPickerButton( _previewDummy = entityManager.SpawnEntity(prototypeManager.Index(SharedHumanoidAppearanceSystem.DefaultSpecies).DollPrototype, MapCoordinates.Nullspace); } - EntitySystem.Get().LoadProfile(_previewDummy, (HumanoidCharacterProfile)profile); + EntitySystem.Get().LoadProfile(_previewDummy, (HumanoidCharacterProfile) profile); if (humanoid != null) { diff --git a/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml b/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml index 0f3fa01bce..db363db867 100644 --- a/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml +++ b/Content.Client/Preferences/UI/HumanoidProfileEditor.xaml @@ -92,18 +92,6 @@