From 35b90736b7fc6d1596eeff02ea574ee45b46bd26 Mon Sep 17 00:00:00 2001 From: wrexbe <81056464+wrexbe@users.noreply.github.com> Date: Sun, 11 Sep 2022 20:42:12 -0700 Subject: [PATCH] Minor UI refactor (#11212) --- .../UI/AdminAnnounceWindow.xaml.cs | 3 --- Content.Client/Audio/BackgroundAudioSystem.cs | 6 ++--- .../Components/CharacterInfoSystem.cs | 4 +-- .../EntitySystems/ReagentDispenserSystem.cs | 3 ++- .../CrewManifest/CrewManifestUi.xaml | 6 ++--- Content.Client/Entry/EntryPoint.cs | 2 +- Content.Client/Gameplay/GameplayState.cs | 2 +- Content.Client/Ghost/GhostComponent.cs | 4 +-- Content.Client/Ghost/GhostSystem.cs | 4 +-- Content.Client/Info/RulesAndInfoWindow.cs | 3 +-- Content.Client/Info/RulesManager.cs | 3 +-- Content.Client/IoC/ClientContentIoC.cs | 2 +- Content.Client/LateJoin/LateJoinGui.cs | 5 +--- Content.Client/Lobby/LobbyState.cs | 2 +- .../Lobby/UI/LobbyCharacterPreviewPanel.cs | 6 ----- Content.Client/Lobby/UI/LobbyGui.xaml | 26 +++++++++---------- Content.Client/MainMenu/MainMenu.cs | 2 +- Content.Client/Mapping/MappingSystem.cs | 10 +++---- Content.Client/NPC/NPCWindow.xaml | 9 +++---- Content.Client/NPC/NPCWindow.xaml.cs | 1 - ...tworkConfiguratorConfigurationMenu.xaml.cs | 3 --- .../EscapeMenuOwner.cs | 2 +- .../UI/EscapeMenu.xaml | 0 .../UI/EscapeMenu.xaml.cs | 2 +- .../UI/OptionsMenu.xaml | 2 +- .../UI/OptionsMenu.xaml.cs | 2 +- .../UI/Tabs/AudioTab.xaml | 6 ++--- .../UI/Tabs/AudioTab.xaml.cs | 2 +- .../UI/Tabs/GraphicsTab.xaml | 6 ++--- .../UI/Tabs/GraphicsTab.xaml.cs | 2 +- .../UI/Tabs/KeyRebindTab.xaml | 6 ++--- .../UI/Tabs/KeyRebindTab.xaml.cs | 2 +- .../UI/Tabs/NetworkTab.xaml | 8 +++--- .../UI/Tabs/NetworkTab.xaml.cs | 2 +- .../UI/ParticleAcceleratorControlMenu.cs | 6 +---- .../UI/HumanoidProfileEditor.xaml.cs | 9 +------ .../Shuttles/UI/EmergencyConsoleWindow.xaml | 3 +-- .../Shuttles/UI/RadarConsoleWindow.xaml | 6 ++--- .../Shuttles/UI/ShuttleConsoleWindow.xaml | 16 +++++------- .../Storage/StorageBoundUserInterface.cs | 2 +- .../Controls}/MainViewport.cs | 5 +--- .../Controls}/NanoHeading.cs | 2 +- .../Controls}/ProgressTextureRect.cs | 2 +- .../Controls}/StripeBack.cs | 3 +-- .../GasTank/GasTankBoundUserInterface.cs | 3 +-- .../Atmos/GasTank/GasTankWindow.cs | 5 +--- .../Ghost/Controls}/GhostTargetWindow.xaml | 0 .../Ghost/Controls}/GhostTargetWindow.xaml.cs | 2 +- .../Roles}/GhostRoleEntryButtons.xaml | 0 .../Roles}/GhostRoleEntryButtons.xaml.cs | 2 +- .../Controls/Roles}/GhostRoleRulesWindow.xaml | 0 .../Roles}/GhostRoleRulesWindow.xaml.cs | 2 +- .../Controls/Roles}/GhostRolesEntry.xaml | 0 .../Controls/Roles}/GhostRolesEntry.xaml.cs | 2 +- .../Ghost/Controls/Roles}/GhostRolesEui.cs | 2 +- .../Controls/Roles}/GhostRolesWindow.xaml | 0 .../Controls/Roles}/GhostRolesWindow.xaml.cs | 2 +- .../Ghost/Controls/Roles}/MakeGhostRoleEui.cs | 2 +- .../Controls/Roles}/MakeGhostRoleWindow.xaml | 0 .../Roles}/MakeGhostRoleWindow.xaml.cs | 2 +- .../Systems/Ghost}/GhostGui.cs | 7 +++-- Content.Client/Viewport/IMainViewport.cs | 2 +- Content.Client/Viewport/ViewportManager.cs | 5 +--- 63 files changed, 93 insertions(+), 147 deletions(-) rename Content.Client/{EscapeMenu => Options}/EscapeMenuOwner.cs (98%) rename Content.Client/{EscapeMenu => Options}/UI/EscapeMenu.xaml (100%) rename Content.Client/{EscapeMenu => Options}/UI/EscapeMenu.xaml.cs (98%) rename Content.Client/{EscapeMenu => Options}/UI/OptionsMenu.xaml (80%) rename Content.Client/{EscapeMenu => Options}/UI/OptionsMenu.xaml.cs (94%) rename Content.Client/{EscapeMenu => Options}/UI/Tabs/AudioTab.xaml (96%) rename Content.Client/{EscapeMenu => Options}/UI/Tabs/AudioTab.xaml.cs (99%) rename Content.Client/{EscapeMenu => Options}/UI/Tabs/GraphicsTab.xaml (93%) rename Content.Client/{EscapeMenu => Options}/UI/Tabs/GraphicsTab.xaml.cs (99%) rename Content.Client/{EscapeMenu => Options}/UI/Tabs/KeyRebindTab.xaml (81%) rename Content.Client/{EscapeMenu => Options}/UI/Tabs/KeyRebindTab.xaml.cs (99%) rename Content.Client/{EscapeMenu => Options}/UI/Tabs/NetworkTab.xaml (94%) rename Content.Client/{EscapeMenu => Options}/UI/Tabs/NetworkTab.xaml.cs (99%) rename Content.Client/{HUD/UI => UserInterface/Controls}/MainViewport.cs (98%) rename Content.Client/{HUD/UI => UserInterface/Controls}/NanoHeading.cs (93%) rename Content.Client/{CharacterInfo => UserInterface/Controls}/ProgressTextureRect.cs (92%) rename Content.Client/{HUD/UI => UserInterface/Controls}/StripeBack.cs (98%) rename Content.Client/UserInterface/{ => Systems}/Atmos/GasTank/GasTankBoundUserInterface.cs (93%) rename Content.Client/UserInterface/{ => Systems}/Atmos/GasTank/GasTankWindow.cs (98%) rename Content.Client/{Ghost/UI => UserInterface/Systems/Ghost/Controls}/GhostTargetWindow.xaml (100%) rename Content.Client/{Ghost/UI => UserInterface/Systems/Ghost/Controls}/GhostTargetWindow.xaml.cs (97%) rename Content.Client/{Ghost/Roles/UI => UserInterface/Systems/Ghost/Controls/Roles}/GhostRoleEntryButtons.xaml (100%) rename Content.Client/{Ghost/Roles/UI => UserInterface/Systems/Ghost/Controls/Roles}/GhostRoleEntryButtons.xaml.cs (72%) rename Content.Client/{Ghost/Roles/UI => UserInterface/Systems/Ghost/Controls/Roles}/GhostRoleRulesWindow.xaml (100%) rename Content.Client/{Ghost/Roles/UI => UserInterface/Systems/Ghost/Controls/Roles}/GhostRoleRulesWindow.xaml.cs (96%) rename Content.Client/{Ghost/Roles/UI => UserInterface/Systems/Ghost/Controls/Roles}/GhostRolesEntry.xaml (100%) rename Content.Client/{Ghost/Roles/UI => UserInterface/Systems/Ghost/Controls/Roles}/GhostRolesEntry.xaml.cs (93%) rename Content.Client/{Ghost/Roles/UI => UserInterface/Systems/Ghost/Controls/Roles}/GhostRolesEui.cs (97%) rename Content.Client/{Ghost/Roles/UI => UserInterface/Systems/Ghost/Controls/Roles}/GhostRolesWindow.xaml (100%) rename Content.Client/{Ghost/Roles/UI => UserInterface/Systems/Ghost/Controls/Roles}/GhostRolesWindow.xaml.cs (92%) rename Content.Client/{Ghost/Roles/UI => UserInterface/Systems/Ghost/Controls/Roles}/MakeGhostRoleEui.cs (97%) rename Content.Client/{Ghost/Roles/UI => UserInterface/Systems/Ghost/Controls/Roles}/MakeGhostRoleWindow.xaml (100%) rename Content.Client/{Ghost/Roles/UI => UserInterface/Systems/Ghost/Controls/Roles}/MakeGhostRoleWindow.xaml.cs (96%) rename Content.Client/{Ghost/UI => UserInterface/Systems/Ghost}/GhostGui.cs (95%) diff --git a/Content.Client/Administration/UI/AdminAnnounceWindow.xaml.cs b/Content.Client/Administration/UI/AdminAnnounceWindow.xaml.cs index 653a9c2a98..4fcf8f7ed3 100644 --- a/Content.Client/Administration/UI/AdminAnnounceWindow.xaml.cs +++ b/Content.Client/Administration/UI/AdminAnnounceWindow.xaml.cs @@ -1,11 +1,8 @@ -using Content.Client.HUD; using Content.Shared.Administration; using Robust.Client.AutoGenerated; using Robust.Client.UserInterface.Controls; using Robust.Client.UserInterface.CustomControls; using Robust.Client.UserInterface.XAML; -using Robust.Shared.IoC; -using Robust.Shared.Localization; namespace Content.Client.Administration.UI { diff --git a/Content.Client/Audio/BackgroundAudioSystem.cs b/Content.Client/Audio/BackgroundAudioSystem.cs index 761cd66140..b1c812f1d9 100644 --- a/Content.Client/Audio/BackgroundAudioSystem.cs +++ b/Content.Client/Audio/BackgroundAudioSystem.cs @@ -1,6 +1,7 @@ using Content.Client.GameTicking.Managers; +using System.Threading; +using Content.Client.Gameplay; using Content.Client.Lobby; -using Content.Client.Viewport; using Content.Shared.CCVar; using JetBrains.Annotations; using Robust.Client; @@ -8,13 +9,10 @@ using Robust.Client.Player; using Robust.Client.State; using Robust.Shared.Audio; using Robust.Shared.Configuration; -using Robust.Shared.Map; using Robust.Shared.Player; using Robust.Shared.Prototypes; using Robust.Shared.Random; using Robust.Shared.Timing; -using System.Threading; -using Content.Client.Gameplay; using Robust.Client.GameObjects; using Robust.Client.ResourceManagement; using Timer = Robust.Shared.Timing.Timer; diff --git a/Content.Client/CharacterInfo/Components/CharacterInfoSystem.cs b/Content.Client/CharacterInfo/Components/CharacterInfoSystem.cs index f778383488..6589bf72f3 100644 --- a/Content.Client/CharacterInfo/Components/CharacterInfoSystem.cs +++ b/Content.Client/CharacterInfo/Components/CharacterInfoSystem.cs @@ -1,12 +1,10 @@ -using System.Collections.Generic; +using Content.Client.UserInterface.Controls; using Content.Shared.CharacterInfo; using Content.Shared.Objectives; using Robust.Client.GameObjects; using Robust.Client.UserInterface; using Robust.Client.UserInterface.Controls; using Robust.Client.Utility; -using Robust.Shared.GameObjects; -using Robust.Shared.Maths; namespace Content.Client.CharacterInfo.Components; diff --git a/Content.Client/Chemistry/EntitySystems/ReagentDispenserSystem.cs b/Content.Client/Chemistry/EntitySystems/ReagentDispenserSystem.cs index 25c09b4603..c0ac6c4bc3 100644 --- a/Content.Client/Chemistry/EntitySystems/ReagentDispenserSystem.cs +++ b/Content.Client/Chemistry/EntitySystems/ReagentDispenserSystem.cs @@ -1,5 +1,5 @@ -using JetBrains.Annotations; using Content.Shared.Chemistry.EntitySystems; +using JetBrains.Annotations; namespace Content.Client.Chemistry.EntitySystems { @@ -7,5 +7,6 @@ namespace Content.Client.Chemistry.EntitySystems public sealed class ReagentDispenserSystem : SharedReagentDispenserSystem { // hello there. + // General Kenobi } } diff --git a/Content.Client/CrewManifest/CrewManifestUi.xaml b/Content.Client/CrewManifest/CrewManifestUi.xaml index 6c29664335..c49ecf2069 100644 --- a/Content.Client/CrewManifest/CrewManifestUi.xaml +++ b/Content.Client/CrewManifest/CrewManifestUi.xaml @@ -1,13 +1,13 @@ - + - + diff --git a/Content.Client/Entry/EntryPoint.cs b/Content.Client/Entry/EntryPoint.cs index cf6bb073e2..b2e011e01a 100644 --- a/Content.Client/Entry/EntryPoint.cs +++ b/Content.Client/Entry/EntryPoint.cs @@ -2,7 +2,7 @@ using Content.Client.Administration.Managers; using Content.Client.Changelog; using Content.Client.CharacterInterface; using Content.Client.Chat.Managers; -using Content.Client.EscapeMenu; +using Content.Client.Options; using Content.Client.Eui; using Content.Client.Flash; using Content.Client.GhostKick; diff --git a/Content.Client/Gameplay/GameplayState.cs b/Content.Client/Gameplay/GameplayState.cs index c4fb1cefe4..68e99bed0d 100644 --- a/Content.Client/Gameplay/GameplayState.cs +++ b/Content.Client/Gameplay/GameplayState.cs @@ -5,7 +5,7 @@ using Content.Client.Chat.UI; using Content.Client.Construction.UI; using Content.Client.Hands; using Content.Client.HUD; -using Content.Client.HUD.UI; +using Content.Client.UserInterface.Controls; using Content.Client.Viewport; using Content.Client.Voting; using Content.Shared.Chat; diff --git a/Content.Client/Ghost/GhostComponent.cs b/Content.Client/Ghost/GhostComponent.cs index 4499834b7b..57f7b7753a 100644 --- a/Content.Client/Ghost/GhostComponent.cs +++ b/Content.Client/Ghost/GhostComponent.cs @@ -1,8 +1,6 @@ -using Content.Client.Ghost.UI; +using Content.Client.UserInterface.Systems.Ghost; using Content.Shared.Ghost; using Robust.Client.Player; -using Robust.Shared.GameObjects; -using Robust.Shared.IoC; namespace Content.Client.Ghost { diff --git a/Content.Client/Ghost/GhostSystem.cs b/Content.Client/Ghost/GhostSystem.cs index ecac981f59..f44ba7b31a 100644 --- a/Content.Client/Ghost/GhostSystem.cs +++ b/Content.Client/Ghost/GhostSystem.cs @@ -1,11 +1,9 @@ -using Content.Client.Ghost.UI; using Content.Client.HUD; +using Content.Client.UserInterface.Systems.Ghost; using Content.Shared.Ghost; using JetBrains.Annotations; using Robust.Client.GameObjects; using Robust.Client.Player; -using Robust.Shared.GameObjects; -using Robust.Shared.IoC; namespace Content.Client.Ghost { diff --git a/Content.Client/Info/RulesAndInfoWindow.cs b/Content.Client/Info/RulesAndInfoWindow.cs index acb797828c..60351247a3 100644 --- a/Content.Client/Info/RulesAndInfoWindow.cs +++ b/Content.Client/Info/RulesAndInfoWindow.cs @@ -1,5 +1,4 @@ -using Content.Client.EscapeMenu.UI; -using Content.Shared.CCVar; +using Content.Client.Options.UI; using Robust.Client.ResourceManagement; using Robust.Client.UserInterface; using Robust.Client.UserInterface.Controls; diff --git a/Content.Client/Info/RulesManager.cs b/Content.Client/Info/RulesManager.cs index aa976b3b89..366b98d465 100644 --- a/Content.Client/Info/RulesManager.cs +++ b/Content.Client/Info/RulesManager.cs @@ -1,6 +1,5 @@ -using Content.Client.Gameplay; using Content.Client.Lobby; -using Content.Client.Viewport; +using Content.Client.Gameplay; using Content.Shared.CCVar; using Content.Shared.Info; using Robust.Client.Console; diff --git a/Content.Client/IoC/ClientContentIoC.cs b/Content.Client/IoC/ClientContentIoC.cs index c66a5603e1..e8ee8389a0 100644 --- a/Content.Client/IoC/ClientContentIoC.cs +++ b/Content.Client/IoC/ClientContentIoC.cs @@ -2,7 +2,7 @@ using Content.Client.Changelog; using Content.Client.Chat.Managers; using Content.Client.Clickable; -using Content.Client.EscapeMenu; +using Content.Client.Options; using Content.Client.Eui; using Content.Client.GhostKick; using Content.Client.HUD; diff --git a/Content.Client/LateJoin/LateJoinGui.cs b/Content.Client/LateJoin/LateJoinGui.cs index f38a983355..ad6b8ac582 100644 --- a/Content.Client/LateJoin/LateJoinGui.cs +++ b/Content.Client/LateJoin/LateJoinGui.cs @@ -1,11 +1,8 @@ -using System.Linq; using Content.Client.CrewManifest; -using Content.Client.Eui; using Content.Client.GameTicking.Managers; -using Content.Client.HUD.UI; using Content.Client.Players.PlayTimeTracking; +using Content.Client.UserInterface.Controls; using Content.Shared.CCVar; -using Content.Shared.CrewManifest; using Content.Shared.Roles; using Robust.Client.Console; using Robust.Client.UserInterface; diff --git a/Content.Client/Lobby/LobbyState.cs b/Content.Client/Lobby/LobbyState.cs index 88f940ff28..47c0a69993 100644 --- a/Content.Client/Lobby/LobbyState.cs +++ b/Content.Client/Lobby/LobbyState.cs @@ -2,7 +2,7 @@ using System; using System.Linq; using Content.Client.Chat; using Content.Client.Chat.Managers; -using Content.Client.EscapeMenu.UI; +using Content.Client.Options.UI; using Content.Client.GameTicking.Managers; using Content.Client.LateJoin; using Content.Client.Lobby.UI; diff --git a/Content.Client/Lobby/UI/LobbyCharacterPreviewPanel.cs b/Content.Client/Lobby/UI/LobbyCharacterPreviewPanel.cs index 7370a43546..22c2148c39 100644 --- a/Content.Client/Lobby/UI/LobbyCharacterPreviewPanel.cs +++ b/Content.Client/Lobby/UI/LobbyCharacterPreviewPanel.cs @@ -1,22 +1,16 @@ using System.Linq; -using Content.Client.HUD.UI; using Content.Client.Inventory; using Content.Client.Preferences; using Content.Client.UserInterface.Controls; using Content.Shared.CharacterAppearance.Systems; using Content.Shared.GameTicking; -using Content.Shared.Inventory; using Content.Shared.Preferences; using Content.Shared.Roles; using Content.Shared.Species; using Robust.Client.GameObjects; using Robust.Client.UserInterface; using Robust.Client.UserInterface.Controls; -using Robust.Shared.GameObjects; -using Robust.Shared.IoC; -using Robust.Shared.Localization; using Robust.Shared.Map; -using Robust.Shared.Maths; using Robust.Shared.Prototypes; using static Robust.Client.UserInterface.Controls.BoxContainer; diff --git a/Content.Client/Lobby/UI/LobbyGui.xaml b/Content.Client/Lobby/UI/LobbyGui.xaml index 12a24bb472..1c885dc281 100644 --- a/Content.Client/Lobby/UI/LobbyGui.xaml +++ b/Content.Client/Lobby/UI/LobbyGui.xaml @@ -1,12 +1,10 @@ - @@ -20,7 +18,7 @@ - + - + @@ -52,8 +50,8 @@ - - + + @@ -61,18 +59,18 @@