menuAdd: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<code>([^ ]*)\{\{cc\|([^ ]*)\}\}([^ ]*)<\/code>" to "<code>$1// $2$3</code>")
m (Text replacement - "<code>([^<]*)<nowiki\/?>([^<]*)<\/code>" to "<code>$1$2</code>")
Line 24: Line 24:
|r2= [[Number]] - Index of the item
|r2= [[Number]] - Index of the item


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


|seealso= [[menuDelete]]
|seealso= [[menuDelete]]
}}
}}

Revision as of 11:28, 13 May 2022

{{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 }}