CT – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
(added template for ct navbox, added source)
(added related commands and UIEH, removed usage for now)
Line 5: Line 5:
= Introduction =
= Introduction =
{{{description}}}
{{{description}}}
== Related commands ==
* [[:Category:Command_Group:_GUI_Control|General]]<!--
-->{{#ifeq: {{{macro}}} | CT_CONTROLS_TABLE | * [[:Category:Command Group: GUI Control - Controls Table‎|Controls Table]]}}<!--
-->{{#ifeq: {{{macro}}} | CT_HTML | * [[:Category:Command_Group: GUI Control - HTML|HTML]]}}<!--
-->{{#ifeq: {{{macro}}} | CT_LISTBOX | * [[:Category:Command Group: GUI Control - ListBox|ListBox]]}}<!--
-->{{#ifeq: {{{macro}}} | CT_LISTNBOX | * [[:Category:Command Group: GUI Control - ListNBox‎ |ListNBox‎]]}}<!--
-->{{#ifeq: {{{macro}}} | CT_MAP | * [[:Category:Command Group: GUI Control - Map|Map]]}}<!--
-->{{#ifeq: {{{macro}}} | CT_MENU | * [[:Category:Command Group: GUI Control - Menu|Menu]]}}<!--
-->{{#ifeq: {{{macro}}} | CT_OBJECT | * [[:Category:Command Group: GUI Control - Object|Object]]}}<!--
-->{{#ifeq: {{{macro}}} | CT_TREE | * [[:Category:Command Group: GUI Control - Tree View|Tree View]]}}
== Related User Interface Eventhandlers ==
* [[User_Interface_Event_Handlers#Generic_events|Generic events]]<!--
-->{{#ifeq: {{{macro}}} | CT_BUTTON | * [[User Interface Event Handlers#Button events‎|Button events]]}}<!--
-->{{#ifeq: {{{macro}}} | CT_LISTBOX | * [[User Interface Event Handlers#__CT__ events‎|Listbox events]]}}<!--
-->{{#ifeq: {{{macro}}} | CT_TREE | * [[User Interface Event Handlers#__CT__ events‎|Tree events]]}}<!--
-->{{#ifeq: {{{macro}}} | CT_CHECKBOX | * [[User Interface Event Handlers#__CT__ events‎|Checkbox events]]}}<!--
-->{{#ifeq: {{{macro}}} | CT_TOOLBOX | * [[User Interface Event Handlers#__CT__ events‎|Misc. events]]}}


= Alphabetical Order =
= Alphabetical Order =
Line 10: Line 29:


{{#tag:syntaxhighlight|#define {{{macro}}} {{{value}}}|lang=cpp}}
{{#tag:syntaxhighlight|#define {{{macro}}} {{{value}}}|lang=cpp}}
{{Cfg ref|start}}
{{Cfg ref|start}}
{{Cfg ref|abc}}
{{Cfg ref|abc}}
Line 24: Line 42:


|stop = {{Cfg ref|end}}
|stop = {{Cfg ref|end}}
|examples = = Default Classes =
|examples = = Default Classes =
The following classes are part of the export that is generated with <code>"Default" call [[BIS_fnc_exportGUIBaseClasses]]</code>
The following classes are part of the export that is generated with <code>"Default" call [[BIS_fnc_exportGUIBaseClasses]]</code>
Line 34: Line 53:
=Usage=
=Usage=
<pre>
<pre>
</pre>
{{CT|start
{{CT|start
|macro = CT_MYNAME
|macro = CT_TREE
|value = 1234
|value = 1234
|description = Informative text about this control type.}}
|description = Informative text about this control type.}}


{{CT|attribute
=== T ===
| name=testAttribute
| value="test"
| type=String
| description=This is a test attribute to test things.
}}
 
{{CT|attribute
{{CT|attribute
| name=testArray
| name=testArray
Line 52: Line 67:
| description=This is a test array to test arrays. {{Important|Notice Me!}}
| description=This is a test array to test arrays. {{Important|Notice Me!}}
}}
}}
{{CT|attribute
| name=testClass
| value=SubClass
| type=Class
| description=This is a test class to test classes.
}}
{{CT|stop}}
{{CT|examples}}
== RscExample ==
<syntaxhighlight lang="cpp">
class RscExample
{
    deletable = 0;
    fade = 0;
    access = 0;
    type = CT_TYPEMACRO;
    style = SL_HORZ;
    color[] = {1,1,1,0.8};
    colorActive[] = {1,1,1,1};
    shadow = 0;
    x = 0;
    y = 0;
    w = 0.3;
    h = 0.025;
};
</syntaxhighlight>
</pre>
{{CT|start
|macro = CT_MYNAME
|value = 1234
|description = Informative text about this control type.}}


{{CT|attribute
{{CT|attribute
Line 93: Line 73:
| type=String
| type=String
| description=This is a test attribute to test things.
| description=This is a test attribute to test things.
}}
{{CT|attribute
| name=testArray
| value={1,0,0,1}
| type=Array
| description=This is a test array to test arrays. {{Important|Notice Me!}}
}}
}}


Line 130: Line 103:
};
};
</syntaxhighlight>
</syntaxhighlight>
[[Category:Templates|{{uc:{{PAGENAME}}}}]]
</noinclude>
</noinclude>
[[Category:Templates|{{uc:{{PAGENAME}}}}]]

Revision as of 01:47, 6 November 2020

Template:wip

Usage



Template:Navbox control types

Introduction

Informative text about this control type.

Related commands

Related User Interface Eventhandlers

Alphabetical Order

TokenNames common to most controls, such as x, y, w, h, text, idc... can be found here.
#define CT_TREE 1234

Template:Cfg ref Template:Cfg ref


T

testArray

Type
Array
Description
This is a test array to test arrays.
Notice Me!
testArray[] = {1,0,0,1};


testAttribute

Type
String
Description
This is a test attribute to test things.
testAttribute = "test";


testClass

Type
Class
Description
This is a test class to test classes.
class testClass {};


Template:Cfg ref


Default Classes

The following classes are part of the export that is generated with "Default" call BIS_fnc_exportGUIBaseClasses

In order for the classes below to work you need to have them exported with the function above.
Starting with Arma 3 v2.01.146644 you can use the import directive instead.

RscExample

class RscExample
{
    deletable = 0;
    fade = 0;
    access = 0;
    type = CT_TYPEMACRO;
    style = SL_HORZ;
    color[] = {1,1,1,0.8};
    colorActive[] = {1,1,1,1};
    shadow = 0;
    x = 0;
    y = 0;
    w = 0.3;
    h = 0.025;
};