From 3d36a6e1f6327c5d127979a8b747c71c6c0420ac Mon Sep 17 00:00:00 2001 From: Flipp Syder <76629141+vulppine@users.noreply.github.com> Date: Mon, 8 Aug 2022 22:10:01 -0700 Subject: [PATCH] Station records (#8720) Co-authored-by: metalgearsloth --- .../UI/IdCardConsoleBoundUserInterface.cs | 2 + .../Access/UI/IdCardConsoleWindow.xaml | 23 +- .../Access/UI/IdCardConsoleWindow.xaml.cs | 72 +++++ .../CrewManifest/CrewManifestEui.cs | 51 ++++ .../CrewManifest/CrewManifestSystem.cs | 82 +++++ .../CrewManifest/CrewManifestUi.xaml | 21 ++ .../CrewManifest/CrewManifestUi.xaml.cs | 186 ++++++++++++ Content.Client/LateJoin/LateJoinGui.cs | 21 ++ Content.Client/PDA/PDABoundUserInterface.cs | 15 + Content.Client/PDA/PDAMenu.xaml | 4 + ...lStationRecordConsoleBoundUserInterface.cs | 47 +++ .../GeneralStationRecordConsoleWindow.xaml | 17 ++ .../GeneralStationRecordConsoleWindow.xaml.cs | 126 ++++++++ .../Components/IdCardConsoleComponent.cs | 25 +- .../CrewManifest/CrewManifestEui.cs | 47 +++ .../CrewManifest/CrewManifestSystem.cs | 263 ++++++++++++++++ .../CrewManifestViewerComponent.cs | 12 + .../GeneralStationRecordConsoleComponent.cs | 9 + .../StationRecordKeyStorageComponent.cs | 13 + .../Components/StationRecordsComponent.cs | 11 + .../StationRecords/StationRecordSet.cs | 158 ++++++++++ .../GeneralStationRecordConsoleSystem.cs | 75 +++++ .../Systems/StationRecordKeyStorageSystem.cs | 57 ++++ .../Systems/StationRecordsSystem.cs | 282 ++++++++++++++++++ Content.Shared/CCVar/CCVars.cs | 31 ++ .../CrewManifest/SharedCrewManifestSystem.cs | 75 +++++ .../StationRecords/GeneralStationRecord.cs | 59 ++++ ...SharedGeneralStationRecordConsoleSystem.cs | 54 ++++ .../StationRecords/StationRecordKey.cs | 21 ++ .../components/id-card-console-component.ftl | 1 + .../en-US/crew-manifest/crew-manifest.ftl | 3 + .../general-station-records.ftl | 9 + .../Entities/Objects/Devices/pda.yml | 2 + .../Objects/Misc/identification_cards.yml | 1 + .../Machines/Computers/computers.yml | 22 ++ 35 files changed, 1888 insertions(+), 9 deletions(-) create mode 100644 Content.Client/CrewManifest/CrewManifestEui.cs create mode 100644 Content.Client/CrewManifest/CrewManifestSystem.cs create mode 100644 Content.Client/CrewManifest/CrewManifestUi.xaml create mode 100644 Content.Client/CrewManifest/CrewManifestUi.xaml.cs create mode 100644 Content.Client/StationRecords/GeneralStationRecordConsoleBoundUserInterface.cs create mode 100644 Content.Client/StationRecords/GeneralStationRecordConsoleWindow.xaml create mode 100644 Content.Client/StationRecords/GeneralStationRecordConsoleWindow.xaml.cs create mode 100644 Content.Server/CrewManifest/CrewManifestEui.cs create mode 100644 Content.Server/CrewManifest/CrewManifestSystem.cs create mode 100644 Content.Server/CrewManifest/CrewManifestViewerComponent.cs create mode 100644 Content.Server/StationRecords/Components/GeneralStationRecordConsoleComponent.cs create mode 100644 Content.Server/StationRecords/Components/StationRecordKeyStorageComponent.cs create mode 100644 Content.Server/StationRecords/Components/StationRecordsComponent.cs create mode 100644 Content.Server/StationRecords/StationRecordSet.cs create mode 100644 Content.Server/StationRecords/Systems/GeneralStationRecordConsoleSystem.cs create mode 100644 Content.Server/StationRecords/Systems/StationRecordKeyStorageSystem.cs create mode 100644 Content.Server/StationRecords/Systems/StationRecordsSystem.cs create mode 100644 Content.Shared/CrewManifest/SharedCrewManifestSystem.cs create mode 100644 Content.Shared/StationRecords/GeneralStationRecord.cs create mode 100644 Content.Shared/StationRecords/SharedGeneralStationRecordConsoleSystem.cs create mode 100644 Content.Shared/StationRecords/StationRecordKey.cs create mode 100644 Resources/Locale/en-US/crew-manifest/crew-manifest.ftl create mode 100644 Resources/Locale/en-US/station-records/general-station-records.ftl diff --git a/Content.Client/Access/UI/IdCardConsoleBoundUserInterface.cs b/Content.Client/Access/UI/IdCardConsoleBoundUserInterface.cs index 897000c184..c5d0227e40 100644 --- a/Content.Client/Access/UI/IdCardConsoleBoundUserInterface.cs +++ b/Content.Client/Access/UI/IdCardConsoleBoundUserInterface.cs @@ -1,6 +1,7 @@ using Content.Client.Access.Components; using Content.Shared.Access.Systems; using Content.Shared.Containers.ItemSlots; +using Content.Shared.CrewManifest; using Robust.Client.GameObjects; using Robust.Shared.Prototypes; using static Content.Shared.Access.Components.SharedIdCardConsoleComponent; @@ -36,6 +37,7 @@ namespace Content.Client.Access.UI _window = new IdCardConsoleWindow(this, _prototypeManager, accessLevels) {Title = _entityManager.GetComponent(Owner.Owner).EntityName}; + _window.CrewManifestButton.OnPressed += _ => SendMessage(new CrewManifestOpenUiMessage()); _window.PrivilegedIdButton.OnPressed += _ => SendMessage(new ItemSlotButtonPressedEvent(PrivilegedIdCardSlotId)); _window.TargetIdButton.OnPressed += _ => SendMessage(new ItemSlotButtonPressedEvent(TargetIdCardSlotId)); diff --git a/Content.Client/Access/UI/IdCardConsoleWindow.xaml b/Content.Client/Access/UI/IdCardConsoleWindow.xaml index d095ec46f6..c29adc8ebd 100644 --- a/Content.Client/Access/UI/IdCardConsoleWindow.xaml +++ b/Content.Client/Access/UI/IdCardConsoleWindow.xaml @@ -1,14 +1,19 @@ - -