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 }}")
(48 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


'''Operand types:'''
|1.85


'''idc:''' [[Number]]
|gr1= GUI Control


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


[[Array]]
| '''sliderRange''' idc
|p1= idc: [[Number]]
| [[Array]] - [min, max]


'''Compatibility:'''
|s2= '''sliderRange''' control


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


'''Description:'''
|seealso= [[sliderPosition]], [[sliderSetPosition]], [[sliderSetRange]], [[sliderSetSpeed]], [[sliderSpeed]]
}}


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}}


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

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