ctrlCommit: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
 
m (Text replacement - "|= Game version" to "|Game version=")
(20 intermediate revisions by 13 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|CTRLCOMMIT]]
{{Command|Comments=
[[Category:Scripting Commands ArmA|CTRLCOMMIT]]
____________________________________________________________________________________________


| arma |Game name=


<h2 style="color:#000066">'''''control'' ctrlCommit ''time'''''</h2>
|1.00|Game version=
____________________________________________________________________________________________


| Commits control animation to last specified duration. <br><br>
{{Important | The animation is not guaranteed to last given duration exactly, it could be shorter it could be longer, it depends on how busy is the rest of the system }}|DESCRIPTION=
____________________________________________________________________________________________


'''Operand types:'''
| control '''ctrlCommit''' time |SYNTAX=


'''control:''' [[Control]]
|p1=  control: [[Control]] - control to animate |PARAMETER1=


'''time:''' [[Number]]
|p2= time: [[Number]] - animation duration |PARAMETER2=


'''Type of returned value:'''
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
 
|x1= <code>_control [[ctrlCommit]] 2; // make animation last approx. 2 seconds</code>|EXAMPLE1=
____________________________________________________________________________________________


[[Nothing]]
| [[ctrlCommitted]], [[ctrlSetPosition]], [[ctrlSetFade]]  |SEEALSO=:


'''Compatibility:'''
}}


Version 2.50 required.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Commit control animation.
<h3 style="display:none">Bottom Section</h3>


'''Example''':
[[Category:Scripting Commands|CTRLCOMMIT]]
[[Category:Scripting Commands ArmA|CTRLCOMMIT]]
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]


_control '''ctrlCommit''' 2
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on April 11, 2015 - 23:06 (UTC)</dd>
<dt class="note">[[User:IT07|IT07]]</dt>
<dd class="note">
Use this command if you want to for example change the position or size of a control.
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Revision as of 04:15, 31 August 2019

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

Description

Description:
Commits control animation to last specified duration.

The animation is not guaranteed to last given duration exactly, it could be shorter it could be longer, it depends on how busy is the rest of the system
Groups:
Uncategorised

Syntax

Syntax:
control ctrlCommit time
Parameters:
control: Control - control to animate
time: Number - animation duration
Return Value:
Nothing

Examples

Example 1:
_control ctrlCommit 2; // make animation last approx. 2 seconds

Additional Information

See also:
ctrlCommittedctrlSetPositionctrlSetFade

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

Posted on April 11, 2015 - 23:06 (UTC)
IT07
Use this command if you want to for example change the position or size of a control.