ctrlSetScale: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(updated)
(updated description and example, removed misleading note, works with ct_picture)
(10 intermediate revisions by 8 users not shown)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Sets wanted scale for control animation. |= Description
| Sets wanted scale for control animation. Top left corner remains same. This command requires [[ctrlCommit]].|= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| controlName '''ctrlSetScale''' scale |= Syntax
| control '''ctrlSetScale''' scale |= Syntax


|p1= controlName: [[Control]] |= Parameter 1
|p1= control: [[Control]] |= Parameter 1


|p2= scale: [[Number]] |= Parameter 2
|p2= scale: [[Number]] |= Parameter 2
Line 19: Line 19:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>_control ctrlScale 0.5</pre> |= Example 1
|x1= <code>_control [[ctrlSetScale]] 0.5;
_control [[ctrlCommit]] 0;</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


| |= See also
| [[ctrlScale]], [[ctrlModelScale]], [[ctrlSetModelScale]] |= See also


}}
}}
Line 28: Line 29:
<h3 style="display:none">Notes</h3>
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
</dl>


Line 39: Line 37:
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 17:27, 25 March 2016

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Sets wanted scale for control animation. Top left corner remains same. This command requires ctrlCommit.
Groups:
Uncategorised

Syntax

Syntax:
control ctrlSetScale scale
Parameters:
control: Control
scale: Number
Return Value:
Nothing

Examples

Example 1:
_control ctrlSetScale 0.5; _control ctrlCommit 0;

Additional Information

See also:
ctrlScalectrlModelScalectrlSetModelScale

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