DCS singleton missionCommands

From DCS World Wiki - Hoggitworld.com
Revision as of 00:12, 12 April 2018 by Grimes (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Singleton: missionCommands Added with: 1.2.0
Description: The missionCommands singleton allows for greater access and flexibility of use for the F10 Other radio menu. Added commands can contain sub-menus and directly call lua functions.
Functions: addCommand, addSubMenu, removeItem, addCommandForCoalition, addSubMenuForCoalition, removeItemForCoalition, addCommandForGroup, addSubMenuForGroup, removeItemForGroup
Enumerators and Other Data: Functions that add commands and submenus return a "path" table. This table is indexed numerically and shows where in the F10 menu a command resides.
 {
   [1] = "Command in Root",
 }
 {
   [1] = "SubMenuInRoot", 
   [2] = "Command in the submenu",
 }
 { 
   [1] = "SubMenuInRoot", 
   [2] = "SubMenuInRootSubMenu", 
   [3] = "Command in nested submenu",
 }
Notes: