From cd80ba392fbf1e274ef63cde2e32f2dc8ce6311e Mon Sep 17 00:00:00 2001 From: Vordenburg <114301317+Vordenburg@users.noreply.github.com> Date: Sun, 13 Aug 2023 03:27:02 -0400 Subject: [PATCH] Specify drawdepth layers for some objects (#18917) * Specify drawdepth layers for some objects TV, buttons, timers, levers. * Fix line placement --- .../Entities/Structures/Wallmounts/monitors_televisions.yml | 1 + .../Prototypes/Entities/Structures/Wallmounts/switch.yml | 4 ++++ Resources/Prototypes/Entities/Structures/Wallmounts/timer.yml | 2 ++ 3 files changed, 7 insertions(+) diff --git a/Resources/Prototypes/Entities/Structures/Wallmounts/monitors_televisions.yml b/Resources/Prototypes/Entities/Structures/Wallmounts/monitors_televisions.yml index 386a065212..5b8e4a32f4 100644 --- a/Resources/Prototypes/Entities/Structures/Wallmounts/monitors_televisions.yml +++ b/Resources/Prototypes/Entities/Structures/Wallmounts/monitors_televisions.yml @@ -5,6 +5,7 @@ description: Finally, some decent reception around here... components: - type: Sprite + drawdepth: SmallObjects layers: - map: ["computerLayerBody"] state: television diff --git a/Resources/Prototypes/Entities/Structures/Wallmounts/switch.yml b/Resources/Prototypes/Entities/Structures/Wallmounts/switch.yml index 012870a56e..a30c80fb22 100644 --- a/Resources/Prototypes/Entities/Structures/Wallmounts/switch.yml +++ b/Resources/Prototypes/Entities/Structures/Wallmounts/switch.yml @@ -14,6 +14,7 @@ - type: Physics canCollide: false - type: Sprite + drawdepth: SmallObjects sprite: Structures/Wallmounts/switch.rsi state: on - type: SignalSwitch @@ -50,6 +51,7 @@ - type: Physics canCollide: false - type: Sprite + drawdepth: SmallObjects sprite: Structures/Wallmounts/switch.rsi state: dead - type: UseDelay @@ -109,6 +111,7 @@ - type: Transform anchored: true - type: Sprite + drawdepth: SmallObjects sprite: Structures/Wallmounts/switch.rsi state: on - type: Rotatable @@ -133,6 +136,7 @@ - type: Clickable - type: InteractionOutline - type: Sprite + drawdepth: FloorObjects sprite: Structures/conveyor.rsi layers: - state: switch-off diff --git a/Resources/Prototypes/Entities/Structures/Wallmounts/timer.yml b/Resources/Prototypes/Entities/Structures/Wallmounts/timer.yml index f8db40cbe9..f880a85d9e 100644 --- a/Resources/Prototypes/Entities/Structures/Wallmounts/timer.yml +++ b/Resources/Prototypes/Entities/Structures/Wallmounts/timer.yml @@ -14,6 +14,7 @@ - type: Clickable - type: InteractionOutline - type: Sprite + drawdepth: SmallObjects sprite: Structures/Wallmounts/switch.rsi state: on - type: Appearance @@ -51,6 +52,7 @@ canEditLabel: true - type: TextScreenVisuals - type: Sprite + drawdepth: WallMountedItems sprite: Structures/Wallmounts/textscreen.rsi state: textscreen noRot: true