BIS fnc createMenu: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Lou Montana moved page BIS fnc createmenu to BIS fnc createMenu: Name standard) |
Lou Montana (talk | contribs) m (Text replacement - ";[ ]+ " to "; ") |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=function | {{RV|type=function | ||
| arma2 | |game1= arma2 | ||
|version1= 1.00 | |||
|1.00 | |game2= arma2oa | ||
|version2= 1.50 | |||
|game3= tkoh | |||
|version3= 1.00 | |||
|game4= arma3 | |||
|version4= 0.50 | |||
|gr1= Communication Menu | |gr1= Communication Menu | ||
| <pre> | |descr= <pre> | ||
/* | /* | ||
File: fn_createMenu.sqf | File: fn_createMenu.sqf | ||
Line 28: | Line 36: | ||
Example: | Example: | ||
c = ["first","second"]; ["Menu", "b", c, "","hint 'ahoj'"] call BIS_FNC_createmenu; showCommandingMenu "#USER:b_0" | c = ["first","second"]; ["Menu", "b", c, "","hint 'ahoj'"] call BIS_FNC_createmenu; showCommandingMenu "#USER:b_0" | ||
c = [["firstData","secondData"],["First","Second"]]; ["Menu", "b", c, "","hint (str '%1' + str '%2' + str '%3')"] call BIS_FNC_createmenu; showCommandingMenu "#USER:b_0"; | c = [["firstData","secondData"],["First","Second"]]; ["Menu", "b", c, "","hint (str '%1' + str '%2' + str '%3')"] call BIS_FNC_createmenu; showCommandingMenu "#USER:b_0"; | ||
see news:g7p3po$gik$1@new-server.localdomain | see news:g7p3po$gik$1@new-server.localdomain | ||
*/</pre> | */</pre> | ||
Line 34: | Line 42: | ||
{{Wiki|placeholder}} | {{Wiki|placeholder}} | ||
|s1= <!-- [] call [[BIS_fnc_createmenu]] | |s1= <!-- [] call [[BIS_fnc_createmenu]] --> | ||
| | |r1= | ||
|x1= | |x1= | ||
|seealso= | |||
}} | }} | ||
Revision as of 00:54, 8 August 2021
Description
- Description:
/* File: fn_createMenu.sqf Description: Create custom commanding menu (with multiple pages if necessary). Parameter(s): _this select 0 - STRING or ARRAY - Name of menu or [Name, Context sensitive] _this select 1 - STRING - Variable in which will be menu params stored (as variable_0, variable_1, ...) _this select 2 - ARRAY - Array with menu items (can be either [items] or [[items],[itemNames],[itemEnable]] if you want to set custom params (names, enable values)) _this select 3 - STRING - Name of submenu which will open when item is activated. Name of selected item is passed to string as %1 _this select 4 - STRING - Expression which is executed when item is activated. Name of selected item is passed to string as %1, ID is %2. _this select 5 - ANYTHING (Optional) - params passed to expression. Whole argument is passed as %3 _this select 6 - BOOLEAN - False to hide number shortcuts Returned value(s): True Example: c = ["first","second"]; ["Menu", "b", c, "","hint 'ahoj'"] call BIS_FNC_createmenu; showCommandingMenu "#USER:b_0" c = [["firstData","secondData"],["First","Second"]]; ["Menu", "b", c, "","hint (str '%1' + str '%2' + str '%3')"] call BIS_FNC_createmenu; showCommandingMenu "#USER:b_0"; see news:g7p3po$gik$1@new-server.localdomain */
- Execution:
- call
- Groups:
- Communication Menu
Syntax
- Syntax:
- Syntax needed
- Return Value:
- Return value needed
Examples
- Examples:
- Example needed
Additional Information
- See also:
- See also needed
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