BIS fnc GUIgrid: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category\:Function Group\: GUI(\|\{\{[a-zA-Z0-9_:]+\}\})?\]\]" to "")
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *I([a-z ])" to "$1 - i$2")
 
(20 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function
{{RV|type=function


|game1= tkoh
|game1= tkoh
|version1= 1.00


|version1= 1.00
|game2= arma3
|version2= 0.50


|gr1 = GUI |GROUP1=
|gr1= GUI


|descr= Returns grid params and stores it into [[uiNamespace]].
|descr= Returns grid params and stores it into [[uiNamespace]].
Line 11: Line 13:
|s1= [category, grid] call [[BIS_fnc_GUIgrid]]
|s1= [category, grid] call [[BIS_fnc_GUIgrid]]


|p1= category: [[String]] - (Optional, default "GUI") Category name
|p1= category: [[String]] - (Optional, default "GUI") category name
 
|p2= grid: [[String]] - (Optional, default "GRID") Grid name


|r1= [[Array]] - In format <nowiki>[</nowiki>[x,y,w,h],gridW,gridH]
|p2= grid: [[String]] - (Optional, default "GRID") grid name


|x1= <code>[[call]] [[BIS_fnc_GUIgrid]]; //[-0.452381,0.214286,1.2,1]</code>
|r1= [[Array]] - in format [<nowiki/>[x,y,w,h],gridW,gridH]


|exec= call
|x1= <sqf>call BIS_fnc_GUIgrid; //[-0.452381,0.214286,1.2,1]</sqf>


|seealso= [[BIS_fnc_GUIgridToProfile]]
|seealso= [[BIS_fnc_GUIgridToProfile]]
}}
}}
[[Category:Functions|{{uc:GUIgrid}}]]
[[Category:{{Name|tkoh}}: Functions|{{uc:GUIgrid}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:GUIgrid}}]]

Latest revision as of 16:33, 8 November 2023

Hover & click on the images for description

Description

Description:
Returns grid params and stores it into uiNamespace.
Execution:
call
Groups:
GUI

Syntax

Syntax:
[category, grid] call BIS_fnc_GUIgrid
Parameters:
category: String - (Optional, default "GUI") category name
grid: String - (Optional, default "GRID") grid name
Return Value:
Array - in format [[x,y,w,h],gridW,gridH]

Examples

Example 1:
call BIS_fnc_GUIgrid; //[-0.452381,0.214286,1.2,1]

Additional Information

See also:
BIS_fnc_GUIgridToProfile

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