CT_CONTEXT_MENU

From Bohemia Interactive Community
Revision as of 10:57, 25 May 2021 by Lou Montana (talk | contribs) (Text replacement - "<syntaxhighlight lang="cpp">class" to "<syntaxhighlight lang="cpp"> class")
Jump to navigation Jump to search


Introduction

Control with unknown application. It is used for the waypoint editing in the UAV terminal but is not reproducable in other displays. When creating it either by config or ctrlCreate command the following rpt error is logged:
Do not create it this way

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_CONTEXT_MENU 14


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.


There are no base classes for this control type.

Other Examples

The following control class is exported from the Arma 3 config.

class RscDisplayUavTerminalWaypointMenu
{
	idc=108;
	type=CT_CONTEXT_MENU;
	font="RobotoCondensed";
	sizeEx="0.028*SafezoneH";
	style=0;
	colorBackground[]={0,0,0,0.5};
	colorBorder[]={0,0,0,0};
	colorSeparator[]={0.94999999,0.94999999,0.94999999,1};
	colorSelectBackground[]={1,1,1,0.30000001};
	colorChecked[]=
	{
		"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.13])",
		"(profilenamespace getvariable ['GUI_BCG_RGB_G',0.54])",
		"(profilenamespace getvariable ['GUI_BCG_RGB_B',0.21])",
		"(profilenamespace getvariable ['GUI_BCG_RGB_A',0.8])"
	};
	colorEnabled[]={1,1,1,1};
	colorDisabled[]={1,1,1,0.25};
	x=0;
	y=0;
	w=0;
	h=0;
};