progressSetPosition: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma2 |Game name= | | arma2 |Game name= | ||
Line 7: | Line 6: | ||
|gr1 = GUI Control |GROUP1= | |gr1 = GUI Control |GROUP1= | ||
| Sets progress position of a progress bar ([[CT_PROGRESS]]). |DESCRIPTION= | | Sets progress position of a progress bar ([[CT_PROGRESS]]). |DESCRIPTION= | ||
| control '''progressSetPosition''' pos |SYNTAX= | | control '''progressSetPosition''' pos |SYNTAX= | ||
Line 30: | Line 27: | ||
bar [[progressSetPosition]] 0.75; | bar [[progressSetPosition]] 0.75; | ||
};</code> |EXAMPLE2= | };</code> |EXAMPLE2= | ||
| [[progressPosition]], [[ctrlSetScrollValues]], [[sliderSetPosition]] |SEEALSO= | | [[progressPosition]], [[ctrlSetScrollValues]], [[sliderSetPosition]] |SEEALSO= | ||
| |MPBEHAVIOUR= | | |MPBEHAVIOUR= | ||
}} | }} | ||
Revision as of 02:16, 17 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