menuEnable

From Bohemia Interactive Community
Revision as of 20:39, 3 May 2024 by Lou Montana (talk | contribs) (Some wiki formatting)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Hover & click on the images for description

Description

Description:
Enables or disables menu entry on given path.
Groups:
GUI Control - Menu

Syntax 1

Syntax:
menuEnable [idc, path, enable]
Parameters:
idc: Number
path: Array
since Arma 3 logo black.png2.06
enable: Boolean - (Optional, default true) disabled if false
Return Value:
Nothing

Syntax 2

Syntax:
control menuEnable [path, enable]
Parameters:
control: Control
path: Array
since Arma 3 logo black.png2.06
enable: Boolean - (Optional, default true) disabled if false
Return Value:
Nothing

Syntax 3

Syntax:
control menuEnable path
🕖
This information is obsolete as of Arma 3 v2.06. Reason: This old syntax is kept only for backward compatibility.
Parameters:
control: Control
path: Array
Return Value:
Nothing

Examples

Example 1:
findDisplay 313 displayCtrl 120 menuEnable [0]; // old syntax, do not use
Example 2:
findDisplay 313 displayCtrl 120 menuEnable [[0, 0, 1], false]; // since Arma 3 v2.06

Additional Information

See also:
menuEnabled

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note