CT – Template
Jump to navigation
Jump to search
m (corrected default classes header depth) |
m (type3 and type4 correct example label) |
||
Line 28: | Line 28: | ||
;Type: [[TokenNameValueTypes|{{{type1}}}]]{{#if: {{{type2|}}} | , [[TokenNameValueTypes|{{{type2}}}]]}}{{#if: {{{type3|}}} | , [[TokenNameValueTypes|{{{type3}}}]]}}{{#if: {{{type4|}}} | , [[TokenNameValueTypes|{{{type4}}}]]}} | ;Type: [[TokenNameValueTypes|{{{type1}}}]]{{#if: {{{type2|}}} | , [[TokenNameValueTypes|{{{type2}}}]]}}{{#if: {{{type3|}}} | , [[TokenNameValueTypes|{{{type3}}}]]}}{{#if: {{{type4|}}} | , [[TokenNameValueTypes|{{{type4}}}]]}} | ||
;Description: {{#if: {{{description|}}}|{{{description}}}|n/a}} | ;Description: {{#if: {{{description|}}}|{{{description}}}|n/a}} | ||
{{#if: {{{type2|}}}|{{{type1}}} | {{#if: {{{type2|}}}|{{{type1}}} example:}} | ||
{{#tag:syntaxhighlight|{{#switch: {{{type1}}} | {{#tag:syntaxhighlight|{{#switch: {{{type1}}} | ||
| Array = {{{name}}}[] = {{{value1}}}; | | Array = {{{name}}}[] = {{{value1}}}; | ||
Line 40: | Line 40: | ||
| {{{name}}} {{=}} {{{value2}}}; | | {{{name}}} {{=}} {{{value2}}}; | ||
}}|lang=cpp}}}} | }}|lang=cpp}}}} | ||
{{#if: {{{type3|}}}|{{#tag:syntaxhighlight|---- | {{#if: {{{type3|}}}|{{{type3}}} example: | ||
{{#tag:syntaxhighlight|---- | |||
{{#switch: {{{type3}}} | {{#switch: {{{type3}}} | ||
| Array = {{{name}}}[] = {{{value3}}}; | | Array = {{{name}}}[] = {{{value3}}}; | ||
Line 46: | Line 47: | ||
| {{{name}}} {{=}} {{{value3}}}; | | {{{name}}} {{=}} {{{value3}}}; | ||
}}|lang=cpp}}}} | }}|lang=cpp}}}} | ||
{{#if: {{{type4|}}}|{{#tag:syntaxhighlight|---- | {{#if: {{{type4|}}}|{{{type4}}} example: | ||
{{#tag:syntaxhighlight|---- | |||
{{#switch: {{{type4}}} | {{#switch: {{{type4}}} | ||
| Array = {{{name}}}[] = {{{value4}}}; | | Array = {{{name}}}[] = {{{value4}}}; |
Revision as of 20:38, 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
- n/a
testAttribute = "test";
testClass
Class example:
class ComboScrollBar
{
color[] = {1,1,1,1};
colorActive[] = {1,1,1,1};
colorDisabled[] = {1,1,1,0.3};
thumb = "\A3\ui_f\data\gui\cfg\scrollbar\thumb_ca.paa";
arrowEmpty = "\A3\ui_f\data\gui\cfg\scrollbar\arrowEmpty_ca.paa";
arrowFull = "\A3\ui_f\data\gui\cfg\scrollbar\arrowFull_ca.paa";
border = "\A3\ui_f\data\gui\cfg\scrollbar\border_ca.paa";
shadow = 0;
scrollSpeed = 0.06;
width = 0;
height = 0;
autoScrollEnabled = 0;
autoScrollSpeed = -1;
autoScrollDelay = 5;
autoScrollRewind = 0;
};
Number example:
testClass = 9876;
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;
};