BIS fnc createMenu: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (template:command argument fix)
Line 32: Line 32:
  see news:g7p3po$gik$1@new-server.localdomain
  see news:g7p3po$gik$1@new-server.localdomain
*/
*/
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |DESCRIPTION=
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_createmenu]]; --> |= Syntax
| <!-- [] call [[BIS_fnc_createmenu]]; --> |SYNTAX=


|p1= |= Parameter 1
|p1= |= Parameter 1


| |= Return value
| |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 45: Line 45:
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| |SEEALSO=


}}
}}

Revision as of 12:26, 7 April 2019


Hover & click on the images for description

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
*/
(Placeholder description extracted from the function header by BIS_fnc_exportFunctionsToWiki)
Execution:
call
Groups:
Uncategorised

Syntax

Syntax:
Syntax needed
Return Value:
Return value needed

Examples

Example 1:

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

Notes

Bottom Section