ctrlSetScale: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (brought notes in proper format)
(updated description and example, removed misleading note, works with ct_picture)
(One intermediate revision by one other user not shown)
Line 7: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Sets wanted scale for control animation. Top left corner remains same. |= 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 [[ctrlSetScale]] 0.5</pre> |= Example 1
|x1= <code>_control [[ctrlSetScale]] 0.5;
_control [[ctrlCommit]] 0;</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


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 -->
<dd class="notedate">Posted on March 19, 2010 - 01:26 (CET)
<dt class="note">[[User:Hendo|Hendo]] <dd class="note">This command doesn't seem to work with [[Dialog_Control#Pictures|ST_PICTURE]].  A workaround is to use the [[Dialog_Control#HTML|ST_HTML]] control and embed the picture using image tags.
<!-- Note Section END -->
</dl>
</dl>



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