Module Menu
Encapsulation of DCS World Menu system in a set of MENU classes.
Global(s)
| COMMANDMENU | |
| MENU | |
| MENU_CLIENT | |
| MENU_CLIENT_COMMAND | |
| MENU_COALITION | |
| MENU_COALITION_COMMAND | |
| SUBMENU |
Type COMMANDMENU
| COMMANDMENU.ClassName | |
| COMMANDMENU.CommandMenuArgument | |
| COMMANDMENU.CommandMenuFunction | |
| COMMANDMENU:New(MenuText, ParentMenu, CommandMenuFunction, CommandMenuArgument) |
Type MENU
| MENU.ClassName | |
| MENU.MenuParentPath | |
| MENU.MenuPath | |
| MENU.MenuText | |
| MENU:New(MenuText, MenuParentPath) |
Type MENU_CLIENT
| MENU_CLIENT.ClassName | |
| MENU_CLIENT:New(MenuClient, MenuText, ParentMenu) |
Creates a new menu item for a group |
| MENU_CLIENT:Remove() |
Removes the sub menus recursively of this MENU_CLIENT. |
| MENU_CLIENT:RemoveSubMenus() |
Removes the sub menus recursively of this MENU_CLIENT. |
Type MENU_CLIENT_COMMAND
| MENU_CLIENT_COMMAND.ClassName | |
| MENU_CLIENT_COMMAND:New(MenuClient, MenuText, ParentMenu, CommandMenuFunction, CommandMenuArgument) |
Creates a new radio command item for a group |
| MENU_CLIENT_COMMAND:Remove() |
Type MENU_COALITION
| MENU_COALITION.ClassName | |
| MENU_COALITION:New(MenuCoalition, MenuText, ParentMenu) |
Creates a new coalition menu item |
| MENU_COALITION:Remove() |
Removes the sub menus recursively of this MENU_COALITION. |
| MENU_COALITION:RemoveSubMenus() |
Removes the sub menus recursively of this MENU_COALITION. |
Type MENU_COALITION_COMMAND
| MENU_COALITION_COMMAND.ClassName | |
| MENU_COALITION_COMMAND:New(MenuCoalition, MenuText, ParentMenu, CommandMenuFunction, CommandMenuArgument) |
Creates a new radio command item for a group |
| MENU_COALITION_COMMAND:Remove() |
Removes a radio command item for a coalition |
Type SUBMENU
| SUBMENU.ClassName | |
| SUBMENU:New(MenuText, ParentMenu) |
Global(s)
Type Menu
Type COMMANDMENU
The COMMANDMENU class
Field(s)
- #string COMMANDMENU.ClassName
- COMMANDMENU:New(MenuText, ParentMenu, CommandMenuFunction, CommandMenuArgument)
-
Parameters
-
MenuText: -
ParentMenu: -
CommandMenuFunction: -
CommandMenuArgument:
-
Type MENU
The MENU class
Field(s)
- #string MENU.ClassName
- #string MENU.MenuText
- MENU:New(MenuText, MenuParentPath)
-
Parameters
-
MenuText: -
MenuParentPath:
-
Type MENU_CLIENT
The MENU_CLIENT class
Field(s)
- #string MENU_CLIENT.ClassName
- MENU_CLIENT:New(MenuClient, MenuText, ParentMenu)
-
Creates a new menu item for a group
Parameters
-
Client#CLIENT MenuClient: The Client owning the menu. -
#string MenuText: The text for the menu. -
#table ParentMenu: The parent menu.
Return value
#MENU_CLIENT: self
-
- MENU_CLIENT:Remove()
-
Removes the sub menus recursively of this MENU_CLIENT.
Return value
#MENU_CLIENT: self
- MENU_CLIENT:RemoveSubMenus()
-
Removes the sub menus recursively of this MENU_CLIENT.
Return value
#MENU_CLIENT: self
Type MENU_CLIENT_COMMAND
The MENUCLIENTCOMMAND class
Field(s)
- #string MENU_CLIENT_COMMAND.ClassName
- MENU_CLIENT_COMMAND:New(MenuClient, MenuText, ParentMenu, CommandMenuFunction, CommandMenuArgument)
-
Creates a new radio command item for a group
Parameters
-
Client#CLIENT MenuClient: The Client owning the menu. -
MenuText: The text for the menu. -
ParentMenu: The parent menu. -
CommandMenuFunction: A function that is called when the menu key is pressed. -
CommandMenuArgument: An argument for the function.
Return value
Menu#MENUCLIENTCOMMAND: self
-
Type MENU_COALITION
The MENU_COALITION class
Field(s)
- #string MENU_COALITION.ClassName
- MENU_COALITION:New(MenuCoalition, MenuText, ParentMenu)
-
Creates a new coalition menu item
Parameters
-
DCSCoalition#coalition.side MenuCoalition: The coalition owning the menu. -
#string MenuText: The text for the menu. -
#table ParentMenu: The parent menu.
Return value
#MENU_COALITION: self
-
- MENU_COALITION:Remove()
-
Removes the sub menus recursively of this MENU_COALITION.
Return value
#MENU_COALITION: self
- MENU_COALITION:RemoveSubMenus()
-
Removes the sub menus recursively of this MENU_COALITION.
Return value
#MENU_COALITION: self
Type MENU_COALITION_COMMAND
The MENUCOALITIONCOMMAND class
Field(s)
- #string MENU_COALITION_COMMAND.ClassName
- MENU_COALITION_COMMAND:New(MenuCoalition, MenuText, ParentMenu, CommandMenuFunction, CommandMenuArgument)
-
Creates a new radio command item for a group
Parameters
-
DCSCoalition#coalition.side MenuCoalition: The coalition owning the menu. -
MenuText: The text for the menu. -
ParentMenu: The parent menu. -
CommandMenuFunction: A function that is called when the menu key is pressed. -
CommandMenuArgument: An argument for the function.
Return value
#MENUCOALITIONCOMMAND: self
-
- MENU_COALITION_COMMAND:Remove()
-
Removes a radio command item for a coalition
Return value
#MENUCOALITIONCOMMAND: self
Type SUBMENU
The SUBMENU class
Field(s)
- #string SUBMENU.ClassName
- SUBMENU:New(MenuText, ParentMenu)
-
Parameters
-
MenuText: -
ParentMenu:
-