CT SLIDER
Topic · Markdown · JSON · original wiki page
Introduction
Important
This slider is deprecated. You might want to use CT_XSLIDER.
A slider can be used to make the user select a value in a predefined range.
Related commands & functions
- Commands: General
- Commands: UI Eventhandlers
- sliderPosition
- sliderRange
- sliderSetPosition
- sliderSetRange
- sliderSetSpeed
- sliderSpeed
- BIS_fnc_initSliderValue
Related User Interface Eventhandlers
Alphabetical Order
Note
TokenNames common to most controls, such as x, y, w, h, text, idc... can be found here.
Warning
Not all of the listed attributes might have an effect nor might the list be complete. All attributes were gathered with this config crawler.
#define CT_SLIDER 3
C
color
Type: Array
Description: Color of the slider.
color[] = {1,1,1,0.8};
colorActive
Type: Array
Description: Color when the slider is focused.
colorActive[] = {1,1,1,1};
S
sliderPosition
Type: Number
Description: Inital value the slider is set to when loaded.
sliderPosition = 42;
sliderRange
Type: Array
Description: Slider range in format {min,max}.
sliderRange[] = {0,100};
sliderStep
Type: Number
Description: Size of the steps when slider is dragged, eg if sliderStep is 1 only integers are possible for the slider value.
sliderStep = 1;
T
Title
Type: Class
Description: n/a
class Title
{
idc = -1;
colorBase[] = {1,1,1,1};
colorActive[] = {1,0.5,0,1};
};
V
Value
Type: Class
Description: n/a
class Value
{
idc = 1200;
format = "%.f";
type = "SPTPlain";
colorBase[] = {1,1,1,1};
colorActive[] = {1,0.5,0,1};
};
Default Classes
Note
Arma 3: AddOns: Classes need to be initialised first with
class SomeClass;
Missions: Since Arma 3 v2.02 one can use
import SomeClass;to initialise a class (see the import keyword).In older versions, use
"Default" call BIS_fnc_exportGUIBaseClasses;and paste the result into the description.ext.
RscExample
class RscSlider
{
deletable = 0;
fade = 0;
access = 0;
type = CT_SLIDER;
style = SL_HORZ;
color[] = {1,1,1,0.8};
colorActive[] = {1,1,1,1};
shadow = 0;
x = 0;
y = 0;
w = 0.3;
h = 0.025;
};