From e09cc7b80206aa1025b7ae6697bce8cd94cc94dd Mon Sep 17 00:00:00 2001 From: Remuchi Date: Wed, 24 Jan 2024 15:15:13 +0700 Subject: [PATCH] =?UTF-8?q?feat:=20=D1=81=D0=BC=D0=B5=D0=BD=D0=B0=20=D0=B7?= =?UTF-8?q?=D0=BD=D0=B0=D1=87=D0=BA=D0=BE=D0=B2=20=D0=B2=20=D0=BA=D0=BE?= =?UTF-8?q?=D0=BD=D1=81=D0=BE=D0=BB=D0=B8=20ID=20=D0=BA=D0=B0=D1=80=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../UI/IdCardConsoleBoundUserInterface.cs | 14 ++- .../Access/UI/IdCardConsoleWindow.xaml | 14 ++- .../Access/UI/IdCardConsoleWindow.xaml.cs | 98 ++++++++++++++++--- .../Access/Systems/IdCardConsoleSystem.cs | 42 ++++++-- .../Components/IdCardConsoleComponent.cs | 73 +++++++++++++- 5 files changed, 213 insertions(+), 28 deletions(-) diff --git a/Content.Client/Access/UI/IdCardConsoleBoundUserInterface.cs b/Content.Client/Access/UI/IdCardConsoleBoundUserInterface.cs index 898792aa03..95cc972b73 100644 --- a/Content.Client/Access/UI/IdCardConsoleBoundUserInterface.cs +++ b/Content.Client/Access/UI/IdCardConsoleBoundUserInterface.cs @@ -42,7 +42,9 @@ namespace Content.Client.Access.UI }; _window.CrewManifestButton.OnPressed += _ => SendMessage(new CrewManifestOpenUiMessage()); - _window.PrivilegedIdButton.OnPressed += _ => SendMessage(new ItemSlotButtonPressedEvent(PrivilegedIdCardSlotId)); + _window.PrivilegedIdButton.OnPressed += + _ => SendMessage(new ItemSlotButtonPressedEvent(PrivilegedIdCardSlotId)); + _window.TargetIdButton.OnPressed += _ => SendMessage(new ItemSlotButtonPressedEvent(TargetIdCardSlotId)); _window.OnClose += Close; @@ -65,7 +67,12 @@ namespace Content.Client.Access.UI _window?.UpdateState(castState); } - public void SubmitData(string newFullName, string newJobTitle, List newAccessList, string newJobPrototype) + public void SubmitData( + string newFullName, + string newJobTitle, + List newAccessList, + string newJobPrototype, + string? newJobIcon) { if (newFullName.Length > MaxFullNameLength) newFullName = newFullName[..MaxFullNameLength]; @@ -77,7 +84,8 @@ namespace Content.Client.Access.UI newFullName, newJobTitle, newAccessList, - newJobPrototype)); + newJobPrototype, + newJobIcon)); } } } diff --git a/Content.Client/Access/UI/IdCardConsoleWindow.xaml b/Content.Client/Access/UI/IdCardConsoleWindow.xaml index c29adc8ebd..47d63cf954 100644 --- a/Content.Client/Access/UI/IdCardConsoleWindow.xaml +++ b/Content.Client/Access/UI/IdCardConsoleWindow.xaml @@ -1,14 +1,14 @@ + MinSize="650 290">