Difference between revisions of "DCS func addSubMenu"
From DCS World Wiki - Hoggitworld.com
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
|fName= addSubMenu | |fName= addSubMenu | ||
− | |vNum= 1.2. | + | |vNum= 1.2.4 |
|par1= [[DCS_singleton_missionCommands|missionCommands]] | |par1= [[DCS_singleton_missionCommands|missionCommands]] | ||
Line 46: | Line 46: | ||
local requestM = missionCommands.addSubMenu('Request Asset') | local requestM = missionCommands.addSubMenu('Request Asset') | ||
− | local rSead = missionCommands.addCommand('SEAD', requestM, doRequestFunction, {type = | + | local rSead = missionCommands.addCommand('SEAD', requestM, doRequestFunction, {type = "SEAD"}) |
− | local rCAS = missionCommands.addCommand('CAS', requestM, doRequestFunction, {type = | + | local rCAS = missionCommands.addCommand('CAS', requestM, doRequestFunction, {type = "CAS"}) |
− | local rCAP= missionCommands.addCommand('CAP', requestM, doRequestFunction, {type = | + | local rCAP= missionCommands.addCommand('CAP', requestM, doRequestFunction, {type = "CAP"}) |
An example of how to create nested submenus... | An example of how to create nested submenus... |