Arma 3 Scripting

Command in GUI Control - Menu

menuAdd

Also available as Markdown and JSON, or read the original wiki page.

Description

Adds new submenu entry into item on given path.

Syntax

Syntax 1

menuAdd [idc, path, text]

Parameters:

Returns: Number

Syntax 2

control menuAdd [path, text]

Parameters:

Returns: Number - index of the item

Examples

Example 1

findDisplay 313 displayCtrl 120 menuAdd [[], "Custom Tools"]; // Add new entry at the top level to the menu strip in Eden Editor

See also

menuDelete