M_WolfCurses_Window_2_AddCommand - Maxwolf/WolfCurses GitHub Wiki
Adds a new game menu selection with description pulled from attribute on input enumeration. This override is not meant for menu selections where you want to manually specify the description of the menu item, this way it will be pulled from enum description attribute.
Namespace: WolfCurses
Assembly: WolfCurses (in WolfCurses.dll) Version: 1.0.0.0 (1.0.0.0)
C#
protected void AddCommand(
Action action,
TCommands command
)
- action
- Type: System.Action
Method that will be run when the choice is made. - command
- Type: TCommands
Associated input that will trigger the respective action in the active game Windows.
Supported in: 0.1