CT_CHECKBOX
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) |
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 toggleable control. There are two states that can be switched between: Checked and Unchecked.
Related commands & functions
Related User Interface Eventhandlers
Alphabetical Order
#define CT_CHECKBOX 77
C
checked
- Type
- Number
- Description
- Default state of the control. Can be either 0 or 1.
checked = 0;
color
- Type
- Array
- Description
- n/a
color[] = {1,1,1,0.7};
colorBackgroundDisabled
- Type
- Array
- Description
- n/a
colorBackgroundDisabled[] = {0,0,0,0};
colorBackgroundFocused
- Type
- Array
- Description
- n/a
colorBackgroundFocused[] = {0,0,0,0};
colorBackgroundHover
- Type
- Array
- Description
- n/a
colorBackgroundHover[] = {0,0,0,0};
colorBackgroundPressed
- Type
- Array
- Description
- n/a
colorBackgroundPressed[] = {0,0,0,0};
colorFocused
- Type
- Array
- Description
- n/a
colorFocused[] = {1,1,1,1};
colorHover
- Type
- Array
- Description
- n/a
colorHover[] = {1,1,1,1};
colorPressed
- Type
- Array
- Description
- n/a
colorPressed[] = {1,1,1,1};
S
soundClick
- Type
- Array
- Description
- n/a
soundClick[] = {"",0.1,1};
soundEnter
- Type
- Array
- Description
- n/a
soundEnter[] = {"\A3\ui_f\data\sound\RscButton\soundEnter",0.09,1};
soundEscape
- Type
- Array
- Description
- n/a
soundEscape[] = {"\A3\ui_f\data\sound\RscButton\soundEscape",0.09,1};
soundPush
- Type
- Array
- Description
- n/a
soundPush[] = {"",0.1,1};
T
textureChecked
- Type
- String
- Description
- n/a
textureChecked = "A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_checked_ca.paa";
textureDisabledChecked
- Type
- String
- Description
- n/a
textureDisabledChecked = "A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_checked_ca.paa";
textureDisabledUnchecked
- Type
- String
- Description
- n/a
textureDisabledUnchecked = "A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_unchecked_ca.paa";
textureFocusedChecked
- Type
- String
- Description
- n/a
textureFocusedChecked = "A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_checked_ca.paa";
textureFocusedUnchecked
- Type
- String
- Description
- n/a
textureFocusedUnchecked = "\a3\3DEN\Data\Displays\Display3DEN\ToolBar\widget_scaling_off_ca.paa";
textureHoverChecked
- Type
- String
- Description
- n/a
textureHoverChecked = "A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_checked_ca.paa";
textureHoverUnchecked
- Type
- String
- Description
- n/a
textureHoverUnchecked = "\a3\3DEN\Data\Displays\Display3DEN\ToolBar\widget_area_off_ca.paa";
texturePressedChecked
- Type
- String
- Description
- n/a
texturePressedChecked = "A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_checked_ca.paa";
texturePressedUnchecked
- Type
- String
- Description
- n/a
texturePressedUnchecked = "A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_unchecked_ca.paa";
textureUnchecked
- Type
- String
- Description
- n/a
textureUnchecked = "A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_unchecked_ca.paa";
Default Classes
RscCheckbox
class RscCheckBox
{
idc = -1;
type = CT_CHECKBOX;
deletable = 0;
style = ST_LEFT;
checked = 0;
x = "0.375 * safezoneW + safezoneX";
y = "0.36 * safezoneH + safezoneY";
w = "0.025 * safezoneW";
h = "0.04 * safezoneH";
color[] = {1,1,1,0.7};
colorFocused[] = {1,1,1,1};
colorHover[] = {1,1,1,1};
colorPressed[] = {1,1,1,1};
colorDisabled[] = {1,1,1,0.2};
colorBackground[] = {0,0,0,0};
colorBackgroundFocused[] = {0,0,0,0};
colorBackgroundHover[] = {0,0,0,0};
colorBackgroundPressed[] = {0,0,0,0};
colorBackgroundDisabled[] = {0,0,0,0};
textureChecked = "A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_checked_ca.paa";
textureUnchecked = "A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_unchecked_ca.paa";
textureFocusedChecked = "A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_checked_ca.paa";
textureFocusedUnchecked = "A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_unchecked_ca.paa";
textureHoverChecked = "A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_checked_ca.paa";
textureHoverUnchecked = "A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_unchecked_ca.paa";
texturePressedChecked = "A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_checked_ca.paa";
texturePressedUnchecked = "A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_unchecked_ca.paa";
textureDisabledChecked = "A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_checked_ca.paa";
textureDisabledUnchecked = "A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_unchecked_ca.paa";
tooltipColorText[] = {1,1,1,1};
tooltipColorBox[] = {1,1,1,1};
tooltipColorShade[] = {0,0,0,0.65};
soundEnter[] =
{
"",
0.1,
1
};
soundPush[] =
{
"",
0.1,
1
};
soundClick[] =
{
"",
0.1,
1
};
soundEscape[] =
{
"",
0.1,
1
};
};