sliderSetRange: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:Scripting Commands OFP 1.[4-9]{2}(\|(\{\{uc:\{\{PAGENAME\}\}\}\}|#|[A-Z]+))?\]\] " to "")
m (formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| ofpr
|game1= ofp


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


|gr1= GUI Control
|gr1= GUI Control


| Sets limits of <tt>CT_SLIDER</tt> or <tt>CT_XSLIDER</tt> with given idc of topmost user [[dialog]].
|descr= Sets limits of [[CT_SLIDER]] or [[CT_XSLIDER]].
 
|s1=  '''sliderSetRange''' [idc, min, max]
 
|p2= idc: [[Number]] - Idc of the control
 
|p3= min: [[Number]] - Minimal value
 
|p4= max: [[Number]] - Maximum value


| '''sliderSetRange''' [idc, min, max]
|r1= [[Nothing]]
|p1= [idc, min, max]: [[Array]]
|p2= idc: [[Number]] of control
|p3= min: [[Number]]
|p4= max: [[Number]]
| [[Nothing]]


|s2= control '''sliderSetRange''' [min, max]
|s2= control '''sliderSetRange''' [min, max]


|p21= control: [[Control]]
|p21= control: [[Control]]
|p22= [min, max]: [[Array]]
|p23= min: [[Number]]


|p24= max: [[Number]]
|p22= min: [[Number]] - Minimal value
 
|p23= max: [[Number]] - Maximum value
 
|r2= [[Nothing]]
|r2= [[Nothing]]
   
   
Line 29: Line 57:
|seealso= [[sliderPosition]], [[sliderRange]], [[sliderSetPosition]], [[sliderSetSpeed]], [[sliderSpeed]]
|seealso= [[sliderPosition]], [[sliderRange]], [[sliderSetPosition]], [[sliderSetSpeed]], [[sliderSpeed]]
}}
}}
{{GameCategory|arma1|Scripting Commands}}
{{GameCategory|arma2|Scripting Commands}}
{{GameCategory|arma3|Scripting Commands}}
{{GameCategory|tkoh|Scripting Commands}}

Revision as of 14:57, 27 March 2021

Hover & click on the images for description

Description

Description:
Sets limits of CT_SLIDER or CT_XSLIDER.
Groups:
GUI Control

Syntax

Syntax:
sliderSetRange [idc, min, max]
Return Value:
Nothing

Alternative Syntax

Syntax:
control sliderSetRange [min, max]
Parameters:
control: Control
min: Number - Minimal value
max: Number - Maximum value
Return Value:
Nothing

Examples

Example 1:
sliderSetRange [101, 0, 100];

Additional Information

See also:
sliderPositionsliderRangesliderSetPositionsliderSetSpeedsliderSpeed

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