sliderRange: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
(47 intermediate revisions by 12 users not shown)
Line 1: Line 1:
back to [[Scripting_Reference#S|COMREF]]
{{RV|type=command


<h2 style="color:#000066">'''sliderRange ''idc'''''</h2>
| ofpr


|1.85


'''Operand types:'''
|gr1= GUI Control


'''idc:''' [[Number]]
| Returns limits, as an [[Array]] [min, max] of <tt>CT_SLIDER</tt> or <tt>CT_XSLIDER</tt> with given idc of topmost user [[dialog]].


'''Type of returned value:'''
| '''sliderRange''' idc
|p1= idc: [[Number]]
| [[Array]] - [min, max]


[[Array]]
|s2= '''sliderRange''' control


'''Compatibility:'''
|p21= control: [[Control]]
|r2= [[Array]] - [min, max]
 
|x1= <code>_slidelimits1 = [[sliderRange]] 105;</code>


Added in version '''1.79'''
|seealso= [[sliderPosition]], [[sliderSetPosition]], [[sliderSetRange]], [[sliderSetSpeed]], [[sliderSpeed]]
}}


'''Description:'''


Return limits, as an [[Array]] '''''[min, max]''''' of slider '''idc''' of topmost user [[dialog]].
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|SLIDERRANGE]]
{{GameCategory|arma1|Scripting Commands}}


 
{{GameCategory|arma2|Scripting Commands}}
'''Example:'''
{{GameCategory|arma3|Scripting Commands}}
 
{{GameCategory|tkoh|Scripting Commands}}
_slidelimits1 = '''sliderRange''' 105

Revision as of 01:09, 17 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
GUI Control

Syntax

Syntax:
Syntax needed
Parameters:
idc: Number
Return Value:
Return value needed

Alternative Syntax

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

Examples

Example 1:
_slidelimits1 = sliderRange 105;

Additional Information

See also:
sliderPositionsliderSetPositionsliderSetRangesliderSetSpeedsliderSpeed

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