sliderRange: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
(important)
(19 intermediate revisions by 9 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|SLIDERRANGE]]
{{Command|Comments=
[[Category:Scripting Commands OFP 1.96|SLIDERRANGE]]
____________________________________________________________________________________________
[[Category:Scripting Commands ArmA|SLIDERRANGE]]


| ofpr |Game name=


<h2 style="color:#000066">'''sliderRange ''idc'''''</h2>
|1.85|Game version=
____________________________________________________________________________________________


| Return limits, as an [[Array]] [min, max] of slider idc of topmost user [[dialog]].
<br><br>{{Important | While main syntax only supports <tt>CT_SLIDER</tt>, the alternative syntax supports both <tt>CT_SLIDER</tt> and <tt>CT_XSLIDER</tt>}} |DESCRIPTION=
____________________________________________________________________________________________


'''Operand types:'''
| '''sliderRange''' idc |SYNTAX=
|p1= idc: [[Number]] |PARAMETER1=
| [[Array]] - [min, max] |RETURNVALUE=


'''idc:''' [[Number]]
|s2= '''sliderRange''' control |SYNTAX2=


'''Type of returned value:'''
|p21= control: [[Control]] |PARAMETER1=
|r2= [[Array]] - [min, max] |RETURNVALUE=
____________________________________________________________________________________________
 
|x1= <code>_slidelimits1 = [[sliderRange]] 105;</code> |EXAMPLE1=
____________________________________________________________________________________________


[[Array]]
| [[sliderPosition]], [[sliderSetPosition]], [[sliderSetRange]], [[sliderSetSpeed]], [[sliderSpeed]] |SEEALSO=


'''Compatibility:'''
}}


Added in version '''1.79'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Return limits, as an [[Array]] '''''[min, max]''''' of slider '''idc''' of topmost user [[dialog]].
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|SLIDERRANGE]]
 
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
'''Example:'''
[[Category:Scripting Commands OFP 1.96|SLIDERRANGE]]
 
[[Category:Scripting Commands ArmA|SLIDERRANGE]]
_slidelimits1 = '''sliderRange''' 105
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 15:35, 7 October 2019

Hover & click on the images for description

Description

Description:
Return limits, as an Array [min, max] of slider idc of topmost user dialog.

While main syntax only supports CT_SLIDER, the alternative syntax supports both CT_SLIDER and CT_XSLIDER
Groups:
Uncategorised

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

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

Notes

Bottom Section