From 3bcd319ae4dac8c16cbf7ec598d26aa7dbc8564d Mon Sep 17 00:00:00 2001 From: James Simonson Date: Tue, 7 Mar 2023 09:55:35 +0800 Subject: [PATCH] Enhanced APC UI + New NT logo to footer (#14258) --- .../UI/IdCardConsoleBoundUserInterface.cs | 2 - .../Power/APC/ApcBoundUserInterface.cs | 2 +- Content.Client/Power/APC/UI/ApcMenu.xaml | 79 ++++++++++++------ Content.Client/Power/APC/UI/ApcMenu.xaml.cs | 32 ++++--- Content.Client/Stylesheets/StyleNano.cs | 11 +++ .../Power/Components/ApcComponent.cs | 1 + .../Power/EntitySystems/ApcSystem.cs | 19 ++++- Content.Shared/APC/SharedApc.cs | 4 +- Resources/Locale/en-US/ui/power-apc.ftl | 13 ++- Resources/Textures/Interface/Nano/ntlogo.svg | 3 + .../Textures/Interface/Nano/ntlogo.svg.png | Bin 0 -> 377 bytes .../Interface/Nano/ntlogo.svg.png.yml | 2 + 12 files changed, 124 insertions(+), 44 deletions(-) create mode 100644 Resources/Textures/Interface/Nano/ntlogo.svg create mode 100644 Resources/Textures/Interface/Nano/ntlogo.svg.png create mode 100644 Resources/Textures/Interface/Nano/ntlogo.svg.png.yml diff --git a/Content.Client/Access/UI/IdCardConsoleBoundUserInterface.cs b/Content.Client/Access/UI/IdCardConsoleBoundUserInterface.cs index 9eb989f715..1ef9158aeb 100644 --- a/Content.Client/Access/UI/IdCardConsoleBoundUserInterface.cs +++ b/Content.Client/Access/UI/IdCardConsoleBoundUserInterface.cs @@ -5,7 +5,6 @@ using Content.Shared.CrewManifest; using Robust.Client.GameObjects; using Robust.Shared.Prototypes; using static Content.Shared.Access.Components.SharedIdCardConsoleComponent; - namespace Content.Client.Access.UI { public sealed class IdCardConsoleBoundUserInterface : BoundUserInterface @@ -16,7 +15,6 @@ namespace Content.Client.Access.UI public IdCardConsoleBoundUserInterface(ClientUserInterfaceComponent owner, Enum uiKey) : base(owner, uiKey) { } - private IdCardConsoleWindow? _window; protected override void Open() diff --git a/Content.Client/Power/APC/ApcBoundUserInterface.cs b/Content.Client/Power/APC/ApcBoundUserInterface.cs index 65ba4c7ec0..d85edb8d1a 100644 --- a/Content.Client/Power/APC/ApcBoundUserInterface.cs +++ b/Content.Client/Power/APC/ApcBoundUserInterface.cs @@ -16,7 +16,7 @@ namespace Content.Client.Power.APC { base.Open(); - _menu = new ApcMenu(this); + _menu = new ApcMenu(this,Owner); _menu.OnClose += Close; _menu.OpenCentered(); } diff --git a/Content.Client/Power/APC/UI/ApcMenu.xaml b/Content.Client/Power/APC/UI/ApcMenu.xaml index 5926b5de4c..0ce4a943da 100644 --- a/Content.Client/Power/APC/UI/ApcMenu.xaml +++ b/Content.Client/Power/APC/UI/ApcMenu.xaml @@ -1,28 +1,59 @@ - - - - -