BIS fnc ctrlSetScale: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Generated by BIS_fnc_exportFunctionsToWiki)
 
m (Text replacement - "(\|[pr][0-9]+ *= *[^- ]*) *- *T([a-z ])" to "$1 - t$2")
 
(33 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.00


| arma3 |= Game name
|gr1= GUI


|1.00|= Game version
|descr= Scale a control while maintaining its centering.
____________________________________________________________________________________________


| <pre>/*
|s1= [control,scale,time] spawn [[BIS_fnc_ctrlSetScale]]
Description:
Scale a control while maintaining its centering
Parameters:
0: CONTROL
1: NUMBER - scale (default is 1)
2: NUMBER - commit time (default is 0)
Returns:
ARRAY - final position
*/


|p1= control: [[Control]] - the control which should be scaled


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|p2= scale: [[Number]] - (Optional, default 1) scale
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_ctrlSetScale]]; --> |= Syntax
|p3= time: [[Number]] - (Optional, default 0) commit time


|p1= |= Parameter 1
|r1= [[Array]] - final position


| |= Return value
|x1= <sqf>private _finalPos = [_ctrl, 1.5, 3] spawn BIS_fnc_ctrlSetScale;</sqf>
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[ctrlCommitted]] [[ctrlSetPosition]] [[ctrlSetFade]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: GUI|{{uc:ctrlSetScale}}]]
[[Category:Functions|{{uc:ctrlSetScale}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:ctrlSetScale}}]]

Latest revision as of 16:50, 8 November 2023

Hover & click on the images for description

Description

Description:
Scale a control while maintaining its centering.
Execution:
call
Groups:
GUI

Syntax

Syntax:
[control,scale,time] spawn BIS_fnc_ctrlSetScale
Parameters:
control: Control - the control which should be scaled
scale: Number - (Optional, default 1) scale
time: Number - (Optional, default 0) commit time
Return Value:
Array - final position

Examples

Example 1:
private _finalPos = [_ctrl, 1.5, 3] spawn BIS_fnc_ctrlSetScale;

Additional Information

See also:
ctrlCommitted ctrlSetPosition ctrlSetFade

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