progressSetPosition: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " 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 | ||
| arma2 | | arma2 | ||
|1.00 | |1.00 | ||
|gr1 = GUI Control | |gr1 = GUI Control | ||
| Sets progress position of a progress bar ([[CT_PROGRESS]]). | | Sets progress position of a progress bar ([[CT_PROGRESS]]). | ||
| control '''progressSetPosition''' pos | | control '''progressSetPosition''' pos | ||
|p1= control: [[Control]] - progress bar control | |p1= control: [[Control]] - progress bar control | ||
|p2= pos: [[Number]] - 0: no progress; 1: full progress | |p2= pos: [[Number]] - 0: no progress; 1: full progress | ||
| [[Nothing]] | | [[Nothing]] | ||
|x1= <code>_control [[progressSetPosition]] 0.5</code> | |x1= <code>_control [[progressSetPosition]] 0.5</code> | ||
|x2= <code>[[with]] [[uiNamespace]] [[do]] { | |x2= <code>[[with]] [[uiNamespace]] [[do]] { | ||
Line 26: | Line 26: | ||
bar [[ctrlCommit]] 0; | bar [[ctrlCommit]] 0; | ||
bar [[progressSetPosition]] 0.75; | bar [[progressSetPosition]] 0.75; | ||
};</code> | };</code> | ||
| [[progressPosition]], [[ctrlSetScrollValues]], [[sliderSetPosition]] | | [[progressPosition]], [[ctrlSetScrollValues]], [[sliderSetPosition]] | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= |
Revision as of 01:11, 18 January 2021
Description
- Description:
- Sets progress position of a progress bar (CT_PROGRESS).
- Groups:
- GUI Control
Syntax
- Syntax:
- control progressSetPosition pos
- Parameters:
- control: Control - progress bar control
- pos: Number - 0: no progress; 1: full progress
- Return Value:
- Nothing
Examples
- Example 1:
_control progressSetPosition 0.5
- Example 2:
with uiNamespace do { bar = findDisplay 46 ctrlCreate ["RscProgress", -1]; bar ctrlSetPosition [0,0,1,0.01]; bar ctrlCommit 0; bar progressSetPosition 0.75; };
Additional Information
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