CT XSLIDER: 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_XSLIDER | |||
|value = 43 | |||
|description = *'Sliders' and 'ScrollBars' are synonymous. | |||
*Default scrollbars are vertical. Use ST_HORZ to change orientation. | |||
*Embedded child scrollbars are created by the engine as and when required for various control types. (CT_LISTBOX e.g.). The engine generates it is own idc for them. In most cases you can alter characteristics of that auto-generated scrollbar via class ScrollBar | |||
{{Important|It makes no sense to create 'independent' scrollbars without an idc.}} [[File:A3 Sliders.jpg|thumb|Left: CT_Slider Right: CT_XSLIDER|center]] | |||
|commands = | |||
* [[sliderPosition]] | |||
* [[sliderRange]] | |||
* [[sliderSetPosition]] | |||
* [[sliderSetRange]] | |||
* [[sliderSetSpeed]] | |||
* [[sliderSpeed]] | |||
|events = | |||
* [[User_Interface_Event_Handlers#onSliderPosChanged|onSliderPosChanged]] | |||
}} | |||
{{CT|abc start}} | |||
=== A === | |||
{{CT|attribute | |||
|name=arrowEmpty | |||
|type1=String | |||
|value1="\A3\ui_f\data\gui\cfg\slider\arrowEmpty_ca.paa" | |||
|description= | |||
}} | |||
{{CT|attribute | |||
|name=arrowFull | |||
|type1=String | |||
|value1="\A3\ui_f\data\gui\cfg\slider\arrowFull_ca.paa" | |||
|description= | |||
}} | |||
=== B === | |||
{{CT|attribute | |||
|name=border | |||
|type1=String | |||
|value1="\A3\ui_f\data\gui\cfg\slider\border_ca.paa" | |||
|description= | |||
}} | |||
=== C === | |||
{{CT|attribute | |||
|name=color | |||
|type1=Array | |||
|value1={1,1,1,0.6} | |||
|description= | |||
}} | |||
{{CT|attribute | |||
|name=colorActive | |||
|type1=Array | |||
|value1={1,1,1,0.6} | |||
|description= | |||
}} | |||
{{CT|attribute | |||
|name=colorDisable | |||
|type1=Array | |||
|value1={1,1,1,0.4} | |||
|description= | |||
}} | |||
=== L === | |||
{{CT|attribute | |||
|name=lineSize | |||
|type1=Number | |||
|value1=0.1 | |||
|description= | |||
}} | |||
=== S === | |||
{{CT|attribute | |||
|name=sliderPosition | |||
|type1=Number | |||
|value1=42 | |||
|description= | |||
}} | |||
{{CT|attribute | |||
|name=sliderRange | |||
|type1=Array | |||
|value1={0,1} | |||
|description= | |||
}} | |||
{{CT|attribute | |||
|name=sliderStep | |||
|type1=Number | |||
|value1=1 | |||
|description= | |||
}} | |||
=== T === | |||
{{CT|attribute | |||
|name=thumb | |||
|type1=String | |||
|value1="\a3\3DEN\Data\Controls\CtrlXSlider\thumb_ca.paa" | |||
|description= | |||
}} | |||
{{CT|abc end}} | |||
{{CT|examples}} | |||
=== RscExample === | |||
<syntaxhighlight lang="cpp"> | |||
class RscXSliderH | |||
{ | |||
deletable = 0; | |||
fade = 0; | |||
type = CT_XSLIDER ; | |||
color[] = {1,1,1,0.6}; | |||
colorActive[] = {1,1,1,1}; | |||
colorDisable[] = {1,1,1,0.4}; | |||
style = SL_HORZ + SL_TEXTURES; | |||
shadow = 0; | |||
x = 0; | |||
y = 0; | |||
h = 0.03; | |||
w = 0.4; | |||
colorDisabled[] = {1,1,1,0.2}; | |||
arrowEmpty = "\A3\ui_f\data\gui\cfg\slider\arrowEmpty_ca.paa"; | |||
arrowFull = "\A3\ui_f\data\gui\cfg\slider\arrowFull_ca.paa"; | |||
border = "\A3\ui_f\data\gui\cfg\slider\border_ca.paa"; | |||
thumb = "\A3\ui_f\data\gui\cfg\slider\thumb_ca.paa"; | |||
tooltipColorText[] = {1,1,1,1}; | |||
tooltipColorBox[] = {1,1,1,1}; | |||
tooltipColorShade[] = {0,0,0,0.65}; | |||
}; | |||
</syntaxhighlight> |
Revision as of 13:49, 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
- 'Sliders' and 'ScrollBars' are synonymous.
- Default scrollbars are vertical. Use ST_HORZ to change orientation.
- Embedded child scrollbars are created by the engine as and when required for various control types. (CT_LISTBOX e.g.). The engine generates it is own idc for them. In most cases you can alter characteristics of that auto-generated scrollbar via class ScrollBar
Related commands & functions
- Commands: General
- Commands: UI Eventhandlers
- sliderPosition
- sliderRange
- sliderSetPosition
- sliderSetRange
- sliderSetSpeed
- sliderSpeed
Related User Interface Eventhandlers
Alphabetical Order
#define CT_XSLIDER 43
A
arrowEmpty
- Type
- String
- Description
- n/a
arrowEmpty = "\A3\ui_f\data\gui\cfg\slider\arrowEmpty_ca.paa";
arrowFull
- Type
- String
- Description
- n/a
arrowFull = "\A3\ui_f\data\gui\cfg\slider\arrowFull_ca.paa";
B
border
- Type
- String
- Description
- n/a
border = "\A3\ui_f\data\gui\cfg\slider\border_ca.paa";
C
color
- Type
- Array
- Description
- n/a
color[] = {1,1,1,0.6};
colorActive
- Type
- Array
- Description
- n/a
colorActive[] = {1,1,1,0.6};
colorDisable
- Type
- Array
- Description
- n/a
colorDisable[] = {1,1,1,0.4};
L
lineSize
- Type
- Number
- Description
- n/a
lineSize = 0.1;
S
sliderPosition
- Type
- Number
- Description
- n/a
sliderPosition = 42;
sliderRange
- Type
- Array
- Description
- n/a
sliderRange[] = {0,1};
sliderStep
- Type
- Number
- Description
- n/a
sliderStep = 1;
T
thumb
- Type
- String
- Description
- n/a
thumb = "\a3\3DEN\Data\Controls\CtrlXSlider\thumb_ca.paa";
Default Classes
RscExample
class RscXSliderH
{
deletable = 0;
fade = 0;
type = CT_XSLIDER ;
color[] = {1,1,1,0.6};
colorActive[] = {1,1,1,1};
colorDisable[] = {1,1,1,0.4};
style = SL_HORZ + SL_TEXTURES;
shadow = 0;
x = 0;
y = 0;
h = 0.03;
w = 0.4;
colorDisabled[] = {1,1,1,0.2};
arrowEmpty = "\A3\ui_f\data\gui\cfg\slider\arrowEmpty_ca.paa";
arrowFull = "\A3\ui_f\data\gui\cfg\slider\arrowFull_ca.paa";
border = "\A3\ui_f\data\gui\cfg\slider\border_ca.paa";
thumb = "\A3\ui_f\data\gui\cfg\slider\thumb_ca.paa";
tooltipColorText[] = {1,1,1,1};
tooltipColorBox[] = {1,1,1,1};
tooltipColorShade[] = {0,0,0,0.65};
};