diff --git a/Resources/Locale/ru-RU/backmen/prototypes/Objects/devices/portable_computers.ftl b/Resources/Locale/ru-RU/backmen/prototypes/Objects/devices/portable_computers.ftl new file mode 100644 index 00000000000..1e214b0a9bd --- /dev/null +++ b/Resources/Locale/ru-RU/backmen/prototypes/Objects/devices/portable_computers.ftl @@ -0,0 +1,5 @@ +ent-HandHeldCameras = ручной монитор камер + .desc = Портативное устройство для удаленного мониторинга камер безопасности станции. +ent-HandHeldCamerasEmpty = { ent-HandHeldCameras } + .desc = { ent-HandHeldCameras.desc } + .suffix = Пустой \ No newline at end of file diff --git a/Resources/Prototypes/Roles/Jobs/Security/warden.yml b/Resources/Prototypes/Roles/Jobs/Security/warden.yml index dbc9c0a5a48..b89ba63550e 100644 --- a/Resources/Prototypes/Roles/Jobs/Security/warden.yml +++ b/Resources/Prototypes/Roles/Jobs/Security/warden.yml @@ -39,3 +39,4 @@ storage: back: - Flash + - HandHeldCameras diff --git a/Resources/Prototypes/_Backmen/Entities/Tools/portable_computers.yml b/Resources/Prototypes/_Backmen/Entities/Tools/portable_computers.yml new file mode 100644 index 00000000000..e3001828216 --- /dev/null +++ b/Resources/Prototypes/_Backmen/Entities/Tools/portable_computers.yml @@ -0,0 +1,63 @@ +- type: entity + name: handheld cameras monitor + parent: BaseHandheldComputer + id: HandHeldCameras + description: The ability to monitoring discreetly anywhere and anytime, just in your pocket. + components: + - type: Item + shape: + - 0,0,1,1 + - type: Sprite + sprite: Backmen/Objects/Tools/handheld_camera_monitor.rsi + state: off + layers: + - state: off + - state: on + visible: true + map: [ "enum.PowerDeviceVisualLayers.Powered" ] + - type: Appearance + - type: GenericVisualizer + visuals: + enum.PowerCellSlotVisuals.Enabled: + enum.PowerDeviceVisualLayers.Powered: + True: { visible: true } + False: { visible: false } + - type: PowerCellDraw + drawRate: 3 + useRate: 100 + - type: ActivatableUIRequiresPowerCell + - type: ToggleCellDraw + - type: ActivatableUI + key: enum.SurveillanceCameraMonitorUiKey.Key + inHandsOnly: true + - type: UserInterface + interfaces: + enum.SurveillanceCameraMonitorUiKey.Key: + type: SurveillanceCameraMonitorBoundUserInterface + - type: StaticPrice + price: 150 + - type: SurveillanceCameraMonitor + - type: DeviceNetwork + deviceNetId: Wired + receiveFrequencyId: SurveillanceCamera + transmitFrequencyId: SurveillanceCamera + - type: WiredNetworkConnection + +- type: entity + id: HandHeldCamerasEmpty + parent: HandHeldCameras + suffix: Empty + components: + - type: ItemSlots + slots: + cell_slot: + name: power-cell-slot-component-slot-name-default + - type: Sprite + sprite: Backmen/Objects/Tools/handheld_camera_monitor.rsi + state: icon + layers: + - state: off + - state: on + shader: unshaded + visible: false + map: [ "enum.PowerDeviceVisualLayers.Powered" ] \ No newline at end of file diff --git a/Resources/Textures/Backmen/Objects/Tools/handheld_camera_monitor.rsi/meta.json b/Resources/Textures/Backmen/Objects/Tools/handheld_camera_monitor.rsi/meta.json new file mode 100644 index 00000000000..856f837e0c1 --- /dev/null +++ b/Resources/Textures/Backmen/Objects/Tools/handheld_camera_monitor.rsi/meta.json @@ -0,0 +1,25 @@ +{ + "version": 1, + "size": { + "x": 32, + "y": 32 + }, + "license": "CC-BY-SA-3.0", + "copyright": "Taken from Frontier Station, created by Tem Armoff https://github.com/new-frontiers-14/frontier-station-14/pull/484/files", + "states": [ + { + "name": "on", + "directions": 1, + "delays": [ + [ + 0.5, + 0.5 + ] + ] + }, + { + "name": "off", + "directions": 1 + } + ] +} diff --git a/Resources/Textures/Backmen/Objects/Tools/handheld_camera_monitor.rsi/off.png b/Resources/Textures/Backmen/Objects/Tools/handheld_camera_monitor.rsi/off.png new file mode 100644 index 00000000000..d295b2f39e6 Binary files /dev/null and b/Resources/Textures/Backmen/Objects/Tools/handheld_camera_monitor.rsi/off.png differ diff --git a/Resources/Textures/Backmen/Objects/Tools/handheld_camera_monitor.rsi/on.png b/Resources/Textures/Backmen/Objects/Tools/handheld_camera_monitor.rsi/on.png new file mode 100644 index 00000000000..1783e8cdf65 Binary files /dev/null and b/Resources/Textures/Backmen/Objects/Tools/handheld_camera_monitor.rsi/on.png differ