progressSetPosition: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) mNo edit summary |
m (template:command argument fix) |
||
Line 12: | Line 12: | ||
| control '''progressSetPosition''' pos |= Syntax | | control '''progressSetPosition''' pos |= Syntax | ||
|p1= control: [[Control]] - progress bar control |= | |p1= control: [[Control]] - progress bar control |PARAMETER1= | ||
|p2= pos: [[Number]] - 0: no progress; 1: full progress |= | |p2= pos: [[Number]] - 0: no progress; 1: full progress |PARAMETER2= | ||
| [[Nothing]] |= | | [[Nothing]] |RETURNVALUE= | ||
|x1= <code>_control [[progressSetPosition]] 0.5</code>|= | |x1= <code>_control [[progressSetPosition]] 0.5</code>|EXAMPLE1= | ||
|x2= <code>[[with]] [[uiNamespace]] [[do]] { | |x2= <code>[[with]] [[uiNamespace]] [[do]] { | ||
Line 27: | Line 27: | ||
bar [[ctrlCommit]] 0; | bar [[ctrlCommit]] 0; | ||
bar [[progressSetPosition]] 0.75; | bar [[progressSetPosition]] 0.75; | ||
};</code> |= | };</code> |EXAMPLE2= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[progressPosition]], [[sliderSetPosition]] |= | | [[progressPosition]], [[sliderSetPosition]] |SEEALSO= | ||
| |= | | |MPBEHAVIOUR= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
}} | }} |
Revision as of 10:36, 7 April 2019
Description
- Description:
- Sets progress position of the progress bar (DialogControls-ProgressBar)
- Groups:
- Uncategorised
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
- See also:
- progressPositionsliderSetPosition
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