{"name":"CT USER","title":"CT USER","type":"topic","url":"https://community.bistudio.com/wiki/CT_USER","revid":258325,"updated":"2021-05-25T09:02:07Z","aliases":["DialogControls-User"],"markdown":"### Introduction\n\nThis control type is used by the engine for Performance Profiling and has probably no use outside of it.\n\n#### Related commands & functions\n\n- Commands: General\n- Commands: UI Eventhandlers\n\n#### Related User Interface Eventhandlers\n\n- Events: General\n\n### Alphabetical Order\n\n> [!NOTE]\n> TokenNames common to most controls, such as x, y, w, h, text, idc... can be found **here**.\n\n> [!WARNING]\n> Not all of the listed attributes might have an effect nor might the list be complete. All attributes were gathered with [this](https://github.com/7erra/BIKI.VR/blob/master/fnc/generateCTPage.sqf) config crawler.\n\n```cpp\n#define CT_USER 99\n```\n\n#### C\n\n##### colorBar\n\n**Type:** Array\n\n**Description:** n/a\n\n```cpp\ncolorBar[] = {0.8,0.8,0.8,1};\n```\n\n##### colorLines\n\n**Type:** Array\n\n**Description:** n/a\n\n```cpp\ncolorLines[] = {0,0,0,1};\n```\n\n##### colorSelection\n\n**Type:** Array\n\n**Description:** n/a\n\n```cpp\ncolorSelection[] = {1,0,0,1};\n```\n\n##### colorShadow\n\n**Type:** Array\n\n**Description:** n/a\n\n```cpp\ncolorShadow[] = {0,0,0,0.5};\n```\n\n#### F\n\n##### fixedWidth\n\n**Type:** Number\n\n**Description:** n/a\n\n```cpp\nfixedWidth = 0;\n```\n\n#### L\n\n##### linespacing\n\n**Type:** Number\n\n**Description:** n/a\n\n```cpp\nlinespacing = 1;\n```\n\n### Default Classes\n\n> [!NOTE]\n> **Arma 3:** **AddOns:** Classes need to be initialised first with `class SomeClass;`\n>\n> ---\n>\n> **Missions:** Since Arma 3 v2.02 one can use `import SomeClass;` to initialise a class (see the import keyword).\n>\n> In older versions, use `\"Default\" call BIS_fnc_exportGUIBaseClasses;` and paste the result into the description.ext.\n\n#### TimeLines\n\n```cpp\nclass TimeLines\n{\n  type = CT_USER;\n  style = 0;\n  idc = 102;\n  shadow = 0;\n  x = \"0.03 + 0.02\";\n  y = 0.53;\n  w = \"0.90 - 0.04\";\n  h = 0.26;\n  class Scrollbar{};\n  font = \"TahomaB\";\n  colorLines[] = {0,0,0,1};\n  colorBackground[] = {1,1,1,1};\n  colorBar[] = {0.8,0.8,0.8,1};\n  colorSelection[] = {1,0,0,1};\n};\n```","sections":[{"heading":"Introduction","level":3,"markdown":"This control type is used by the engine for Performance Profiling and has probably no use outside of it."},{"heading":"Related commands & functions","level":4,"markdown":"- Commands: General\n- Commands: UI Eventhandlers"},{"heading":"Related User Interface Eventhandlers","level":4,"markdown":"- Events: General"},{"heading":"Alphabetical Order","level":3,"markdown":"> [!NOTE]\n> TokenNames common to most controls, such as x, y, w, h, text, idc... can be found **here**.\n\n> [!WARNING]\n> Not all of the listed attributes might have an effect nor might the list be complete. All attributes were gathered with [this](https://github.com/7erra/BIKI.VR/blob/master/fnc/generateCTPage.sqf) config crawler.\n\n```cpp\n#define CT_USER 99\n```"},{"heading":"C","level":4,"markdown":""},{"heading":"colorBar","level":5,"markdown":"**Type:** Array\n\n**Description:** n/a\n\n```cpp\ncolorBar[] = {0.8,0.8,0.8,1};\n```"},{"heading":"colorLines","level":5,"markdown":"**Type:** Array\n\n**Description:** n/a\n\n```cpp\ncolorLines[] = {0,0,0,1};\n```"},{"heading":"colorSelection","level":5,"markdown":"**Type:** Array\n\n**Description:** n/a\n\n```cpp\ncolorSelection[] = {1,0,0,1};\n```"},{"heading":"colorShadow","level":5,"markdown":"**Type:** Array\n\n**Description:** n/a\n\n```cpp\ncolorShadow[] = {0,0,0,0.5};\n```"},{"heading":"F","level":4,"markdown":""},{"heading":"fixedWidth","level":5,"markdown":"**Type:** Number\n\n**Description:** n/a\n\n```cpp\nfixedWidth = 0;\n```"},{"heading":"L","level":4,"markdown":""},{"heading":"linespacing","level":5,"markdown":"**Type:** Number\n\n**Description:** n/a\n\n```cpp\nlinespacing = 1;\n```"},{"heading":"Default Classes","level":3,"markdown":"> [!NOTE]\n> **Arma 3:** **AddOns:** Classes need to be initialised first with `class SomeClass;`\n>\n> ---\n>\n> **Missions:** Since Arma 3 v2.02 one can use `import SomeClass;` to initialise a class (see the import keyword).\n>\n> In older versions, use `\"Default\" call BIS_fnc_exportGUIBaseClasses;` and paste the result into the description.ext."},{"heading":"TimeLines","level":4,"markdown":"```cpp\nclass TimeLines\n{\n  type = CT_USER;\n  style = 0;\n  idc = 102;\n  shadow = 0;\n  x = \"0.03 + 0.02\";\n  y = 0.53;\n  w = \"0.90 - 0.04\";\n  h = 0.26;\n  class Scrollbar{};\n  font = \"TahomaB\";\n  colorLines[] = {0,0,0,1};\n  colorBackground[] = {1,1,1,1};\n  colorBar[] = {0.8,0.8,0.8,1};\n  colorSelection[] = {1,0,0,1};\n};\n```"}],"categories":["Control Types"],"groups":["GUI"]}