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 0000000000..14cc013a36 Binary files /dev/null and b/Resources/Textures/_L5/Actions/sneak.rsi/sneak.png differ diff --git a/Resources/Textures/_L5/Actions/sneak.rsi/stand.png b/Resources/Textures/_L5/Actions/sneak.rsi/stand.png new file mode 100644 index 0000000000..eaddaf4717 Binary files /dev/null and b/Resources/Textures/_L5/Actions/sneak.rsi/stand.png differ