menuAdd

From Bohemia Interactive Community
Revision as of 11:28, 13 May 2022 by Lou Montana (talk | contribs) (Text replacement - "<code>([^<]*)<nowiki\/?>([^<]*)<\/code>" to "<code>$1$2</code>")
Jump to navigation Jump to search

{{RV|type=command |game1= arma3 |version1= 1.56 |arg= |gr1= GUI Control - Menu

|descr= Adds new submenu entry into item on given path. |s1= menuAdd [idc, path, text]

|p1= idc: Number |p2= path: Array |p3= text: String

|r1= Number

|s2= control menuAdd [path, text]

|p21= control: Control

|p22= path: Array - Path where the items should be added

|p23= text: String - Displayed name for the entry

|r2= Number - Index of the item

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

|seealso= menuDelete }}