Ghost toggle lighting ability (#12374)
This commit is contained in:
@@ -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 { };
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user