CT – Template

From Bohemia Interactive Community
Revision as of 21:08, 5 November 2020 by 7erra (talk | contribs) (Created CT template)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:wip

Usage

Introduction

Informative text about this control type.

Alphabetical Order

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

Template:Cfg ref Template:Cfg ref


testAttribute

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


testArray

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


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