CT USER: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(page overhaul)
Tag: Removed redirect
m (Text replacement - "};</syntaxhighlight>" to "}; </syntaxhighlight>")
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
[[Category: Control Types]]
{{CT|intro
{{CT|intro
|macro = CT_USER
|macro = CT_USER
|value = 99
|value = 99
|description = {{Informative|This control type is used by the engine for [[Performance Profiling]] and has probably no use outside of it.}}
|description = 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]]
[[File:Performance_Profiling_04.png|thumb|diag_captureFrame sample output with custom subtree|center|400px]]
|commands =
|commands =
Line 57: Line 60:


{{CT|examples}}
{{CT|examples}}
=== RscExample ===
=== TimeLines ===
<syntaxhighlight lang="cpp">class TimeLines
<syntaxhighlight lang="cpp">
class TimeLines
{
{
   type = CT_USER;
   type = CT_USER;
Line 74: Line 78:
   colorBar[] = {0.8,0.8,0.8,1};
   colorBar[] = {0.8,0.8,0.8,1};
   colorSelection[] = {1,0,0,1};
   colorSelection[] = {1,0,0,1};
};</syntaxhighlight>
};
</syntaxhighlight>

Latest revision as of 10:02, 25 May 2021


Introduction

This control type is used by the engine for Performance Profiling and has probably no use outside of it.

diag_captureFrame sample output with custom subtree


Related commands & functions

Related User Interface Eventhandlers

Alphabetical Order

TokenNames common to most controls, such as x, y, w, h, text, idc... can be found here.
Not all of the listed attributes might have an effect nor might the list be complete. All attributes were gathered with this config crawler.
#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

Arma 3
AddOns: Classes need to be initialised first with class SomeClass;

Missions: Since Arma 3 v2.02 one can use import SomeClass; to initialise a class (see the import keyword).

In older versions, use "Default" call BIS_fnc_exportGUIBaseClasses; and paste the result into the description.ext.

TimeLines

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};
};