ctrlCommit: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Bot: Replacing category Scripting Commands Arma 3 with Arma 3: Scripting Commands)
m (Text replacement - "|= Game version" to "|Game version=")
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{Command|Comments=
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma |= Game name
| arma |Game name=


|1.00|= Game version
|1.00|Game version=
____________________________________________________________________________________________
____________________________________________________________________________________________


| Commits control animation to last specified duration. <br><br>
| 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
{{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=
____________________________________________________________________________________________
____________________________________________________________________________________________


| control '''ctrlCommit''' time |= Syntax
| control '''ctrlCommit''' time |SYNTAX=


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


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


| [[Nothing]] |= Return value
| [[Nothing]] |RETURNVALUE=
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>_control [[ctrlCommit]] 2; // make animation last approx. 2 seconds</code>|= Example 1
|x1= <code>_control [[ctrlCommit]] 2; // make animation last approx. 2 seconds</code>|EXAMPLE1=
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[ctrlCommitted]], [[ctrlSetPosition]], [[ctrlSetFade]]  |= See also:
| [[ctrlCommitted]], [[ctrlSetPosition]], [[ctrlSetFade]]  |SEEALSO=:


}}
}}
Line 35: Line 35:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[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}}}}]]
<!-- CONTINUE Notes -->
<!-- CONTINUE Notes -->
<dl class="command_description">
<dl class="command_description">
Line 44: Line 52:
</dl>
</dl>
<!-- DISCONTINUE Notes -->
<!-- DISCONTINUE Notes -->
[[Category:Scripting Commands|CTRLCOMMIT]]
[[Category:Scripting Commands ArmA|CTRLCOMMIT]]
[[Category:Command Group: GUI Control|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Arma 3: Scripting Commands]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

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.