CT USER: Difference between revisions
Killzone Kid (talk | contribs) (Redirected page to DialogControls-User) |
(page overhaul) Tag: Removed redirect |
||
Line 1: | Line 1: | ||
{{CT|intro | |||
|macro = CT_USER | |||
|value = 99 | |||
|description = {{Informative|This control type is used by the engine for [[Performance Profiling]] and has probably no use outside of it.}} | |||
[[File:Performance_Profiling_04.png|thumb|diag_captureFrame sample output with custom subtree|center|400px]] | |||
|commands = | |||
|events = | |||
}} | |||
{{CT|abc start}} | |||
=== C === | |||
{{CT|attribute | |||
|name=colorBar | |||
|type1=Array | |||
|value1={0.8,0.8,0.8,1} | |||
|description= | |||
}} | |||
{{CT|attribute | |||
|name=colorLines | |||
|type1=Array | |||
|value1={0,0,0,1} | |||
|description= | |||
}} | |||
{{CT|attribute | |||
|name=colorSelection | |||
|type1=Array | |||
|value1={1,0,0,1} | |||
|description= | |||
}} | |||
{{CT|attribute | |||
|name=colorShadow | |||
|type1=Array | |||
|value1={0,0,0,0.5} | |||
|description= | |||
}} | |||
=== F === | |||
{{CT|attribute | |||
|name=fixedWidth | |||
|type1=Number | |||
|value1=0 | |||
|description= | |||
}} | |||
=== L === | |||
{{CT|attribute | |||
|name=linespacing | |||
|type1=Number | |||
|value1=1 | |||
|description= | |||
}} | |||
{{CT|abc end}} | |||
{{CT|examples}} | |||
=== RscExample === | |||
<syntaxhighlight lang="cpp">class TimeLines | |||
{ | |||
type = CT_USER; | |||
style = 0; | |||
idc = 102; | |||
shadow = 0; | |||
x = "0.03 + 0.02"; | |||
y = 0.53; | |||
w = "0.90 - 0.04"; | |||
h = 0.26; | |||
class Scrollbar{}; | |||
font = "TahomaB"; | |||
colorLines[] = {0,0,0,1}; | |||
colorBackground[] = {1,1,1,1}; | |||
colorBar[] = {0.8,0.8,0.8,1}; | |||
colorSelection[] = {1,0,0,1}; | |||
};</syntaxhighlight> |
Revision as of 13:15, 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
Related commands & functions
Related User Interface Eventhandlers
Alphabetical Order
#define CT_USER 99
C
colorBar
- Type
- Array
- Description
- n/a
colorBar[] = {0.8,0.8,0.8,1};
colorLines
- Type
- Array
- Description
- n/a
colorLines[] = {0,0,0,1};
colorSelection
- Type
- Array
- Description
- n/a
colorSelection[] = {1,0,0,1};
colorShadow
- Type
- Array
- Description
- n/a
colorShadow[] = {0,0,0,0.5};
F
fixedWidth
- Type
- Number
- Description
- n/a
fixedWidth = 0;
L
linespacing
- Type
- Number
- Description
- n/a
linespacing = 1;
Default Classes
RscExample
class TimeLines
{
type = CT_USER;
style = 0;
idc = 102;
shadow = 0;
x = "0.03 + 0.02";
y = 0.53;
w = "0.90 - 0.04";
h = 0.26;
class Scrollbar{};
font = "TahomaB";
colorLines[] = {0,0,0,1};
colorBackground[] = {1,1,1,1};
colorBar[] = {0.8,0.8,0.8,1};
colorSelection[] = {1,0,0,1};
};