]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Add door electronics access configuration menu (#17778)
authorc4llv07e <38111072+c4llv07e@users.noreply.github.com>
Mon, 1 Apr 2024 06:06:13 +0000 (09:06 +0300)
committerGitHub <noreply@github.com>
Mon, 1 Apr 2024 06:06:13 +0000 (17:06 +1100)
commit64bb8dbdd50e0b1e5744e1eb0cc6f24bda959ade
tree928c4f416e6ecf6e9ba68b9055267f2bbf84265a
parent72bdcac1e271691abb92e3232f0a4d1a592e19c2
Add door electronics access configuration menu (#17778)

* Add door electronics configuration menu

* Use file-scoped namespaces

Signed-off-by: c4llv07e <kseandi@gmail.com>
* Open door electronics configuration menu only with network configurator

Signed-off-by: c4llv07e <kseandi@gmail.com>
* Doors will now try to move their AccessReaderComponent to their door electronics when the map is initialized

Signed-off-by: c4llv07e <kseandi@gmail.com>
* Make the access list in the id card computer a separate control

Signed-off-by: c4llv07e <kseandi@gmail.com>
* Fix merge conflict

Signed-off-by: c4llv07e <kseandi@gmail.com>
* Remove DoorElectronics tag

Signed-off-by: c4llv07e <kseandi@gmail.com>
* Integrate doors with #17927

Signed-off-by: c4llv07e <kseandi@gmail.com>
* Move door electornics ui stuff to the right place

Signed-off-by: c4llv07e <kseandi@gmail.com>
* Some review fixes

Signed-off-by: c4llv07e <kseandi@gmail.com>
* More fixes

Signed-off-by: c4llv07e <kseandi@gmail.com>
* review fix

Signed-off-by: c4llv07e <kseandi@gmail.com>
* move all accesses from airlock prototypes to door electronics

Signed-off-by: c4llv07e <kseandi@gmail.com>
* rework door electronics config access list

Signed-off-by: c4llv07e <kseandi@gmail.com>
* Remove Linq from the door electronics user interface

* [WIP] Add EntityWhitelist to the activatable ui component

Signed-off-by: c4llv07e <kseandi@gmail.com>
* Better interaction system

Signed-off-by: c4llv07e <kseandi@gmail.com>
* Refactor

Signed-off-by: c4llv07e <kseandi@gmail.com>
* Fix some door electronics not working without AccessReaderComponent

Signed-off-by: c4llv07e <kseandi@gmail.com>
* Move AccessReaderComponent update code to the AccessReaderSystem

Signed-off-by: c4llv07e <kseandi@gmail.com>
* Remove unnecesary newlines in the door access prototypes

Signed-off-by: c4llv07e <kseandi@gmail.com>
* Remove unused variables in access level control

Signed-off-by: c4llv07e <kseandi@gmail.com>
* Remove unnecessary method from the door electronics configuration menu

Signed-off-by: c4llv07e <kseandi@gmail.com>
* [WIP] change access type from string to ProtoId<AccessLevelPrototype>

Signed-off-by: c4llv07e <kseandi@gmail.com>
* Remove unused methods

Signed-off-by: c4llv07e <kseandi@gmail.com>
* Newline fix

Signed-off-by: c4llv07e <kseandi@gmail.com>
* Restored to a functional state

Signed-off-by: c4llv07e <kseandi@gmail.com>
* Fix access configurator not working with door electronics AccessReaderComponent

Signed-off-by: c4llv07e <kseandi@gmail.com>
* Replace all string access fields with ProtoId

Signed-off-by: c4llv07e <kseandi@gmail.com>
* move access level control initialization into Populate method

Signed-off-by: c4llv07e <kseandi@gmail.com>
* Review

---------

Signed-off-by: c4llv07e <kseandi@gmail.com>
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
40 files changed:
Content.Client/Access/UI/AccessLevelControl.xaml [new file with mode: 0644]
Content.Client/Access/UI/AccessLevelControl.xaml.cs [new file with mode: 0644]
Content.Client/Access/UI/AccessOverriderBoundUserInterface.cs
Content.Client/Access/UI/AccessOverriderWindow.xaml.cs
Content.Client/Access/UI/IdCardConsoleBoundUserInterface.cs
Content.Client/Access/UI/IdCardConsoleWindow.xaml
Content.Client/Access/UI/IdCardConsoleWindow.xaml.cs
Content.Client/Doors/Electronics/DoorElectronicsBoundUserInterface.cs [new file with mode: 0644]
Content.Client/Doors/Electronics/DoorElectronicsConfigurationMenu.xaml [new file with mode: 0644]
Content.Client/Doors/Electronics/DoorElectronicsConfigurationMenu.xaml.cs [new file with mode: 0644]
Content.IntegrationTests/Tests/Access/AccessReaderTest.cs
Content.Server/Access/Systems/AccessOverriderSystem.cs
Content.Server/Access/Systems/IdCardConsoleSystem.cs
Content.Server/Administration/Systems/AdminVerbSystem.Tools.cs
Content.Server/Doors/Electronics/Systems/DoorElectronicsSystem.cs [new file with mode: 0644]
Content.Server/Sandbox/SandboxSystem.cs
Content.Server/Storage/EntitySystems/BluespaceLockerSystem.cs
Content.Server/UserInterface/ActivatableUIComponent.cs
Content.Server/UserInterface/ActivatableUISystem.cs
Content.Shared/Access/AccessGroupPrototype.cs
Content.Shared/Access/AccessLevelPrototype.cs
Content.Shared/Access/Components/AccessComponent.cs
Content.Shared/Access/Components/AccessOverriderComponent.cs
Content.Shared/Access/Components/AccessReaderComponent.cs
Content.Shared/Access/Components/IdCardConsoleComponent.cs
Content.Shared/Access/Systems/AccessReaderSystem.cs
Content.Shared/Access/Systems/SharedAccessSystem.cs
Content.Shared/Access/Systems/SharedIdCardConsoleSystem.cs
Content.Shared/Doors/Electronics/DoorElectronicsComponent.cs [new file with mode: 0644]
Content.Shared/Random/RulesPrototype.cs
Content.Shared/Roles/JobPrototype.cs
Resources/Prototypes/Entities/Objects/Devices/Electronics/door.yml
Resources/Prototypes/Entities/Objects/Devices/Electronics/door_access.yml [new file with mode: 0644]
Resources/Prototypes/Entities/Structures/Doors/Airlocks/access.yml
Resources/Prototypes/Entities/Structures/Doors/Airlocks/base_structureairlocks.yml
Resources/Prototypes/Entities/Structures/Doors/Airlocks/highsec.yml
Resources/Prototypes/Recipes/Construction/Graphs/structures/airlock.yml
Resources/Prototypes/Recipes/Construction/Graphs/structures/shutter.yml
Resources/Prototypes/Recipes/Construction/Graphs/structures/shuttle.yml
Resources/Prototypes/Recipes/Construction/Graphs/structures/windoor.yml