Skip to content

Commit

Permalink
base prototype
Browse files Browse the repository at this point in the history
Signed-off-by: pacable <[email protected]>
  • Loading branch information
pxc1984 committed Dec 1, 2024
1 parent 30655bd commit 5f806f3
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,14 @@ ent-BaseHandheldCamera = бодикамера
ent-HandheldCamera = { ent-BaseHandheldCamera }
.desc = { ent-BaseHandheldCamera.desc }
.suffix = Камера
ent-BaseAtmosAlertsMonitor = ...
.desc = Позволяет вам в любом месте смотреть за экипажем
ent-AtmosAlertsMonitor = { ent-BaseAtmosAlertsMonitor }
.desc = { ent-BaseAtmosAlertsMonitor.desc }
.suffix = Переносной, Требует энергию
ent-AtmosAlertsMonitorEmpty = { ent-BaseAtmosAlertsMonitor }
.desc = { ent-BaseAtmosAlertsMonitor.desc }
.suffix = Переносной, Пустой
ent-AtmosAlertsMonitorUnpowered = { ent-BaseAtmosAlertsMonitor }
.desc = { ent-BaseAtmosAlertsMonitor.desc }
.suffix = Переносной, Не требует энергии
112 changes: 91 additions & 21 deletions Resources/Prototypes/_Sunrise/Entities/Objects/Devices/handheld.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,21 @@
enum.PowerDeviceVisualLayers.Powered:
True: { visible: true }
False: { visible: false }

- type: entity
id: PortableSurveillanceCameraMonitor
parent:
parent:
- BasePortableSurveillanceCameraMonitor
- BaseHandheldComputer
suffix: Handheld, Powered

- type: entity
id: PortableSurveillanceCameraMonitorEmpty
parent: PortableSurveillanceCameraMonitor
suffix: Handheld, Empty
components:
- type: Sprite
sprite: _Sunrise/Objects/Devices/portable_camera_viewer.rsi
sprite: _Sunrise/Objects/Devices/portable_camera_viewer.rsi # TODO: sprite
state: icon
layers:
- state: icon
Expand All @@ -72,7 +72,7 @@
slots:
cell_slot:
name: power-cell-slot-component-slot-name-default

- type: entity
id: PortableSurveillanceCameraMonitorUnpowered
parent: BasePortableSurveillanceCameraMonitor
Expand Down Expand Up @@ -118,10 +118,10 @@
enum.PowerDeviceVisualLayers.Powered:
True: { visible: true }
False: { visible: false }

- type: entity
id: HandheldCriminalRecordsMonitor
parent:
parent:
- BaseHandheldCriminalRecordsMonitor
- BaseHandheldComputer
suffix: HandHeld, Powered
Expand All @@ -144,12 +144,12 @@
slots:
cell_slot:
name: power-cell-slot-component-slot-name-default

- type: entity
id: HandheldCriminalRecordsMonitorUnpowered
parent: BaseHandheldCriminalRecordsMonitor
suffix: Handheld, Unpowered

# Handheld RoboAnalyzer

- type: entity
Expand Down Expand Up @@ -195,14 +195,14 @@
- type: GuideHelp
guides:
- Robotics

- type: entity
id: HandheldRoboAnalyzer
parent:
parent:
- BaseHandheldRoboAnalyzer
- BaseHandheldComputer
suffix: HandHeld, Powered

- type: entity
id: HandheldRoboAnalyzerEmpty
parent: HandheldRoboAnalyzer
Expand All @@ -221,12 +221,12 @@
slots:
cell_slot:
name: power-cell-slot-component-slot-name-default

- type: entity
id: HandheldRoboAnalyzerUnpowered
parent: BaseHandheldRoboAnalyzer
suffix: Handheld, Unpowered

# Handheld Mech Analyzer

- type: entity
Expand Down Expand Up @@ -271,14 +271,14 @@
- type: GuideHelp
guides:
- Robotics

- type: entity
id: HandheldMechAnalyzer
parent:
parent:
- BaseHandheldMechAnalyzer
- BaseHandheldComputer
suffix: HandHeld, Powered

- type: entity
id: HandheldMechAnalyzerEmpty
parent: HandheldMechAnalyzer
Expand All @@ -297,12 +297,12 @@
slots:
cell_slot:
name: power-cell-slot-component-slot-name-default

- type: entity
id: HandheldMechAnalyzerUnpowered
parent: BaseHandheldMechAnalyzer
suffix: Handheld, Unpowered

# Handheld Camera

- type: entity
Expand Down Expand Up @@ -346,8 +346,78 @@
volume: -8
maxDistance: 10
variation: 0.05

- type: entity
id: HandheldCamera
parent: BaseHandheldCamera
suffix: HandHeld
suffix: HandHeld

# Atmos alerts console

- type: entity
name: handheld atmos console
parent: BaseItem
id: BaseAtmosAlertsMonitor
description: A hand-held crew monitor displaying the status of wanted persons on station.
abstract: true
components:
- type: Sprite
sprite: _Sunrise/Objects/Devices/handheld_criminal_records_monitor.rsi
state: icon
layers:
- state: icon
- state: monitor
shader: unshaded
visible: true
map: [ "enum.PowerDeviceVisualLayers.Powered" ]
- type: AtmosAlertsComputer
- type: ActivatableUI
singleUser: true
key: enum.AtmosAlertsComputerUiKey.Key
- type: UserInterface
interfaces:
enum.AtmosAlertsComputerUiKey.Key:
type: AtmosAlertsComputerBoundUserInterface
enum.WiresUiKey.Key:
type: WiresBoundUserInterface
- type: WirelessNetworkConnection
range: 500
- type: StationLimitedNetwork
- type: Appearance
- type: GenericVisualizer
visuals:
enum.PowerCellSlotVisuals.Enabled:
enum.PowerDeviceVisualLayers.Powered:
True: { visible: true }
False: { visible: false }

- type: entity
id: AtmosAlertsMonitor
parent:
- BaseAtmosAlertsMonitor
- BaseHandheldComputer
suffix: HandHeld, Powered

- type: entity
id: AtmosAlertsMonitorEmpty
parent: AtmosAlertsMonitor
suffix: HandHeld, Empty
components:
- type: Sprite
sprite: _Sunrise/Objects/Devices/handheld_criminal_records_monitor.rsi
state: icon
layers:
- state: icon
- state: monitor
shader: unshaded
visible: false
map: [ "enum.PowerDeviceVisualLayers.Powered" ]
- type: ItemSlots
slots:
cell_slot:
name: power-cell-slot-component-slot-name-default

- type: entity
id: AtmosAlertsMonitorUnpowered
parent: BaseAtmosAlertsMonitor
suffix: Handheld, Unpowered

0 comments on commit 5f806f3

Please sign in to comment.