From 7fd2541aee6c2a9a88305ecfcf2be6535f5da0f2 Mon Sep 17 00:00:00 2001 From: deltanedas <39013340+deltanedas@users.noreply.github.com> Date: Wed, 28 Aug 2024 00:33:30 +0000 Subject: [PATCH] job whitelists panel !!! (#1678) * make JobPrototype.Whitelisted respect blanket whitelist, make jobs use it * add jobwhitelists command and ui * add job whitelist button to player panel --------- Co-authored-by: deltanedas <@deltanedas:kde.org> --- .../UI/PlayerPanel/PlayerPanel.xaml | 1 + .../UI/PlayerPanel/PlayerPanel.xaml.cs | 4 + .../UI/PlayerPanel/PlayerPanelEui.cs | 1 + .../UI/DepartmentWhitelistPanel.xaml | 11 +++ .../UI/DepartmentWhitelistPanel.xaml.cs | 46 ++++++++++ .../Administration/UI/JobWhitelistsEui.cs | 40 +++++++++ .../UI/JobWhitelistsWindow.xaml | 11 +++ .../UI/JobWhitelistsWindow.xaml.cs | 46 ++++++++++ .../Commands/JobWhitelistsCommand.cs | 45 ++++++++++ .../DeltaV/Administration/JobWhitelistsEui.cs | 90 +++++++++++++++++++ .../JobWhitelist/JobWhitelistManager.cs | 5 ++ .../Administration/JobWhitelistsEuiState.cs | 35 ++++++++ .../JobRequirement/WhitelistRequirement.cs | 3 + .../deltav/administration/ui/player-panel.ftl | 1 + .../Locale/en-US/deltav/info/whitelists.ftl | 3 + .../Roles/Jobs/Justice/chief_justice.yml | 2 +- .../Prototypes/Roles/Jobs/Command/captain.yml | 2 +- .../Roles/Jobs/Security/head_of_security.yml | 2 +- 18 files changed, 345 insertions(+), 3 deletions(-) create mode 100644 Content.Client/DeltaV/Administration/UI/DepartmentWhitelistPanel.xaml create mode 100644 Content.Client/DeltaV/Administration/UI/DepartmentWhitelistPanel.xaml.cs create mode 100644 Content.Client/DeltaV/Administration/UI/JobWhitelistsEui.cs create mode 100644 Content.Client/DeltaV/Administration/UI/JobWhitelistsWindow.xaml create mode 100644 Content.Client/DeltaV/Administration/UI/JobWhitelistsWindow.xaml.cs create mode 100644 Content.Server/DeltaV/Administration/Commands/JobWhitelistsCommand.cs create mode 100644 Content.Server/DeltaV/Administration/JobWhitelistsEui.cs create mode 100644 Content.Shared/DeltaV/Administration/JobWhitelistsEuiState.cs create mode 100644 Resources/Locale/en-US/deltav/administration/ui/player-panel.ftl create mode 100644 Resources/Locale/en-US/deltav/info/whitelists.ftl diff --git a/Content.Client/Administration/UI/PlayerPanel/PlayerPanel.xaml b/Content.Client/Administration/UI/PlayerPanel/PlayerPanel.xaml index 8feec273b4..5b3b9f007c 100644 --- a/Content.Client/Administration/UI/PlayerPanel/PlayerPanel.xaml +++ b/Content.Client/Administration/UI/PlayerPanel/PlayerPanel.xaml @@ -31,6 +31,7 @@