{"name":"addMenuItem","title":"addMenuItem","type":"command","url":"https://community.bistudio.com/wiki/addMenuItem","revid":363254,"updated":"2024-03-26T10:51:30Z","groups":["Game 2 Editor"],"status":"ok","games":{"arma2":"1.00","arma2oa":"1.50","tkoh":"1.00","arma3":"0.50"},"since":"arma2 1.00","arma3_since":"0.50","description":"Creates a new menu item. Menu can be \"file\" or \"view\",index is index,as returned from addMenu command. priority is optional and determines,where in the menu the item will reside (higher priority items first).\n\n> [!NOTE]\n> Some Old Editor Command","syntaxes":[{"syntax":"map addMenuItem [menu or index,text,command,priority]","params":[{"name":"map","type":"Control","type_expr":"Control"},{"name":"[menu or index,text,command,priority]","type":"Array","type_expr":"Array"}],"returns":{"type":"Number","type_expr":"Number"},"form":"binary","left":{"text":"map"},"right":{"text":"[menu or index,text,command,priority]"}}],"examples":[{"text":"-"}],"see_also":["Game 2 Editor"]}