CT SLIDER: Difference between revisions
Killzone Kid (talk | contribs) (Redirected page to DialogControls-Sliders) |
(Page overhaul) Tag: Removed redirect |
||
Line 1: | Line 1: | ||
# | {{CT|intro | ||
|macro = CT_SLIDER | |||
|value = 3 | |||
|description = {{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.<br> | |||
[[Image:Arma RscSlider.jpg]] | |||
|commands = | |||
* [[sliderPosition]] | |||
* [[sliderRange]] | |||
* [[sliderSetPosition]] | |||
* [[sliderSetRange]] | |||
* [[sliderSetSpeed]] | |||
* [[sliderSpeed]] | |||
* [[BIS_fnc_initSliderValue]] | |||
|events = | |||
* [[User_Interface_Event_Handlers#onSliderPosChanged|onSliderPosChanged]] | |||
}} | |||
{{CT|abc start}} | |||
=== C === | |||
{{CT|attribute | |||
|name=color | |||
|type1=Array | |||
|value1={1,1,1,0.8} | |||
|description=Color of the slider. | |||
}} | |||
{{CT|attribute | |||
|name=colorActive | |||
|type1=Array | |||
|value1={1,1,1,1} | |||
|description=Color when the slider is focused. | |||
}} | |||
=== S === | |||
{{CT|attribute | |||
|name=sliderPosition | |||
|type1=Number | |||
|value1=42 | |||
|description=Inital value the slider is set to when loaded. | |||
}} | |||
{{CT|attribute | |||
|name=sliderRange | |||
|type1=Array | |||
|value1={0,100} | |||
|description=Slider range in format {min,max}. | |||
}} | |||
{{CT|attribute | |||
|name=sliderStep | |||
|type1=Number | |||
|value1=1 | |||
|description=Size of the steps when slider is dragged, eg if sliderStep is 1 only integers are possible for the slider value. | |||
}} | |||
=== T === | |||
{{CT|attribute | |||
|name=Title | |||
|type1=Class | |||
|value1=class Title | |||
{ | |||
idc = -1; | |||
colorBase[] = {1,1,1,1}; | |||
colorActive[] = {1,0.5,0,1}; | |||
}; | |||
|description= | |||
}} | |||
=== V === | |||
{{CT|attribute | |||
|name=Value | |||
|type1=Class | |||
|value1=class Value | |||
{ | |||
idc = 1200; | |||
format = "%.f"; | |||
type = "SPTPlain"; | |||
colorBase[] = {1,1,1,1}; | |||
colorActive[] = {1,0.5,0,1}; | |||
}; | |||
|description= | |||
}} | |||
{{CT|abc end}} | |||
{{CT|examples}} | |||
=== RscExample === | |||
<syntaxhighlight lang="cpp"> | |||
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; | |||
}; | |||
</syntaxhighlight> | |||
[[Category: Dialogs]] |
Revision as of 12:58, 29 November 2020
Control Types / MACRO (TYPE VALUE) | |
---|---|
Text/Image/Video |
CT_STATIC (0) | CT_EDIT (2) | CT_HTML (9) | CT_STRUCTURED_TEXT (13) |
Buttons |
CT_BUTTON (1) | CT_ACTIVETEXT (11) | CT_SHORTCUTBUTTON (16) | CT_CHECKBOX (77) | CT_XBUTTON (41) |
Lists |
CT_COMBO (4) | CT_TOOLBOX (6) | CT_CHECKBOXES (7) | CT_TREE (12) | CT_CONTROLS_TABLE (19) | CT_XCOMBO (44) | CT_LISTBOX (5) | CT_LISTNBOX (102) | CT_LISTNBOX_CHECKABLE (104) | CT_XLISTBOX (45) |
3D Objects |
CT_OBJECT (80) | CT_OBJECT_ZOOM (81) | CT_OBJECT_CONTAINER (82) | CT_OBJECT_CONT_ANIM (83) |
Maps |
CT_MAP (100) | CT_MAP_MAIN (101) |
Meta |
CT_SLIDER (3) | CT_XSLIDER (43) | CT_PROGRESS (8) | CT_CONTROLS_GROUP (15) | CT_WEBBROWSER (106) | CT_EXTENSION (107) |
Menu |
CT_CONTEXT_MENU (14) | CT_MENU (46) | CT_MENU_STRIP (47) |
Unknown |
CT_STATIC_SKEW (10) | CT_HITZONES (17) | CT_VEHICLETOGGLES (18) | CT_XKEYDESC (40) | CT_ANIMATED_TEXTURE (45) | CT_LINEBREAK (98) | CT_USER (99) | CT_ITEMSLOT (103) | CT_VEHICLE_DIRECTION (105) |
Introduction
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
#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
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;
};