progressSetPosition: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}") |
Lou Montana (talk | contribs) m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>") |
||
(19 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{RV|type=command | {{RV|type=command | ||
| arma2 | |game1= arma2 | ||
|version1= 1.00 | |||
|1. | |game2= arma2oa | ||
|version2= 1.50 | |||
| | |game3= tkoh | ||
|version3= 1.00 | |||
| | |game4= arma3 | ||
|version4= 0.50 | |||
| control | |gr1= GUI Control | ||
|descr= Sets progress position of a [[CT_PROGRESS|progress bar]]. | |||
|s1= control [[progressSetPosition]] progress | |||
|p1= control: [[Control]] - progress bar control | |p1= control: [[Control]] - progress bar control | ||
|p2= | |p2= progress: [[Number]] - 0: no progress; 1: full progress | ||
| [[Nothing]] | |r1= [[Nothing]] | ||
|x1= < | |x1= <sqf>_control progressSetPosition 0.5;</sqf> | ||
|x2= < | |x2= <sqf> | ||
bar = | with uiNamespace do { | ||
bar | bar = findDisplay 46 ctrlCreate ["RscProgress", -1]; | ||
bar | bar ctrlSetPosition [0,0,1,0.01]; | ||
bar | bar ctrlCommit 0; | ||
};</ | bar progressSetPosition 0.75; | ||
}; | |||
</sqf> | |||
|seealso= [[progressPosition]] | |seealso= [[progressPosition]] [[ctrlSetScrollValues]] [[sliderSetPosition]] | ||
}} | }} | ||
Latest revision as of 11:34, 3 September 2024
Description
- Description:
- Sets progress position of a progress bar.
- Groups:
- GUI Control
Syntax
- Syntax:
- control progressSetPosition progress
- Parameters:
- control: Control - progress bar control
- progress: 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