diff --git a/Resources/Prototypes/Entities/Clothing/Eyes/glasses.yml b/Resources/Prototypes/Entities/Clothing/Eyes/glasses.yml index 44df034ee9d32f..64e23e851a94aa 100644 --- a/Resources/Prototypes/Entities/Clothing/Eyes/glasses.yml +++ b/Resources/Prototypes/Entities/Clothing/Eyes/glasses.yml @@ -244,3 +244,41 @@ - type: Clothing sprite: Clothing/Eyes/Glasses/ninjavisor.rsi - type: FlashImmunity + +- type: entity + parent: [ClothingEyesBase, BaseToggleClothing] + id: ClothingEyesVisorCamera + name: camera visor + description: Advanced glasses are designed to look like through cameras. Useful for working with Station AI. + components: + - type: Sprite + sprite: Clothing/Eyes/Glasses/camera.rsi + layers: + - state: icon + map: [ "enum.ToggleVisuals.Layer" ] + - type: Clothing + sprite: Clothing/Eyes/Glasses/camera.rsi + - type: IdentityBlocker + coverage: EYES + - type: ToggleClothing + action: ActionToggleVisorCamera + disableOnUnequip: true + - type: ComponentToggler + parent: true + components: + - type: StationAiOverlay + - type: Appearance + - type: GenericVisualizer + visuals: + enum.ToggleVisuals.Toggled: + enum.ToggleVisuals.Layer: + True: {state: icon-on} + False: {state: icon} + +- type: entity + id: ActionToggleVisorCamera + name: Toggle camera visor + description: Toggles the camera visor on and off. + components: + - type: InstantAction + event: !type:ToggleActionEvent diff --git a/Resources/Prototypes/Entities/Structures/Machines/lathe.yml b/Resources/Prototypes/Entities/Structures/Machines/lathe.yml index 91ac7b049a4ad5..317fae14907439 100644 --- a/Resources/Prototypes/Entities/Structures/Machines/lathe.yml +++ b/Resources/Prototypes/Entities/Structures/Machines/lathe.yml @@ -612,6 +612,7 @@ - TorsoBorgService dynamicRecipes: - ProximitySensor + - ClothingEyesVisorCamera - BorgModuleLightReplacer - BorgModuleAdvancedCleaning - BorgModuleMining diff --git a/Resources/Prototypes/Recipes/Lathes/robotics.yml b/Resources/Prototypes/Recipes/Lathes/robotics.yml index 44a9e2f0f244eb..4fe012eda07864 100644 --- a/Resources/Prototypes/Recipes/Lathes/robotics.yml +++ b/Resources/Prototypes/Recipes/Lathes/robotics.yml @@ -17,6 +17,15 @@ Plastic: 200 Steel: 100 +- type: latheRecipe + id: ClothingEyesVisorCamera + result: ClothingEyesVisorCamera + completetime: 2 + materials: + Steel: 300 + Plastic: 200 + Glass: 500 + - type: latheRecipe id: CyborgEndoskeleton result: CyborgEndoskeleton diff --git a/Resources/Prototypes/Research/experimental.yml b/Resources/Prototypes/Research/experimental.yml index 34443e78f00c6e..6da326d572cbcf 100644 --- a/Resources/Prototypes/Research/experimental.yml +++ b/Resources/Prototypes/Research/experimental.yml @@ -12,6 +12,7 @@ recipeUnlocks: - ProximitySensor - ExosuitFabricatorMachineCircuitboard + - ClothingEyesVisorCamera - type: technology id: BasicAnomalousResearch diff --git a/Resources/Textures/Clothing/Eyes/Glasses/camera.rsi/equipped-EYES.png b/Resources/Textures/Clothing/Eyes/Glasses/camera.rsi/equipped-EYES.png new file mode 100644 index 00000000000000..3d2404ce61fca8 Binary files /dev/null and b/Resources/Textures/Clothing/Eyes/Glasses/camera.rsi/equipped-EYES.png differ diff --git a/Resources/Textures/Clothing/Eyes/Glasses/camera.rsi/icon-on.png b/Resources/Textures/Clothing/Eyes/Glasses/camera.rsi/icon-on.png new file mode 100644 index 00000000000000..79b83021df37a4 Binary files /dev/null and b/Resources/Textures/Clothing/Eyes/Glasses/camera.rsi/icon-on.png differ diff --git a/Resources/Textures/Clothing/Eyes/Glasses/camera.rsi/icon.png b/Resources/Textures/Clothing/Eyes/Glasses/camera.rsi/icon.png new file mode 100644 index 00000000000000..142f2059f6589b Binary files /dev/null and b/Resources/Textures/Clothing/Eyes/Glasses/camera.rsi/icon.png differ diff --git a/Resources/Textures/Clothing/Eyes/Glasses/camera.rsi/inhand-left.png b/Resources/Textures/Clothing/Eyes/Glasses/camera.rsi/inhand-left.png new file mode 100644 index 00000000000000..8b3128174a309c Binary files /dev/null and b/Resources/Textures/Clothing/Eyes/Glasses/camera.rsi/inhand-left.png differ diff --git a/Resources/Textures/Clothing/Eyes/Glasses/camera.rsi/inhand-right.png b/Resources/Textures/Clothing/Eyes/Glasses/camera.rsi/inhand-right.png new file mode 100644 index 00000000000000..67691f48c33e94 Binary files /dev/null and b/Resources/Textures/Clothing/Eyes/Glasses/camera.rsi/inhand-right.png differ diff --git a/Resources/Textures/Clothing/Eyes/Glasses/camera.rsi/meta.json b/Resources/Textures/Clothing/Eyes/Glasses/camera.rsi/meta.json new file mode 100644 index 00000000000000..f0bcab1a2e5335 --- /dev/null +++ b/Resources/Textures/Clothing/Eyes/Glasses/camera.rsi/meta.json @@ -0,0 +1,33 @@ +{ + "version": 1, + "license": "CC-BY-SA-3.0", + "copyright": "Taken and respite(by ArZarLordOfMango(discord)) from tgstation at commit https://github.com/tgstation/tgstation/commit/5a73e8f825ff279e82949b9329783a9e3070e2da", + "size": { + "x": 32, + "y": 32 + }, + "states": [ + { + "name": "equipped-EYES", + "directions": 4 + }, + { + "name": "on-equipped-EYES", + "directions": 4 + }, + { + "name": "icon" + }, + { + "name": "icon-on" + }, + { + "name": "inhand-left", + "directions": 4 + }, + { + "name": "inhand-right", + "directions": 4 + } + ] +} diff --git a/Resources/Textures/Clothing/Eyes/Glasses/camera.rsi/on-equipped-EYES.png b/Resources/Textures/Clothing/Eyes/Glasses/camera.rsi/on-equipped-EYES.png new file mode 100644 index 00000000000000..c69bfd9675f772 Binary files /dev/null and b/Resources/Textures/Clothing/Eyes/Glasses/camera.rsi/on-equipped-EYES.png differ