Fix door electronics configurator usage (#26888)
* allow usage of network configurator for door electronics * add checks for "allowed" items (cherry picked from commit 2bcdb608a3ddd9c91a1169d3f0d2d5b31aaebc88)
This commit is contained in:
parent
d108635a30
commit
2fc5bdb50e
|
|
@ -93,6 +93,9 @@ public sealed partial class ActivatableUISystem : EntitySystem
|
|||
if (component.InHandsOnly)
|
||||
return;
|
||||
|
||||
if (component.AllowedItems != null)
|
||||
return;
|
||||
|
||||
args.Handled = InteractUI(args.User, uid, component);
|
||||
}
|
||||
|
||||
|
|
@ -104,6 +107,9 @@ public sealed partial class ActivatableUISystem : EntitySystem
|
|||
if (component.RightClickOnly)
|
||||
return;
|
||||
|
||||
if (component.AllowedItems != null)
|
||||
return;
|
||||
|
||||
args.Handled = InteractUI(args.User, uid, component);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
key: enum.DoorElectronicsConfigurationUiKey.Key
|
||||
allowedItems:
|
||||
tags:
|
||||
- Multitool
|
||||
- DoorElectronicsConfigurator
|
||||
- type: UserInterface
|
||||
interfaces:
|
||||
- key: enum.DoorElectronicsConfigurationUiKey.Key
|
||||
|
|
|
|||
|
|
@ -225,6 +225,7 @@
|
|||
- type: Tag
|
||||
tags:
|
||||
- Multitool
|
||||
- DoorElectronicsConfigurator
|
||||
- type: PhysicalComposition
|
||||
materialComposition:
|
||||
Steel: 100
|
||||
|
|
@ -266,6 +267,9 @@
|
|||
- type: ActivatableUI
|
||||
key: enum.NetworkConfiguratorUiKey.List
|
||||
inHandsOnly: true
|
||||
- type: Tag
|
||||
tags:
|
||||
- DoorElectronicsConfigurator
|
||||
- type: UserInterface
|
||||
interfaces:
|
||||
- key: enum.NetworkConfiguratorUiKey.List
|
||||
|
|
@ -349,13 +353,13 @@
|
|||
description: The rapid construction device can be used to quickly place and remove various station structures and fixtures. Requires compressed matter to function.
|
||||
components:
|
||||
- type: RCD
|
||||
availablePrototypes:
|
||||
availablePrototypes:
|
||||
- WallSolid
|
||||
- FloorSteel
|
||||
- Plating
|
||||
- Catwalk
|
||||
- Grille
|
||||
- Window
|
||||
- Window
|
||||
- WindowDirectional
|
||||
- WindowReinforcedDirectional
|
||||
- ReinforcedWindow
|
||||
|
|
@ -404,7 +408,7 @@
|
|||
- type: LimitedCharges
|
||||
charges: 0
|
||||
- type: RCD
|
||||
availablePrototypes:
|
||||
availablePrototypes:
|
||||
- WallSolid
|
||||
- FloorSteel
|
||||
- Plating
|
||||
|
|
|
|||
|
|
@ -523,6 +523,9 @@
|
|||
- type: Tag
|
||||
id: DoorElectronics
|
||||
|
||||
- type: Tag
|
||||
id: DoorElectronicsConfigurator
|
||||
|
||||
- type: Tag
|
||||
id: DrinkBottle
|
||||
|
||||
|
|
@ -1177,7 +1180,7 @@
|
|||
|
||||
- type: Tag
|
||||
id: SuitEVA
|
||||
|
||||
|
||||
- type: Tag
|
||||
id: Sunglasses
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue