CT – Template

From Bohemia Interactive Community
Jump to navigation Jump to search
(added "mandatory" argument)
(Correct use of TOC and cfg ref start)
Line 2: Line 2:
{{#switch: {{lc:{{{1}}}}}
{{#switch: {{lc:{{{1}}}}}
|start      = {{Navbox control types}}
|start      = {{Navbox control types}}
 
{{Cfg ref|start}}
= Introduction =
== Introduction ==
{{{description}}}
{{{description}}}


== Related commands ==
=== Related commands ===
* [[:Category:Command_Group:_GUI_Control|General]]<!--
* [[:Category:Command_Group:_GUI_Control|General]]<!--
-->{{#if: {{{commands|}}} |  
-->{{#if: {{{commands|}}} |  
Line 12: Line 12:
}}
}}


== Related User Interface Eventhandlers ==
=== Related User Interface Eventhandlers ===
* [[User_Interface_Event_Handlers#Generic_events|Generic events]]<!--
* [[User_Interface_Event_Handlers#Generic_events|Generic events]]<!--
-->{{#if: {{{events|}}} |  
-->{{#if: {{{events|}}} |  
Line 18: Line 18:
}}
}}


= Alphabetical Order =
== Alphabetical Order ==
{{Informative|TokenNames common to most controls, such as x, y, w, h, text, idc... can be found [[Arma:_GUI_Configuration#Common_Properties|'''here''']].}}
{{Informative|TokenNames common to most controls, such as x, y, w, h, text, idc... can be found [[Arma:_GUI_Configuration#Common_Properties|'''here''']].}}


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


Line 45: Line 44:
{{wip}}
{{wip}}


=Usage=
== Usage ==
<pre>
<pre>
</pre>
</pre>
Line 58: Line 57:
* event2
* event2
}}
}}
=== T ===
=== T ===
{{CT|attribute
{{CT|attribute
Line 66: Line 64:
| 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
{{CT|attribute
| name=testAttribute
| name=testAttribute
Line 103: Line 100:
};
};
</syntaxhighlight>
</syntaxhighlight>
[[Category:Templates|{{uc:{{PAGENAME}}}}]]
[[Category:Templates|{{uc:{{PAGENAME}}}}]]
</noinclude>
</noinclude>

Revision as of 13:28, 6 November 2020

Template:wip

Usage



Template:Navbox control types Template:Cfg ref

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

T

testArray

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


testAttribute

This attribute is mandatory for the control to work!
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;
};