CT CONTEXT MENU: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "([^ ])\|\$Warning( *)\|" to "$1|$2Warning$2|")
m (Text replacement - "{{Feature|Warning|" to "{{Feature|warning|")
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
|macro = CT_CONTEXT_MENU
|macro = CT_CONTEXT_MENU
|value = 14
|value = 14
|description = {{Feature|Warning|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:<br>'''Do not create it this way'''}}
|description = {{Feature|warning|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:<br>'''Do not create it this way'''}}
|gallery=File:a3 ct context menu.jpg|Context menu in the UAV terminal display
|gallery=File:a3 ct context menu.jpg|Context menu in the UAV terminal display
|commands =
|commands =
Line 17: Line 17:
== Other Examples ==
== Other Examples ==
The following control class is exported from the Arma 3 config.
The following control class is exported from the Arma 3 config.
<syntaxhighlight lang="cpp">class RscDisplayUavTerminalWaypointMenu
<syntaxhighlight lang="cpp">
class RscDisplayUavTerminalWaypointMenu
{
{
idc=108;
idc=108;
Line 41: Line 42:
w=0;
w=0;
h=0;
h=0;
};</syntaxhighlight>
};
</syntaxhighlight>

Latest revision as of 00:25, 2 February 2024


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