sliderSpeed: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Command " to "{{RV|type=command ")
m (Replaced <code> with <sqf>)
 
(21 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| ofpr
|game1= ofp
|version1= 1.85


|1.85
|game2= ofpe
|version2= 1.00
 
|game3= arma1
|version3= 1.00
 
|game4= arma2
|version4= 1.00
 
|game5= arma2oa
|version5= 1.50
 
|game6= tkoh
|version6= 1.00
 
|game7= arma3
|version7= 0.50


|gr1= GUI Control
|gr1= GUI Control


| Returns speed, as an [[Array]] [min, max] of <tt>CT_SLIDER</tt> or <tt>CT_XSLIDER</tt> with given idc of topmost user [[dialog]]
|descr= Returns slider step value for line and page movement of [[CT_SLIDER]] or [[CT_XSLIDER]].


| '''sliderSpeed''' idc
|s1= [[sliderSpeed]] idc
|p1= idc: [[Number]] of control
| [[Array]] - [min, max]


|s2= '''sliderSpeed''' control
|p1= idc: [[Number]]: Idc of the control


|p21=  control: [[Control]] |PARAMETER21=
|r1= [[Array]] in format [minSpeed, maxSpeed, step] (command returns optional param 'step' since Arma 3 v2.07.148151)
|r2= [[Array]]
 
|x1= <code>_slidespeed1 = [[sliderSpeed]] 105;</code>


| [[sliderPosition]], [[sliderRange]], [[sliderSetPosition]], [[sliderSetRange]], [[sliderSetSpeed]]
|s2= [[sliderSpeed]] control
}}
 
|p21= control: [[Control]]
 
|r2= [[Array]] in format [minSpeed, maxSpeed, step] (command returns optional param 'step' since Arma 3 v2.07.148151)


[[Category:Scripting Commands|SLIDERSPEED]]
|x1= <sqf>sliderSpeed _ctrlSlider params ["_min", "_max"];</sqf>
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
|x2= Since Arma 3 v2.07.148151:
[[Category:Scripting Commands OFP 1.96|SLIDERSPEED]]
<sqf>sliderSpeed _ctrlSlider params ["_min", "_max", "_step"];</sqf>
{{GameCategory|arma1|Scripting Commands}}


{{GameCategory|arma2|Scripting Commands}}
|seealso= [[sliderPosition]] [[sliderRange]] [[sliderSetPosition]] [[sliderSetRange]] [[sliderSetSpeed]]
{{GameCategory|arma3|Scripting Commands}}
}}
{{GameCategory|tkoh|Scripting Commands}}

Latest revision as of 16:14, 14 May 2022

Hover & click on the images for description

Description

Description:
Returns slider step value for line and page movement of CT_SLIDER or CT_XSLIDER.
Groups:
GUI Control

Syntax

Syntax:
sliderSpeed idc
Parameters:
idc: Number: Idc of the control
Return Value:
Array in format [minSpeed, maxSpeed, step] (command returns optional param 'step' since Arma 3 v2.07.148151)

Alternative Syntax

Syntax:
sliderSpeed control
Parameters:
control: Control
Return Value:
Array in format [minSpeed, maxSpeed, step] (command returns optional param 'step' since Arma 3 v2.07.148151)

Examples

Example 1:
sliderSpeed _ctrlSlider params ["_min", "_max"];
Example 2:
Since Arma 3 v2.07.148151:
sliderSpeed _ctrlSlider params ["_min", "_max", "_step"];

Additional Information

See also:
sliderPosition sliderRange sliderSetPosition sliderSetRange sliderSetSpeed

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