CT – Template
Jump to navigation
Jump to search
(→Default Classes: infobox includes more info, import text marked as arma 3 feature) |
(allow different types) |
||
Line 26: | Line 26: | ||
|attribute = ==== {{{name}}} ==== | |attribute = ==== {{{name}}} ==== | ||
{{#if: {{{mandatory|}}} |{{Important|This attribute is mandatory for the control to work!}}}} | {{#if: {{{mandatory|}}} |{{Important|This attribute is mandatory for the control to work!}}}} | ||
;Type: [[TokenNameValueTypes|{{{ | ;Type: [[TokenNameValueTypes|{{{type1}}}]]{{#if: {{{type2|}}} | , [[TokenNameValueTypes|{{{type2}}}]]}}{{#if: {{{type3|}}} | , [[TokenNameValueTypes|{{{type3}}}]]}}{{#if: {{{type4|}}} | , [[TokenNameValueTypes|{{{type4}}}]]}} | ||
;Description: {{{description}}} | ;Description: {{{description}}} | ||
{{#tag:syntaxhighlight|{{#switch: {{{type}}} | {{#tag:syntaxhighlight|{{#switch: {{{type}}} | ||
Line 63: | Line 63: | ||
| name=testArray | | name=testArray | ||
| value={1,0,0,1} | | value={1,0,0,1} | ||
| | | type1=Array | ||
| description=This is a test array to test arrays. {{Important|Notice Me!}} | | description=This is a test array to test arrays. {{Important|Notice Me!}} | ||
}} | }} | ||
Line 69: | Line 69: | ||
| name=testAttribute | | name=testAttribute | ||
| value="test" | | value="test" | ||
| | | type1=String | ||
| description=This is a test attribute to test things. | | description=This is a test attribute to test things. | ||
| mandatory=1 | | mandatory=1 | ||
Line 77: | Line 77: | ||
| name=testClass | | name=testClass | ||
| value=SubClass | | value=SubClass | ||
| | | type1=Class | ||
| type2=Number | |||
| description=This is a test class to test classes. | | description=This is a test class to test classes. | ||
}} | }} |
Revision as of 02:30, 7 November 2020
Usage
Template:Navbox control types
Template:Cfg ref
Introduction
Informative text about this control type.
Related commands
- General
- command group CT
Related User Interface Eventhandlers
- Generic events
- event1
- event2
Alphabetical Order
#define CT_TREE 1234
T
testArray
- Type
- Array
- Description
- This is a test array to test arrays.
testArray = {1,0,0,1};
testAttribute
- Type
- String
- Description
- This is a test attribute to test things.
testAttribute = "test";
testClass
testClass = SubClass;
Default Classes
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;
};