ctrlCommit: Difference between revisions
Jump to navigation
Jump to search
m (Bot: Reverted to revision 110719 by killzone_kid on 2018-12-02T12:46:37Z) |
m (template:command argument fix) |
||
Line 8: | Line 8: | ||
| 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 }}|= | {{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 |= | | control '''ctrlCommit''' time |SYNTAX= | ||
|p1= control: [[Control]] - control to animate |= | |p1= control: [[Control]] - control to animate |PARAMETER1= | ||
|p2= time: [[Number]] - animation duration |= | |p2= time: [[Number]] - animation duration |PARAMETER2= | ||
| [[Nothing]] |= | | [[Nothing]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>_control [[ctrlCommit]] 2; // make animation last approx. 2 seconds</code>|= | |x1= <code>_control [[ctrlCommit]] 2; // make animation last approx. 2 seconds</code>|EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[ctrlCommitted]], [[ctrlSetPosition]], [[ctrlSetFade]] |= | | [[ctrlCommitted]], [[ctrlSetPosition]], [[ctrlSetFade]] |SEEALSO=: | ||
}} | }} |
Revision as of 14:36, 7 April 2019
Description
- Description:
- Commits control animation to last specified duration.
- 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.