Files
crystall-punk-14/Content.Client/Ghost/GhostComponent.cs

51 lines
1.8 KiB
C#
Raw Normal View History

2022-11-04 01:56:30 +01:00
using Content.Shared.Actions;
using Content.Shared.Actions.ActionTypes;
2021-06-09 22:19:39 +02:00
using Content.Shared.Ghost;
2022-11-04 01:56:30 +01:00
using Robust.Shared.Utility;
2021-06-09 22:19:39 +02:00
namespace Content.Client.Ghost
{
[RegisterComponent]
2021-10-24 15:29:38 +13:00
[ComponentReference(typeof(SharedGhostComponent))]
public sealed class GhostComponent : SharedGhostComponent
{
public bool IsAttached { get; set; }
2022-11-04 01:56:30 +01:00
public InstantAction ToggleLightingAction = new()
2022-11-04 01:56:30 +01:00
{
Icon = new SpriteSpecifier.Texture(new ("Interface/VerbIcons/light.svg.192dpi.png")),
2022-11-04 01:56:30 +01:00
DisplayName = "ghost-gui-toggle-lighting-manager-name",
Description = "ghost-gui-toggle-lighting-manager-desc",
ClientExclusive = true,
CheckCanInteract = false,
Event = new ToggleLightingActionEvent(),
};
public InstantAction ToggleFoVAction = new()
{
Icon = new SpriteSpecifier.Texture(new ("Interface/VerbIcons/vv.svg.192dpi.png")),
DisplayName = "ghost-gui-toggle-fov-name",
Description = "ghost-gui-toggle-fov-desc",
ClientExclusive = true,
CheckCanInteract = false,
Event = new ToggleFoVActionEvent(),
2022-11-04 01:56:30 +01:00
};
public InstantAction ToggleGhostsAction = new()
{
Icon = new SpriteSpecifier.Rsi(new ("Mobs/Ghosts/ghost_human.rsi"), "icon"),
DisplayName = "ghost-gui-toggle-ghost-visibility-name",
Description = "ghost-gui-toggle-ghost-visibility-desc",
ClientExclusive = true,
CheckCanInteract = false,
Event = new ToggleGhostsActionEvent(),
};
}
2022-11-04 01:56:30 +01:00
public sealed class ToggleLightingActionEvent : InstantActionEvent { };
public sealed class ToggleFoVActionEvent : InstantActionEvent { };
public sealed class ToggleGhostsActionEvent : InstantActionEvent { };
}