-
Notifications
You must be signed in to change notification settings - Fork 4
M_WolfCurses_Window_2_AddCommand
Maxwolf edited this page Jan 2, 2016
·
1 revision
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
WolfCurses API
Created by Ron 'Maxwolf' McDowell
Send comments on this topic to [ron.mcdowell@gmail.com](mailto:ron.mcdowell%40gmail.com?Subject=WolfCurses API)- Project Overview
- Namespace List
- ArrayExtensions
- AttributeExtensions
- EnumerableExtension
- Methods
- IModule
- InputManager
- ITick
- IWindow
- Module
- Randomizer
- SceneGraph
- SimulationApp
- StringExtensions
- TypeExtensions
- Window(TCommands, TData)
- WindowData
- WindowFactory
- WindowManager
- Control Namespace
- MarqueeBar
- TextProgress
- Form Namespaces
- Form Namespace
- Form(TData)
- FormFactory
- IForm Interface
- ParentWindowAttribute Class
- Form.Input Namespace
- DialogResponse Enumeration
- DialogType Enumeration
- InputForm(T) Class
- Menu Namespace
- IMenuChoice(T) Interface
- MenuChoice(T) Class