Add missing WirePanel components (#16676)
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -162,6 +162,7 @@
|
||||
map: ["enum.WiresVisualLayers.MaintenancePanel"]
|
||||
- type: Appearance
|
||||
- type: WiresVisuals
|
||||
- type: WiresPanel
|
||||
- type: Wires
|
||||
BoardName: "DawInstrument"
|
||||
LayoutId: DawInstrument
|
||||
|
||||
@@ -36,6 +36,7 @@
|
||||
- type: Physics
|
||||
bodyType: KinematicController
|
||||
- type: Clickable
|
||||
- type: WiresPanel
|
||||
- type: Wires #we just want the panel
|
||||
BoardName: Mech
|
||||
LayoutId: Mech
|
||||
|
||||
@@ -69,3 +69,5 @@
|
||||
beakerSlot: !type:ContainerSlot
|
||||
- type: StaticPrice
|
||||
price: 1000
|
||||
- type: Wires
|
||||
- type: WiresPanel
|
||||
|
||||
@@ -74,6 +74,7 @@
|
||||
- type: Electrified
|
||||
enabled: false
|
||||
usesApcPower: true
|
||||
- type: WiresPanel
|
||||
- type: Wires
|
||||
BoardName: "Airlock Control"
|
||||
LayoutId: Airlock
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -84,6 +84,7 @@
|
||||
- type: Firelock
|
||||
- type: Appearance
|
||||
- type: WiresVisuals
|
||||
- type: WiresPanel
|
||||
- type: Wires
|
||||
BoardName: "Firelock Control"
|
||||
LayoutId: Firelock
|
||||
|
||||
@@ -115,6 +115,7 @@
|
||||
- type: Electrified
|
||||
enabled: false
|
||||
usesApcPower: true
|
||||
- type: WiresPanel
|
||||
- type: Wires
|
||||
BoardName: "Windoor Control"
|
||||
LayoutId: Airlock
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -50,6 +50,7 @@
|
||||
- type: Machine
|
||||
board: CryoPodMachineCircuitboard
|
||||
- type: WiresVisuals
|
||||
- type: WiresPanel
|
||||
- type: Wires
|
||||
BoardName: "Cryo pod"
|
||||
LayoutId: CryoPod
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -60,6 +60,7 @@
|
||||
True: { visible: true }
|
||||
False: { visible: false }
|
||||
# Machine / Construction stuff
|
||||
- type: WiresPanel
|
||||
- type: Wires
|
||||
BoardName: "chem_master"
|
||||
LayoutId: chem_master
|
||||
|
||||
@@ -60,6 +60,7 @@
|
||||
- type: MaterialStorage
|
||||
materialWhiteList:
|
||||
- Biomass
|
||||
- type: WiresPanel
|
||||
- type: Wires
|
||||
BoardName: "CloningPod"
|
||||
LayoutId: CloningPod
|
||||
|
||||
@@ -95,6 +95,7 @@
|
||||
acts: ["Destruction"]
|
||||
- type: Machine
|
||||
board: FatExtractorMachineCircuitboard
|
||||
- type: WiresPanel
|
||||
- type: Wires
|
||||
BoardName: FatExtractor
|
||||
LayoutId: FatExtractor
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -58,6 +58,7 @@
|
||||
acts: ["Destruction"]
|
||||
- type: Machine
|
||||
board: MaterialReclaimerMachineCircuitboard
|
||||
- type: WiresPanel
|
||||
- type: Wires
|
||||
BoardName: "reclaimer"
|
||||
LayoutId: Reclaimer
|
||||
|
||||
@@ -77,6 +77,7 @@
|
||||
acts: ["Destruction"]
|
||||
- type: Machine
|
||||
board: MedicalScannerMachineCircuitboard
|
||||
- type: WiresPanel
|
||||
- type: Wires
|
||||
BoardName: "MedicalScanner"
|
||||
LayoutId: MedicalScanner
|
||||
|
||||
@@ -48,6 +48,7 @@
|
||||
acts: ["Destruction"]
|
||||
- type: Machine
|
||||
board: TelecomServerCircuitboard
|
||||
- type: WiresPanel
|
||||
- type: Wires
|
||||
BoardName: "TelecomServer"
|
||||
LayoutId: TelecomServer
|
||||
|
||||
@@ -63,6 +63,7 @@
|
||||
type: VendingMachineBoundUserInterface
|
||||
- key: enum.WiresUiKey.Key
|
||||
type: WiresBoundUserInterface
|
||||
- type: WiresPanel
|
||||
- type: Wires
|
||||
BoardName: "Vending Machine"
|
||||
LayoutId: Vending
|
||||
|
||||
@@ -242,6 +242,7 @@
|
||||
- type: ActivatableUI
|
||||
inHandsOnly: false
|
||||
key: enum.ThermomachineUiKey.Key
|
||||
- type: WiresPanel
|
||||
- type: Wires
|
||||
BoardName: "Thermomachine"
|
||||
LayoutId: Thermomachine
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
type: ParticleAcceleratorBoundUserInterface
|
||||
- key: enum.WiresUiKey.Key
|
||||
type: WiresBoundUserInterface
|
||||
- type: WiresPanel
|
||||
- type: Wires
|
||||
BoardName: "Mk2 Particle Accelerator"
|
||||
LayoutId: ParticleAccelerator
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -90,6 +90,7 @@
|
||||
supplyRampTolerance: 1000
|
||||
supplyRampRate: 500
|
||||
- type: WallMount
|
||||
- type: WiresPanel
|
||||
- type: Wires
|
||||
BoardName: "APC"
|
||||
LayoutId: APC
|
||||
|
||||
@@ -62,6 +62,7 @@
|
||||
energy: 1.6
|
||||
color: "#c9c042"
|
||||
castShadows: false
|
||||
- type: WiresPanel
|
||||
- type: Wires
|
||||
BoardName: "SMES"
|
||||
LayoutId: SMES
|
||||
|
||||
@@ -77,6 +77,7 @@
|
||||
maxIntensity: 100
|
||||
intensitySlope: 2
|
||||
totalIntensity: 200
|
||||
- type: WiresPanel
|
||||
- type: Wires
|
||||
BoardName: "Substation"
|
||||
LayoutId: Substation
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
type: AirAlarmBoundUserInterface
|
||||
- key: enum.WiresUiKey.Key
|
||||
type: WiresBoundUserInterface
|
||||
- type: WiresPanel
|
||||
- type: Wires
|
||||
BoardName: "Air Alarm"
|
||||
LayoutId: AirAlarm
|
||||
|
||||
@@ -58,6 +58,7 @@
|
||||
interfaces:
|
||||
- key: enum.WiresUiKey.Key
|
||||
type: WiresBoundUserInterface
|
||||
- type: WiresPanel
|
||||
- type: Wires
|
||||
BoardName: "Fire Alarm"
|
||||
LayoutId: FireAlarm
|
||||
|
||||
@@ -30,6 +30,7 @@
|
||||
- type: Transform
|
||||
noRot: false
|
||||
anchored: true
|
||||
- type: WiresPanel
|
||||
- type: Wires
|
||||
BoardName: "Intercom"
|
||||
LayoutId: Intercom
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
- type: DeviceNetworkRequiresPower
|
||||
- type: Transform
|
||||
anchored: true
|
||||
- type: WiresPanel
|
||||
- type: Wires
|
||||
alwaysRandomize: true
|
||||
LayoutId: SurveillanceCamera
|
||||
|
||||
@@ -77,6 +77,7 @@
|
||||
acts: ["Destruction"]
|
||||
- type: Machine
|
||||
board: HydroponicsTrayMachineCircuitboard
|
||||
- type: WiresPanel
|
||||
- type: Wires
|
||||
BoardName: "HydroponicsTray"
|
||||
LayoutId: HydroponicsTray
|
||||
|
||||
Reference in New Issue
Block a user