CT_XBUTTON

From Bohemia Interactive Community
Revision as of 13:47, 29 November 2020 by R3vo (talk | contribs) (Created page with "{{CT|intro |macro = CT_XBUTTON |value = 41 |description = Another type of button. Unknown of what purpose. |gallery= |commands = |events = }} {{CT|abc start}} === C === {{CT|...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Introduction

Another type of button. Unknown of what purpose.


Related commands & functions

Related User Interface Eventhandlers

Alphabetical Order

TokenNames common to most controls, such as x, y, w, h, text, idc... can be found here.
Not all of the listed attributes might have an effect nor might the list be complete. All attributes were gathered with this config crawler.
#define CT_XBUTTON 41


C

color

Type
Array
Description
n/a
color[] = {1,1,1,1};


colorActive

Type
Array
Description
n/a
colorActive[] = {1,1,1,1};


colorActive2

Type
Array
Description
n/a
colorActive2[] = {1,1,1,1};


colorActiveBackground

Type
Array
Description
n/a
colorActiveBackground[] = {1,0.5,0,1};


colorActiveBackground2

Type
Array
Description
n/a
colorActiveBackground2[] = {0,0,0,1};


P

period

Type
Number
Description
n/a
period = 1;


S

soundClick

Type
Array
Description
n/a
soundClick[] = {"\A3\ui_f\data\sound\RscButton\soundClick",0.09,1};


soundEnter

Type
Array
Description
n/a
soundEnter[] = {"\A3\ui_f\data\sound\RscButton\soundEnter",0.09,1};


soundEscape

Type
Array
Description
n/a
soundEscape[] = {"\A3\ui_f\data\sound\RscButton\soundEscape",0.09,1};


soundPush

Type
Array
Description
n/a
soundPush[] = {"\A3\ui_f\data\sound\RscButton\soundPush",0.09,1};



Default Classes

Arma 3
AddOns: Classes need to be initialised first with class SomeClass;

Missions: Since Arma 3 v2.02 one can use import SomeClass; to initialise a class (see the import keyword).

In older versions, use "Default" call BIS_fnc_exportGUIBaseClasses; and paste the result into the description.ext.

None.

Other Examples

class _CT_XBUTTON
{
	access = 0;
	idc = 41;
	type = 41;
	style = 0;
	default = 0;
	enable = 1;
	show = 1;
	fade = 0;
	blinkingPeriod = 0;
	x = "12 * 					(			((safezoneW / safezoneH) min 1.2) / 40) + 		(safezoneX + (safezoneW - 					((safezoneW / safezoneH) min 1.2))/2)";
	y = "15 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + 		(safezoneY + (safezoneH - 					(			((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
	w = "10 * 					(			((safezoneW / safezoneH) min 1.2) / 40)";
	h = "1 * 					(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	colorBackground[] = {0,0,0,0};
	colorActiveBackground[] = {1,0.5,0,1};
	colorActiveBackground2[] = {0,0,0,1};
	colorDisabled[] = {0,1,1,1};
	text = "CT_XBUTTON";
	size = "(			(			((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
	font = "RobotoCondensed";
	shadow = 0;
	color[] = {1,1,1,1};
	colorActive[] = {1,1,1,1};
	colorActive2[] = {1,1,1,1};
	tooltip = "CT_XBUTTON";
	tooltipColorShade[] = {0,0,0,1};
	tooltipColorText[] = {1,1,1,1};
	tooltipColorBox[] = {1,1,1,1};
	period = 1;
	soundClick[] = {"\A3\ui_f\data\sound\RscButton\soundClick",0.09,1};
	soundEnter[] = {"\A3\ui_f\data\sound\RscButton\soundEnter",0.09,1};
	soundPush[] = {"\A3\ui_f\data\sound\RscButton\soundPush",0.09,1};
	soundEscape[] = {"\A3\ui_f\data\sound\RscButton\soundEscape",0.09,1};
	onCanDestroy = "debugLog ['Log: onCanDestroy',ctrlClassname (_this select 0),_this]; true";
	onDestroy = "debugLog ['Log: onDestroy',ctrlClassname (_this select 0),_this]; false";
	onMouseEnter = "debugLog ['Log: onMouseEnter',ctrlClassname (_this select 0),_this]; false";
	onMouseExit = "debugLog ['Log: onMouseExit',ctrlClassname (_this select 0),_this]; false";
	onSetFocus = "debugLog ['Log: onSetFocus',ctrlClassname (_this select 0),_this]; false";
	onKillFocus = "debugLog ['Log: onKillFocus',ctrlClassname (_this select 0),_this]; false";
	onKeyDown = "debugLog ['Log: onKeyDown',ctrlClassname (_this select 0),_this]; false";
	onKeyUp = "debugLog ['Log: onKeyUp',ctrlClassname (_this select 0),_this]; false";
	onMouseButtonDown = "debugLog ['Log: onMouseButtonDown',ctrlClassname (_this select 0),_this]; false";
	onMouseButtonUp = "debugLog ['Log: onMouseButtonUp',ctrlClassname (_this select 0),_this]; false";
	onMouseButtonClick = "debugLog ['Log: onMouseButtonClick',ctrlClassname (_this select 0),_this]; false";
	onMouseButtonDblClick = "debugLog ['Log: onMouseButtonDblClick',ctrlClassname (_this select 0),_this]; false";
	onMouseZChanged = "debugLog ['Log: onMouseZChanged',ctrlClassname (_this select 0),_this]; false";
	onMouseMoving = "";
	onMouseHolding = "";
	onButtonClick = "debugLog ['Log: onButtonClick',ctrlClassname (_this select 0),_this]; false";
	onButtonDown = "debugLog ['Log: onButtonDown',ctrlClassname (_this select 0),_this]; false";
	onButtonUp = "debugLog ['Log: onButtonUp',ctrlClassname (_this select 0),_this]; false";
};