Add missing WirePanel components (#16676)

This commit is contained in:
Leon Friedrich
2023-05-22 15:45:36 +12:00
committed by GitHub
parent 69e5fb53ec
commit 7a35b1f08e
30 changed files with 43 additions and 12 deletions

View File

@@ -237,10 +237,7 @@ public sealed class WiresSystem : SharedWiresSystem
private void OnWiresStartup(EntityUid uid, WiresComponent component, ComponentStartup args)
{
if (!String.IsNullOrEmpty(component.LayoutId))
SetOrCreateWireLayout(uid, component);
UpdateUserInterface(uid);
EnsureComp<WiresPanelComponent>(uid);
}
#endregion
@@ -498,17 +495,16 @@ public sealed class WiresSystem : SharedWiresSystem
private void OnMapInit(EntityUid uid, WiresComponent component, MapInitEvent args)
{
EnsureComp<WiresPanelComponent>(uid);
if (!string.IsNullOrEmpty(component.LayoutId))
SetOrCreateWireLayout(uid, component);
if (component.SerialNumber == null)
{
GenerateSerialNumber(uid, component);
}
if (component.WireSeed == 0)
{
component.WireSeed = _random.Next(1, int.MaxValue);
UpdateUserInterface(uid);
}
UpdateUserInterface(uid);
}
#endregion

View File

@@ -162,6 +162,7 @@
map: ["enum.WiresVisualLayers.MaintenancePanel"]
- type: Appearance
- type: WiresVisuals
- type: WiresPanel
- type: Wires
BoardName: "DawInstrument"
LayoutId: DawInstrument

View File

@@ -36,6 +36,7 @@
- type: Physics
bodyType: KinematicController
- type: Clickable
- type: WiresPanel
- type: Wires #we just want the panel
BoardName: Mech
LayoutId: Mech

View File

@@ -69,3 +69,5 @@
beakerSlot: !type:ContainerSlot
- type: StaticPrice
price: 1000
- type: Wires
- type: WiresPanel

View File

@@ -74,6 +74,7 @@
- type: Electrified
enabled: false
usesApcPower: true
- type: WiresPanel
- type: Wires
BoardName: "Airlock Control"
LayoutId: Airlock

View File

@@ -3,6 +3,8 @@
parent: BaseStructure
name: high security door
description: Keeps the bad out and keeps the good in.
placement:
mode: SnapgridCenter
components:
- type: InteractionOutline
- type: Sprite
@@ -65,6 +67,7 @@
- type: Electrified
enabled: false
usesApcPower: true
- type: WiresPanel
- type: Wires
BoardName: "HighSec Control"
LayoutId: HighSec
@@ -90,5 +93,3 @@
- type: IconSmooth
key: walls
mode: NoSprite
placement:
mode: SnapgridCenter

View File

@@ -84,6 +84,7 @@
- type: Firelock
- type: Appearance
- type: WiresVisuals
- type: WiresPanel
- type: Wires
BoardName: "Firelock Control"
LayoutId: Firelock

View File

@@ -115,6 +115,7 @@
- type: Electrified
enabled: false
usesApcPower: true
- type: WiresPanel
- type: Wires
BoardName: "Windoor Control"
LayoutId: Airlock

View File

@@ -35,6 +35,7 @@
components:
- type: SpaceVillainArcade
rewardAmount: 0
- type: WiresPanel
- type: Wires
LayoutId: Arcade
BoardName: "Arcade"
@@ -76,6 +77,7 @@
- type: ActivatableUI
key: enum.BlockGameUiKey.Key
- type: ActivatableUIRequiresPower
- type: WiresPanel
- type: Wires
LayoutId: Arcade
BoardName: "Arcade"

View File

@@ -50,6 +50,7 @@
- type: Machine
board: CryoPodMachineCircuitboard
- type: WiresVisuals
- type: WiresPanel
- type: Wires
BoardName: "Cryo pod"
LayoutId: CryoPod

View File

@@ -36,6 +36,7 @@
energy: 2
color: "#fca3c0"
- type: Appearance
- type: WiresPanel
- type: Wires
BoardName: "Vessel"
LayoutId: Vessel
@@ -167,6 +168,7 @@
soundGunshot:
path: /Audio/Weapons/Guns/Gunshots/taser2.ogg
- type: Appearance
- type: WiresPanel
- type: WiresVisuals
- type: Wires
BoardName: "Ape"
@@ -244,6 +246,7 @@
- type: Repairable
fuelCost: 10
doAfterDelay: 5
- type: WiresPanel
- type: Wires
BoardName: "AnomalyGenerator"
LayoutId: AnomalyGenerator

View File

@@ -60,6 +60,7 @@
True: { visible: true }
False: { visible: false }
# Machine / Construction stuff
- type: WiresPanel
- type: Wires
BoardName: "chem_master"
LayoutId: chem_master

View File

@@ -60,6 +60,7 @@
- type: MaterialStorage
materialWhiteList:
- Biomass
- type: WiresPanel
- type: Wires
BoardName: "CloningPod"
LayoutId: CloningPod

View File

@@ -95,6 +95,7 @@
acts: ["Destruction"]
- type: Machine
board: FatExtractorMachineCircuitboard
- type: WiresPanel
- type: Wires
BoardName: FatExtractor
LayoutId: FatExtractor

View File

@@ -51,6 +51,7 @@
- Sheet
- RawMaterial
- Ingot
- type: WiresPanel
- type: Wires
BoardName: "Autolathe"
LayoutId: Autolathe
@@ -158,6 +159,7 @@
acts: ["Destruction"]
- type: Machine
board: ProtolatheMachineCircuitboard
- type: WiresPanel
- type: Wires
BoardName: "Protolathe"
LayoutId: Protolathe

View File

@@ -58,6 +58,7 @@
acts: ["Destruction"]
- type: Machine
board: MaterialReclaimerMachineCircuitboard
- type: WiresPanel
- type: Wires
BoardName: "reclaimer"
LayoutId: Reclaimer

View File

@@ -77,6 +77,7 @@
acts: ["Destruction"]
- type: Machine
board: MedicalScannerMachineCircuitboard
- type: WiresPanel
- type: Wires
BoardName: "MedicalScanner"
LayoutId: MedicalScanner

View File

@@ -48,6 +48,7 @@
acts: ["Destruction"]
- type: Machine
board: TelecomServerCircuitboard
- type: WiresPanel
- type: Wires
BoardName: "TelecomServer"
LayoutId: TelecomServer

View File

@@ -63,6 +63,7 @@
type: VendingMachineBoundUserInterface
- key: enum.WiresUiKey.Key
type: WiresBoundUserInterface
- type: WiresPanel
- type: Wires
BoardName: "Vending Machine"
LayoutId: Vending

View File

@@ -242,6 +242,7 @@
- type: ActivatableUI
inHandsOnly: false
key: enum.ThermomachineUiKey.Key
- type: WiresPanel
- type: Wires
BoardName: "Thermomachine"
LayoutId: Thermomachine

View File

@@ -32,6 +32,7 @@
type: ParticleAcceleratorBoundUserInterface
- key: enum.WiresUiKey.Key
type: WiresBoundUserInterface
- type: WiresPanel
- type: Wires
BoardName: "Mk2 Particle Accelerator"
LayoutId: ParticleAccelerator

View File

@@ -180,6 +180,7 @@
- type: Sprite
sprite: Structures/Power/Generation/portable_generator.rsi
state: portgen0_1
- type: WiresPanel
- type: Wires
BoardName: "GeneratorPlasma"
LayoutId: GeneratorPlasma
@@ -199,6 +200,7 @@
- type: Sprite
sprite: Structures/Power/Generation/portable_generator.rsi
state: portgen1_1
- type: WiresPanel
- type: Wires
BoardName: "GeneratorUranium"
LayoutId: GeneratorUranium

View File

@@ -90,6 +90,7 @@
supplyRampTolerance: 1000
supplyRampRate: 500
- type: WallMount
- type: WiresPanel
- type: Wires
BoardName: "APC"
LayoutId: APC

View File

@@ -62,6 +62,7 @@
energy: 1.6
color: "#c9c042"
castShadows: false
- type: WiresPanel
- type: Wires
BoardName: "SMES"
LayoutId: SMES

View File

@@ -77,6 +77,7 @@
maxIntensity: 100
intensitySlope: 2
totalIntensity: 200
- type: WiresPanel
- type: Wires
BoardName: "Substation"
LayoutId: Substation

View File

@@ -45,6 +45,7 @@
type: AirAlarmBoundUserInterface
- key: enum.WiresUiKey.Key
type: WiresBoundUserInterface
- type: WiresPanel
- type: Wires
BoardName: "Air Alarm"
LayoutId: AirAlarm

View File

@@ -58,6 +58,7 @@
interfaces:
- key: enum.WiresUiKey.Key
type: WiresBoundUserInterface
- type: WiresPanel
- type: Wires
BoardName: "Fire Alarm"
LayoutId: FireAlarm

View File

@@ -30,6 +30,7 @@
- type: Transform
noRot: false
anchored: true
- type: WiresPanel
- type: Wires
BoardName: "Intercom"
LayoutId: Intercom

View File

@@ -20,6 +20,7 @@
- type: DeviceNetworkRequiresPower
- type: Transform
anchored: true
- type: WiresPanel
- type: Wires
alwaysRandomize: true
LayoutId: SurveillanceCamera

View File

@@ -77,6 +77,7 @@
acts: ["Destruction"]
- type: Machine
board: HydroponicsTrayMachineCircuitboard
- type: WiresPanel
- type: Wires
BoardName: "HydroponicsTray"
LayoutId: HydroponicsTray