CT_EDIT
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) |
Contents
Introduction
An editable text box, which allows the user to either enter text himself or to select and copy its content.
Related commands & functions
- Commands: General
- Commands: UI Eventhandlers
- endl (to insert line breaks)
Related User Interface Eventhandlers
Alphabetical Order
#define CT_EDIT 2
A
autocomplete
- "" (no autocompletion)
- "scripting" (entered text will automatically be completed with matching script command)
- "general" (autocomplete will use some of the last entered words like the chat does)
String example:
autocomplete = "";
Number example:
autocomplete = 0;
C
canModify
- Type
- Number
- Description
- When 0, only (optionally combined with SHIFT) LEFT, RIGHT, HOME, END and CTRL + C can be used
canModify = 1;
colorActive
- Type
- Array
- Description
- n/a
colorActive[] = {0.23,0.35,0.42,0.9};
colorSelection
- Type
- Array
- Description
- The text selection highlight color.
colorSelection[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.13])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.54])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.21])",1};
F
forceDrawCaret
- Type
- Number
- Description
- When 1, the caret will be drawn even when control has no focus or is disabled.
forceDrawCaret = 1;
L
linespacing
- Type
- Number
- Description
- n/a
linespacing = 1;
M
maxChars
- Type
- Number
- Description
- The limit for how many characters could be displayed or entered, counting new line characters too.
maxChars = 3;
Default Classes
RscEdit
class RscEdit
{
deletable = 0;
fade = 0;
access = 0;
type = CT_EDIT;
x = 0;
y = 0;
h = 0.04;
w = 0.2;
colorBackground[] = {0,0,0,0};
colorText[] = {0.95,0.95,0.95,1};
colorDisabled[] = {1,1,1,0.25};
colorSelection[] =
{
"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.13])",
"(profilenamespace getvariable ['GUI_BCG_RGB_G',0.54])",
"(profilenamespace getvariable ['GUI_BCG_RGB_B',0.21])",
1
};
autocomplete = "";
text = "";
size = 0.2;
style = ST_FRAME;
font = "RobotoCondensed";
shadow = 2;
sizeEx = GUI_TEXT_SIZE_MEDIUM;
canModify = 1;
tooltipColorText[] = {1,1,1,1};
tooltipColorBox[] = {1,1,1,1};
tooltipColorShade[] = {0,0,0,0.65};
};