CT MENU: Difference between revisions
Lou Montana (talk | contribs) m (Some wiki formatting) |
Lou Montana (talk | contribs) m (Text replacement - "Category:Eden Editor" to "Eden Editor") |
||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
|macro = CT_MENU | |macro = CT_MENU | ||
|value = 46 | |value = 46 | ||
|description = [[Eden Editor]] context menu which is opened with right click. Same problems as [[CT_CONTEXT_MENU]]. When created as part of class controls it is visible and functional until clicked on/clicked on another part of the display and thereupon deleted. When listed as an independed class similar to controls and controlsBackground, like in 3den, it is not created at all. Also, the menu commands ([[menuAdd]], [[menuSize]], etc) don't seem to work on it. | |description = [[:Category:Eden Editor|Eden Editor]] context menu which is opened with right click. Same problems as [[CT_CONTEXT_MENU]]. When created as part of class controls it is visible and functional until clicked on/clicked on another part of the display and thereupon deleted. When listed as an independed class similar to controls and controlsBackground, like in 3den, it is not created at all. Also, the menu commands ([[menuAdd]], [[menuSize]], etc) don't seem to work on it. | ||
|gallery=File:a3 ct menu.jpg{{!}}[[Eden Editor]] right click menu | |gallery=File:a3 ct menu.jpg{{!}}[[:Category:Eden Editor|Eden Editor]] right click menu | ||
|commands = | |commands = | ||
* [[:Category:Command_Group:_GUI_Control_-_Menu|Commands: Menu]] | * [[:Category:Command_Group:_GUI_Control_-_Menu|Commands: Menu]] |
Latest revision as of 13:27, 9 July 2023
Control Types / MACRO (TYPE VALUE) | |
---|---|
Text/Image/Video |
CT_STATIC (0) | CT_EDIT (2) | CT_HTML (9) | CT_STRUCTURED_TEXT (13) |
Buttons |
CT_BUTTON (1) | CT_ACTIVETEXT (11) | CT_SHORTCUTBUTTON (16) | CT_CHECKBOX (77) | CT_XBUTTON (41) |
Lists |
CT_COMBO (4) | CT_TOOLBOX (6) | CT_CHECKBOXES (7) | CT_TREE (12) | CT_CONTROLS_TABLE (19) | CT_XCOMBO (44) | CT_LISTBOX (5) | CT_LISTNBOX (102) | CT_LISTNBOX_CHECKABLE (104) | CT_XLISTBOX (45) |
3D Objects |
CT_OBJECT (80) | CT_OBJECT_ZOOM (81) | CT_OBJECT_CONTAINER (82) | CT_OBJECT_CONT_ANIM (83) |
Maps |
CT_MAP (100) | CT_MAP_MAIN (101) |
Meta |
CT_SLIDER (3) | CT_XSLIDER (43) | CT_PROGRESS (8) | CT_CONTROLS_GROUP (15) | CT_WEBBROWSER (106) | CT_EXTENSION (107) |
Menu |
CT_CONTEXT_MENU (14) | CT_MENU (46) | CT_MENU_STRIP (47) |
Unknown |
CT_STATIC_SKEW (10) | CT_HITZONES (17) | CT_VEHICLETOGGLES (18) | CT_XKEYDESC (40) | CT_ANIMATED_TEXTURE (45) | CT_LINEBREAK (98) | CT_USER (99) | CT_ITEMSLOT (103) | CT_VEHICLE_DIRECTION (105) |
Introduction
Eden Editor context menu which is opened with right click. Same problems as CT_CONTEXT_MENU. When created as part of class controls it is visible and functional until clicked on/clicked on another part of the display and thereupon deleted. When listed as an independed class similar to controls and controlsBackground, like in 3den, it is not created at all. Also, the menu commands (menuAdd, menuSize, etc) don't seem to work on it.
Related commands & functions
Related User Interface Eventhandlers
Alphabetical Order
#define CT_MENU 46
A
arrow
- Type
- String
- Description
- Path to .paa file or procedural texture.
arrow = "";
I
itemSpacingH
- Type
- Number
- Description
- n/a
itemSpacingH = 0;
itemSpacingW
- Type
- Number
- Description
- n/a
itemSpacingW = 0;
Items
- Type
- Class
- Description
- First entry is an items[] array listing all entry classes. Afterwards come the entry classes themselves. There has to be a Default class. See Eden Editor: Entity Context Menu for more information.
Properties | ||
---|---|---|
Name | Type | Remark |
Entry | class | Name can be anything |
Custom Items Class
Properties | ||
---|---|---|
Name | Type | Remark |
text | string | |
action | string | Has to contain valid sqf command(s) |
conditionShow | string | Simple Expression. Refer to Eden Editor: Entity Context Menu |
class Items
{
items[]=
{
"entry1",
"entry2"
};
class Separator
{
value=0;
};
class entry1
{
text = "My first entry";
action = "systemchat ""Selected first entry."";";
conditionShow="hoverObject";
};
class entry2
{
text = "My second entry";
action = "systemchat ""Selected second entry."";";
conditionShow="1";
};
class Default
{
text="";
data="Empty";
enable=0;
};
};
P
pictureCheckboxEnabled
- Type
- String
- Description
- Path to .paa file or procedural texture.
pictureCheckboxEnabled = "";
pictureCheckboxDisabled
- Type
- String
- Description
- Path to .paa file or procedural texture.
pictureCheckboxDisabled = "";
pictureRadioEnabled
- Type
- String
- Description
- Path to .paa file or procedural texture.
pictureRadioEnabled = "";
pictureRadioDisabled
- Type
- String
- Description
- Path to .paa file or procedural texture.
pictureRadioDisabled = "";
R
rowHeight
- Type
- Number
- Description
- n/a
rowHeight = 0.025;
Default Classes
None
Other Examples
class ContextMenu
{
idc=1100;
type=CT_MENU;
shadow=1;
sizeEx="4.32 * (1 / (getResolution select 3)) * pixelGrid * 0.5";
font="RobotoCondensedLight";
colorBorder[]={0,0,0,0};
colorBackground[]={0.1,0.1,0.1,1};
colorText[]={1,1,1,1};
colorSelect[]={0,0,0,1};
colorSelectBackground[]=
{
"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.77])",
"(profilenamespace getvariable ['GUI_BCG_RGB_G',0.51])",
"(profilenamespace getvariable ['GUI_BCG_RGB_B',0.08])",
1
};
colorDisabled[]={1,1,1,0.25};
colorPicture[]={1,1,1,1};
colorPictureSelect[]={0,0,0,1};
colorPictureDisabled[]={1,1,1,0.5};
arrow="\a3\3DEN\Data\Controls\ctrlMenu\arrow_ca.paa";
rowHeight=0;
itemSpacingW=0.0099999998;
itemSpacingH=0.0099999998;
pictureCheckboxEnabled="\a3\3DEN\Data\Controls\CtrlMenu\pictureCheckboxEnabled_ca.paa";
pictureCheckboxDisabled="#(argb,8,8,3)color(0,0,0,0)";
pictureRadioEnabled="\a3\3DEN\Data\Controls\CtrlMenu\pictureRadioEnabled_ca.paa";
pictureRadioDisabled="#(argb,8,8,3)color(0,0,0,0)";
class Items
{
items[]=
{
"entry1",
"entry2"
};
class Separator
{
value=0;
};
class entry1
{
text = "My first entry";
action = "systemchat ""Selected first entry."";";
conditionShow="hoverObject";
};
class entry2
{
text = "My second entry";
action = "systemchat ""Selected second entry."";";
conditionShow="1";
};
class Default
{
text="";
data="Empty";
enable=0;
};
};
};