From b2d255cdd2ed1a70ef03ffa50bfe005e14d42e33 Mon Sep 17 00:00:00 2001 From: Cinkafox <70429757+Cinkafox@users.noreply.github.com> Date: Mon, 5 Jan 2026 00:33:01 +0300 Subject: [PATCH] [tweak] UI Tweaks (#1001) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * - tweak: update StyleSheetify * - add: flexbox * - fix: size of flexbox in launchergui * - tweak: Profile editor: start. * - add: categories * - tweak: help me please with this shi... loadouts * - fix: container path think * - tweak: thinks for optimisation * - add: group selection for loadoutpicker * - tweak: change position of preview * - add: reason text * - fix: Кролькины фиксы * - fix: кролькины фиксы ч.2 * - fix: кролькины фиксы ч.3 * - кролькины фиксы - финал * - fix: Ворчливого дедушкины фиксы, удаление старого барахла и пометка wwdp * - tweak: some ui change for LoadoutCategories and LoadoutEntry * - ворчливый дед фиксы ч.2 * - fix: очередные кролькины фиксы * - add: loadout prototype validation * - fix: description read from edit field --- Content.Client/Humanoid/MarkingPicker.xaml | 2 +- Content.Client/Humanoid/MarkingPicker.xaml.cs | 16 + .../Launcher/LauncherConnectingGui.xaml | 7 +- Content.Client/Lobby/LobbyState.cs | 7 - Content.Client/Lobby/LobbyUIController.cs | 3 - .../Lobby/UI/CharacterSetupGui.xaml | 22 +- .../Lobby/UI/CharacterSetupGui.xaml.cs | 12 + .../Lobby/UI/HumanoidProfileEditor.xaml | 61 +-- .../Lobby/UI/HumanoidProfileEditor.xaml.cs | 438 +--------------- .../UI/LoadoutPreferenceSelector.xaml.cs | 30 +- Content.Client/Lobby/UI/LobbyGui.xaml | 8 +- .../HumanoidProfileEditor.CharacterEditor.cs | 49 ++ .../Stylesheets/DummyStylesheetManager.cs | 10 +- .../Stylesheets/IStylesheetManager.cs | 5 +- .../Stylesheets/StylesheetManager.cs | 70 +-- .../MenuBar/Widgets/GameTopMenuBar.xaml | 206 ++++---- .../DatumContainer/LocalDatumContainer.cs | 99 ++++ .../_White/Loadouts/LoadoutCategory.cs | 110 ++++ .../_White/Loadouts/LoadoutEntry.xaml | 40 ++ .../_White/Loadouts/LoadoutEntry.xaml.cs | 202 ++++++++ .../Loadouts/LoadoutPicker.Categories.cs | 83 +++ .../_White/Loadouts/LoadoutPicker.xaml | 81 +++ .../_White/Loadouts/LoadoutPicker.xaml.cs | 489 ++++++++++++++++++ .../_White/UserInterface/Controls/FlexBox.cs | 345 ++++++++++++ Content.IntegrationTests/PoolManager.cs | 4 +- .../Tests/Utility/SandboxTest.cs | 4 +- Content.Server.Database/Model.cs | 27 +- Content.Server/Database/ServerDbBase.cs | 26 +- .../Loadouts/Systems/SharedLoadoutSystem.cs | 31 +- .../Systems/CharacterRequirements.Profile.cs | 2 +- .../Preferences/HumanoidCharacterProfile.cs | 77 ++- .../Prototypes/CharacterItemGroupPrototype.cs | 2 +- .../Locale/en-US/_white/loadouts/loadouts.ftl | 6 +- .../Locale/ru-RU/_white/loadouts/loadouts.ftl | 6 +- SpaceStation14.sln | 8 +- StyleSheetify | 2 +- 36 files changed, 1808 insertions(+), 782 deletions(-) create mode 100644 Content.Client/Lobby/UI/ProfileEditor/HumanoidProfileEditor.CharacterEditor.cs create mode 100644 Content.Client/_White/DatumContainer/LocalDatumContainer.cs create mode 100644 Content.Client/_White/Loadouts/LoadoutCategory.cs create mode 100644 Content.Client/_White/Loadouts/LoadoutEntry.xaml create mode 100644 Content.Client/_White/Loadouts/LoadoutEntry.xaml.cs create mode 100644 Content.Client/_White/Loadouts/LoadoutPicker.Categories.cs create mode 100644 Content.Client/_White/Loadouts/LoadoutPicker.xaml create mode 100644 Content.Client/_White/Loadouts/LoadoutPicker.xaml.cs create mode 100644 Content.Client/_White/UserInterface/Controls/FlexBox.cs diff --git a/Content.Client/Humanoid/MarkingPicker.xaml b/Content.Client/Humanoid/MarkingPicker.xaml index 18182a6fe4..6528641d81 100644 --- a/Content.Client/Humanoid/MarkingPicker.xaml +++ b/Content.Client/Humanoid/MarkingPicker.xaml @@ -6,7 +6,7 @@ - + + + + diff --git a/Content.Client/Lobby/UI/CharacterSetupGui.xaml.cs b/Content.Client/Lobby/UI/CharacterSetupGui.xaml.cs index 4579916132..8fb0e12d5a 100644 --- a/Content.Client/Lobby/UI/CharacterSetupGui.xaml.cs +++ b/Content.Client/Lobby/UI/CharacterSetupGui.xaml.cs @@ -63,6 +63,18 @@ namespace Content.Client.Lobby.UI StatsButton.OnPressed += _ => new PlaytimeStatsWindow().OpenCentered(); + //WWDP EDIT START + profileEditor.CharacterSpriteView = CharacterSpriteView; + CharacterSpriteView.SetEntity(profileEditor.PreviewDummy); + PreviewRotateRightButton.OnPressed += args => + CharacterSpriteView.OverrideDirection = + (Direction)(((int)(CharacterSpriteView.OverrideDirection ?? Direction.South) + 2) % 8); + + PreviewRotateLeftButton.OnPressed += args => + CharacterSpriteView.OverrideDirection = + (Direction)(((int)(CharacterSpriteView.OverrideDirection ?? Direction.South) + 6) % 8); + //WWDP EDIT END + _cfg.OnValueChanged(CCVars.SeeOwnNotes, p => AdminRemarksButton.Visible = p, true); } diff --git a/Content.Client/Lobby/UI/HumanoidProfileEditor.xaml b/Content.Client/Lobby/UI/HumanoidProfileEditor.xaml index 495db66cf0..97cd590bcf 100644 --- a/Content.Client/Lobby/UI/HumanoidProfileEditor.xaml +++ b/Content.Client/Lobby/UI/HumanoidProfileEditor.xaml @@ -5,6 +5,7 @@ xmlns:ui="clr-namespace:Content.Client.UserInterface.Controls" xmlns:graphics="clr-namespace:Robust.Client.Graphics;assembly=Robust.Client" xmlns:controls="clr-namespace:Content.Client._White.UserInterface.Controls" + xmlns:loadouts="clr-namespace:Content.Client._White.Loadouts" HorizontalExpand="True"> @@ -180,6 +181,22 @@ + + + + + + + + + + - - -