ctrlCommit: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...) |
||
Line 1: | Line 1: | ||
{{Command | {{Command | ||
| arma1 | | arma1 | ||
|1.00 | |1.00 | ||
|gr1= GUI Control | |gr1= GUI Control | ||
| 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 }} | ||
| control '''ctrlCommit''' time | | control '''ctrlCommit''' time | ||
|p1= control: [[Control]] - control to animate | |p1= control: [[Control]] - control to animate | ||
|p2= time: [[Number]] - animation duration | |p2= time: [[Number]] - animation duration | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>_control [[ctrlCommit]] 2; // make animation last approx. 2 seconds</code> | |x1= <code>_control [[ctrlCommit]] 2; // make animation last approx. 2 seconds</code> | ||
| [[ctrlCommitted]], [[ctrlSetPosition]], [[ctrlSetFade]] |SEEALSO=: | | [[ctrlCommitted]], [[ctrlSetPosition]], [[ctrlSetFade]] |SEEALSO=: |
Revision as of 00:29, 18 January 2021
Description
- Description:
- Commits control animation to last specified duration.
- Groups:
- GUI Control
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
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.