BIS fnc rscLayer: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
mNo edit summary
Line 1: Line 1:
<syntaxhighlight lang="javascript">/*
{{Function|= Comments
Author: Karel Moricky
____________________________________________________________________________________________
 
| arma3 |= Game name
 
|1.00|= Game version
____________________________________________________________________________________________
 
| <pre>/*


Description:
Description:
Line 12: Line 19:
*/
*/


private ["_name","_list","_id"];
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
_name = [_this,0,"",[""]] call bis_fnc_param;
____________________________________________________________________________________________
_list = missionnamespace getvariable ["bis_fnc_rscLayer_list",[]];
 
| <!-- [] call [[BIS_fnc_rscLayer]]; --> |= Syntax
 
|p1= |= Parameter 1
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also
 
}}


if (_name == "") then {
<h3 style="display:none">Notes</h3>
if (_fnc_scriptNameParent != _fnc_scriptName) then {
<dl class="command_description">
_name = _fnc_scriptNameParent;
<!-- Note Section BEGIN -->
};
};
if (_name == "") exitwith {"RSC Layer name cannot be empty string" call bis_fnc_error; -1};


_id = _list find _name;
<!-- Note Section END -->
_id = if (_id < 0) then {
</dl>
_id = (count _list + 2) / 2;
_list set [count _list,_name];
_list set [count _list,_id];
_id
} else {
_list select (_id + 1)
};


missionnamespace setvariable ["bis_fnc_rscLayer_list",_list];
<h3 style="display:none">Bottom Section</h3>
_id
[[Category:Function Group: GUI|{{uc:rscLayer}}]]
</syntaxhighlight>
[[Category:Functions|{{uc:rscLayer}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:rscLayer}}]]

Revision as of 16:23, 25 July 2014

Hover & click on the images for description

Description

Description:
/*

	Description:
	Register RSC layer.

	Parameter(s):
	_this select 0: STRING - layer name. Parent function name is used automatically when param is nil.

	Returns:
	NUMBER
*/

(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