Difference between revisions of "sliderRange"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " {2,}\}\}" to " }}")
 
(46 intermediate revisions by 12 users not shown)
Line 1: Line 1:
back to [[Scripting_Reference#U|COMREF]]
+
{{Command
  
<h2 style="color:#000066">'''sliderRange ''idc'''''</h2>
+
| ofpr
  
'''Operand types:'''
+
|1.85
'''
 
idc:''' [[Number]]
 
  
'''Type of returned value:'''
+
|gr1= GUI Control
  
[[Array]]
+
| Returns limits, as an [[Array]] [min, max] of <tt>CT_SLIDER</tt> or <tt>CT_XSLIDER</tt> with given idc of topmost user [[dialog]].
  
'''Compatibility:'''
+
| '''sliderRange''' idc
 +
|p1= idc: [[Number]]
 +
| [[Array]] - [min, max]
  
Added in version '''1.79'''
+
|s2= '''sliderRange''' control
  
'''Description:'''
+
|p21= control: [[Control]] |PARAMETER21=
 +
|r2= [[Array]] - [min, max]
 +
 
 +
|x1= <code>_slidelimits1 = [[sliderRange]] 105;</code>
  
Return limits, as an [[Array]] '''''[min, max]''''' of slider '''idc''' of topmost user [[dialog]].
+
| [[sliderPosition]], [[sliderSetPosition]], [[sliderSetRange]], [[sliderSetSpeed]], [[sliderSpeed]]
 +
}}
  
 +
[[Category:Scripting Commands|SLIDERRANGE]]
 +
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
 +
[[Category:Scripting Commands OFP 1.96|SLIDERRANGE]]
 +
{{GameCategory|arma1|Scripting Commands}}
  
'''Example:'''
+
{{GameCategory|arma2|Scripting Commands}}
 
+
{{GameCategory|arma3|Scripting Commands}}
_slidelimits1 = '''sliderRange''' 105
+
{{GameCategory|tkoh|Scripting Commands}}

Latest revision as of 00:38, 19 January 2021

Introduced with Operation Flashpoint: Resistance version 1.851.85
Hover & click on the images for descriptions

Description

Description:
Returns limits, as an Array [min, max] of CT_SLIDER or CT_XSLIDER with given idc of topmost user dialog.

Syntax

Syntax:
sliderRange idc
Parameters:
idc: Number
Return Value:
Array - [min, max]

Alternative Syntax

Syntax:
sliderRange control
Parameters:
control: Control
Return Value:
Array - [min, max]

Examples

Example 1:
_slidelimits1 = sliderRange 105;

Additional Information

See also:
sliderPositionsliderSetPositionsliderSetRangesliderSetSpeedsliderSpeed
Groups:
GUI Control

Notes

i
Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.