Ghost toggle lighting ability (#12374)

This commit is contained in:
Francesco
2022-11-04 01:56:30 +01:00
committed by GitHub
parent 331b01b7df
commit 0aba807ac2
3 changed files with 37 additions and 1 deletions

View File

@@ -1,4 +1,7 @@
using Content.Shared.Actions;
using Content.Shared.Actions.ActionTypes;
using Content.Shared.Ghost;
using Robust.Shared.Utility;
namespace Content.Client.Ghost
{
@@ -7,5 +10,17 @@ namespace Content.Client.Ghost
public sealed class GhostComponent : SharedGhostComponent
{
public bool IsAttached { get; set; }
public InstantAction DisableLightingAction = new()
{
Icon = new SpriteSpecifier.Texture(new ResourcePath("Interface/VerbIcons/light.svg.192dpi.png")),
DisplayName = "ghost-gui-toggle-lighting-manager-name",
Description = "ghost-gui-toggle-lighting-manager-desc",
ClientExclusive = true,
CheckCanInteract = false,
Event = new DisableLightingActionEvent(),
};
}
public sealed class DisableLightingActionEvent : InstantActionEvent { };
}