Convert ghost toggle button into an action (#12658)

* Convert ghost toggle button into an action

* figs
This commit is contained in:
Kara
2022-11-18 16:30:53 -06:00
committed by GitHub
parent f12eb55153
commit c71850a53f
8 changed files with 28 additions and 14 deletions

View File

@@ -20,7 +20,19 @@ namespace Content.Client.Ghost
CheckCanInteract = false,
Event = new DisableLightingActionEvent(),
};
public InstantAction ToggleGhostsAction = new()
{
Icon = new SpriteSpecifier.Rsi(new ResourcePath("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(),
};
}
public sealed class DisableLightingActionEvent : InstantActionEvent { };
public sealed class ToggleGhostsActionEvent : InstantActionEvent { };
}