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 <toby@tobot.dev> Signed-off-by: Madison Rye Progress <makyo@drab-makyo.com> --------- Signed-off-by: Madison Rye Progress <makyo@drab-makyo.com> Co-authored-by: Tobias Berger <toby@tobot.dev>
This commit is contained in:
parent
abb663542c
commit
74c38c92cd
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 351 B |
Binary file not shown.
|
After Width: | Height: | Size: 355 B |
Loading…
Reference in New Issue