From 74c38c92cde4dfd4c2e43792ddabae15fa9fd1aa Mon Sep 17 00:00:00 2001 From: Madison Rye Progress Date: Sun, 1 Feb 2026 11:39:29 -0800 Subject: [PATCH] Port sneaking status icon from Lagrange (#5308) * Make the icon for sneaking show sneaking status (#358) * Make the icon for sneaking show sneaking status * Specify sprite (cherry picked from commit dd5fa91e1e1b9f350f7dac15579430d503b2ab6b) * Update from review Co-authored-by: Tobias Berger Signed-off-by: Madison Rye Progress --------- Signed-off-by: Madison Rye Progress Co-authored-by: Tobias Berger --- .../_DV/Abilities/CrawlUnderObjectsSystem.cs | 2 ++ Resources/Prototypes/_DV/Actions/types.yml | 9 +++++++-- .../Textures/_L5/Actions/sneak.rsi/meta.json | 17 +++++++++++++++++ .../Textures/_L5/Actions/sneak.rsi/sneak.png | Bin 0 -> 351 bytes .../Textures/_L5/Actions/sneak.rsi/stand.png | Bin 0 -> 355 bytes 5 files changed, 26 insertions(+), 2 deletions(-) create mode 100644 Resources/Textures/_L5/Actions/sneak.rsi/meta.json create mode 100644 Resources/Textures/_L5/Actions/sneak.rsi/sneak.png create mode 100644 Resources/Textures/_L5/Actions/sneak.rsi/stand.png diff --git a/Content.Shared/_DV/Abilities/CrawlUnderObjectsSystem.cs b/Content.Shared/_DV/Abilities/CrawlUnderObjectsSystem.cs index fd467126a7..6503ce02c9 100644 --- a/Content.Shared/_DV/Abilities/CrawlUnderObjectsSystem.cs +++ b/Content.Shared/_DV/Abilities/CrawlUnderObjectsSystem.cs @@ -148,6 +148,8 @@ public sealed class CrawlUnderObjectsSystem : EntitySystem _moveSpeed.RefreshMovementSpeedModifiers(ent); + _actions.SetToggled(ent.Comp.ToggleHideAction, enabled); // L5 + var ev = new CrawlingUpdatedEvent(enabled, ent.Comp); RaiseLocalEvent(ent, ref ev); } diff --git a/Resources/Prototypes/_DV/Actions/types.yml b/Resources/Prototypes/_DV/Actions/types.yml index 1dc20e75f5..4f9c21fca8 100644 --- a/Resources/Prototypes/_DV/Actions/types.yml +++ b/Resources/Prototypes/_DV/Actions/types.yml @@ -35,9 +35,14 @@ - type: Action itemIconStyle: BigAction useDelay: 3 + # L5 - toggle icon icon: - sprite: Structures/Furniture/Tables/generic.rsi - state: full + sprite: _L5/Actions/sneak.rsi + state: sneak + iconOn: + sprite: _L5/Actions/sneak.rsi + state: stand + # end L5 - toggle icon - type: InstantAction event: !type:ToggleCrawlingStateEvent diff --git a/Resources/Textures/_L5/Actions/sneak.rsi/meta.json b/Resources/Textures/_L5/Actions/sneak.rsi/meta.json new file mode 100644 index 0000000000..d5dcd8c2e9 --- /dev/null +++ b/Resources/Textures/_L5/Actions/sneak.rsi/meta.json @@ -0,0 +1,17 @@ +{ + "version": 1, + "size": { + "x": 32, + "y": 32 + }, + "license": "CC-BY-SA-3.0", + "copyright": "Base sprite taken from https://github.com/discordia-space/CEV-Eris/blob/0b3ab17dbad632ddf738b63900ef8df1926bba47/icons/obj/tables.dmi modified by https://github.com/makyo", + "states": [ + { + "name": "sneak" + }, + { + "name": "stand" + } + ] +} diff --git a/Resources/Textures/_L5/Actions/sneak.rsi/sneak.png b/Resources/Textures/_L5/Actions/sneak.rsi/sneak.png new file mode 100644 index 0000000000000000000000000000000000000000..14cc013a36ef4b806a39aa3e4d7c83c03b941fcc GIT binary patch literal 351 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnE3?yBabR7dyjKx9jPK-BC>eK@{Ea{HEjtmSN z`?>!lvVv45dj$D1FjT2AFf_CF4YVzH1n4)c?z_;5_hLxoFOTgZ=IX zznt6nR!le;zsFVm()(rXA-^5YeM=NCTJX%f(?$HkqQpzBV%HfonL}9ELz?UuFFW08 gVOnu&pXN8ls20x8ALlt30-eC%>FVdQ&MBb@0QB{BeK@{Ea{HEjtmSN z`?>!lvVv45dj$D1FjT2AFf_Cm~c{}YcsaCl^8`tk6;cc~@3x=)22SDg3du#0cudnD`djN$AI#ye{b8D~}U{;1@V zU_8RWet_eFrE?tPIZb1elP?)7pXKt|vxY6?i}q){ literal 0 HcmV?d00001