mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
a40b0d48f2
* HEMTT v10 Compatibility * Update addons/field_rations/CfgUIGrids.hpp Co-authored-by: PabstMirror <pabstmirror@gmail.com> * fix PabstMirror review * optionals * End empty macro definitions with semi-colon (HEMTT v0.10) * Adapt to HEMTT v0.10.0-a14 * Revert End empty macro definitions with semi-colon * Disable old HEMTT build step in CI * Add missing include and fix macro usage and include casings * End empty macro definitions with semi-colon (HEMTT v0.10) * Update addons/disarming/functions/fnc_showItemsInListbox.sqf Co-authored-by: PabstMirror <pabstmirror@gmail.com> * cleanup test code * arty - keep style same as before * fix fire screams * Update script_component.hpp * Keep old hemtt/workflow/sqfc * Update arma.yml * Update arma.yml * Update CfgUIGrids.hpp --------- Co-authored-by: PabstMirror <pabstmirror@gmail.com> Co-authored-by: jonpas <jonpas33@gmail.com>
404 lines
10 KiB
C++
404 lines
10 KiB
C++
#define CT_STATIC 0
|
|
#define CT_BUTTON 1
|
|
#define CT_EDIT 2
|
|
#define CT_SLIDER 3
|
|
#define CT_COMBO 4
|
|
#define CT_LISTBOX 5
|
|
#define CT_TOOLBOX 6
|
|
#define CT_CHECKBOXES 7
|
|
#define CT_PROGRESS 8
|
|
#define CT_HTML 9
|
|
#define CT_STATIC_SKEW 10
|
|
#define CT_ACTIVETEXT 11
|
|
#define CT_TREE 12
|
|
#define CT_STRUCTURED_TEXT 13
|
|
#define CT_CONTEXT_MENU 14
|
|
#define CT_CONTROLS_GROUP 15
|
|
#define CT_XKEYDESC 40
|
|
#define CT_XBUTTON 41
|
|
#define CT_XLISTBOX 42
|
|
#define CT_XSLIDER 43
|
|
#define CT_XCOMBO 44
|
|
#define CT_ANIMATED_TEXTURE 45
|
|
#define CT_OBJECT 80
|
|
#define CT_OBJECT_ZOOM 81
|
|
#define CT_OBJECT_CONTAINER 82
|
|
#define CT_OBJECT_CONT_ANIM 83
|
|
#define CT_LINEBREAK 98
|
|
#define CT_USER 99
|
|
#define CT_MAP 100
|
|
#define CT_MAP_MAIN 101
|
|
#define ST_POS 0x0F
|
|
#define ST_HPOS 0x03
|
|
#define ST_VPOS 0x0C
|
|
#define ST_LEFT 0x00
|
|
#define ST_RIGHT 0x01
|
|
#define ST_CENTER 0x02
|
|
#define ST_DOWN 0x04
|
|
#define ST_UP 0x08
|
|
#define ST_VCENTER 0x0c
|
|
#define ST_TYPE 0xF0
|
|
#define ST_SINGLE 0
|
|
#define ST_MULTI 16
|
|
#define ST_TITLE_BAR 32
|
|
#define ST_PICTURE 48
|
|
#define ST_FRAME 64
|
|
#define ST_BACKGROUND 80
|
|
#define ST_GROUP_BOX 96
|
|
#define ST_GROUP_BOX2 112
|
|
#define ST_HUD_BACKGROUND 128
|
|
#define ST_TILE_PICTURE 144
|
|
#define ST_WITH_RECT 160
|
|
#define ST_LINE 176
|
|
#define FontM "RobotoCondensed"
|
|
#define __XA SafeZoneXAbs
|
|
#define __X SafeZoneX
|
|
#define __Y SafeZoneY
|
|
#define __WA SafeZoneWAbs
|
|
#define __W SafeZoneW
|
|
#define __H SafeZoneH
|
|
|
|
class GVAR(cam_dialog) {
|
|
idd = 18880;
|
|
movingEnable = 1;
|
|
controlsBackground[] = { };
|
|
objects[] = { };
|
|
controls[] = {
|
|
"TOP_BORDER",
|
|
"BOTTOM_BORDER",
|
|
"LEFT_BORDER",
|
|
"RIGHT_BORDER",
|
|
//"HELP_DIALOG",
|
|
"CAM_BG",
|
|
"CAM_HEIGHT",
|
|
"CAM_ALT",
|
|
"CAM_No",
|
|
"CAM_NO_x",
|
|
"CAM_TIME_REMAIN",
|
|
"CAM_TIME",
|
|
"CAM_ZOOM",
|
|
"ZOOM_X",
|
|
"CAM_POS",
|
|
"CAM_POS_X",
|
|
"CAM_DIR",
|
|
"CAM_DIR_x"
|
|
};
|
|
|
|
class TOP_BORDER {
|
|
idc = -1;
|
|
type = CT_STATIC;
|
|
style = ST_CENTER;
|
|
x = QUOTE(__XA);
|
|
y = QUOTE(__Y);
|
|
w = QUOTE(__WA);
|
|
h = 0.08;
|
|
font = FontM;
|
|
sizeEx = 0.04;
|
|
colorText[] = { 1, 1, 1, 1 };
|
|
colorBackground[] = {0,0,0,1};
|
|
text = "";
|
|
blinkingPeriod = 0;
|
|
};
|
|
class BOTTOM_BORDER: TOP_BORDER {
|
|
y = QUOTE(__Y + __H - 0.05);
|
|
h = 0.05;
|
|
};
|
|
class LEFT_BORDER: TOP_BORDER {
|
|
w = QUOTE((abs(__XA) - abs(__X)) + 0.05);
|
|
h = QUOTE(__H);
|
|
};
|
|
class RIGHT_BORDER: TOP_BORDER {
|
|
x = QUOTE(__X + __W - 0.05);
|
|
w = QUOTE((__WA - __W) + 0.05);
|
|
h = QUOTE(__H);
|
|
};
|
|
class HELP_DIALOG {
|
|
idc = -1;
|
|
type = CT_BUTTON;
|
|
style = ST_CENTER;
|
|
font = FontM;
|
|
sizeEx = 0.025;
|
|
colorText[] = { 1, 1, 1, 1 };
|
|
colorFocused[] = { 0.31, 0.31, 0.31, 0.31 };
|
|
colorDisabled[] = { 0, 0, 1, 0.7 };
|
|
colorBackground[] = { 0, 0, 0, 0 };
|
|
colorBackgroundDisabled[] = { 1, 1, 1, 0.5 };
|
|
colorBackgroundActive[] = { 0.5, 0.5, 0.5, 0.5 };
|
|
offsetX = 0.003;
|
|
offsetY = 0.003;
|
|
offsetPressedX = 0.002;
|
|
offsetPressedY = 0.002;
|
|
colorShadow[] = { 0, 0, 0, 0.5 };
|
|
colorBorder[] = { 0, 0, 0, 0 };
|
|
borderSize = 0;
|
|
soundEnter[] = { "", 0, 1 };
|
|
soundPush[] = { "buttonpushed.ogg", 0.1, 1 };
|
|
soundClick[] = { "", 0, 1 };
|
|
soundEscape[] = { "", 0, 1 };
|
|
x = QUOTE(__X + (2*0.8));
|
|
y = QUOTE(__Y + 0.045);
|
|
w = 0.05;
|
|
h = 0.02;
|
|
text = CSTRING(HELP);
|
|
action = QUOTE(createDialog QQGVAR(help_dialog));
|
|
};
|
|
class CAM_BG {
|
|
idc = -1;
|
|
type = 0;
|
|
style = 48;
|
|
colorText[]={ 1,1,1,1 };
|
|
colorBackground[]={ 0.4,0.4,0.4,1 };
|
|
font = "RobotoCondensed";
|
|
sizeEx = 0.021;
|
|
lineSpacing = 1;
|
|
x = QUOTE(__X);
|
|
y = QUOTE(__Y + 0.08);
|
|
w = QUOTE(__W);
|
|
h = QUOTE(__H + 0.2);
|
|
border = 0;
|
|
text = QPATHTOF(UI\ace_huntir_monitor_on.paa);
|
|
};
|
|
class CAM_HEIGHT {
|
|
type = CT_STATIC;
|
|
idc = 1;
|
|
style = ST_LEFT;
|
|
colorBackground[] = {0, 0, 0, 0};
|
|
colorText[] = {1, 1, 1, 1};
|
|
font = FontM;
|
|
sizeEx = 0.02;
|
|
x = QUOTE(__X + 0.42);
|
|
y = QUOTE(__Y + 0.32);
|
|
w = 0.08;
|
|
h = 0.04;
|
|
text = "";
|
|
blinkingPeriod = 0;
|
|
};
|
|
class CAM_ALT: CAM_HEIGHT {
|
|
x = QUOTE(__X + 0.35);
|
|
text = CSTRING(ALT);
|
|
};
|
|
class CAM_No: CAM_HEIGHT {
|
|
x = QUOTE(__X + __W - 0.64);
|
|
text = CSTRING(CAM);
|
|
};
|
|
class CAM_NO_x: CAM_HEIGHT {
|
|
idc = 2;
|
|
x = QUOTE(__X + __W - 0.56);
|
|
y = QUOTE(__Y + 0.32);
|
|
text = "";
|
|
};
|
|
class CAM_TIME: CAM_HEIGHT {
|
|
x = QUOTE(__X + 0.35);
|
|
y = QUOTE(__Y + __H - 0.65);
|
|
w = 0.12;
|
|
text = CSTRING(TIME);
|
|
};
|
|
class CAM_TIME_REMAIN: CAM_TIME {
|
|
idc = 3;
|
|
x = QUOTE(__X + 0.46);
|
|
text = "";
|
|
};
|
|
class CAM_ZOOM: CAM_No {
|
|
y = QUOTE(__Y + 0.36);
|
|
text = "Zoom:";
|
|
};
|
|
class ZOOM_X: CAM_ZOOM {
|
|
idc = 4;
|
|
x = QUOTE(__X + __W - 0.56);
|
|
text = "";
|
|
};
|
|
class CAM_POS: CAM_HEIGHT {
|
|
x = QUOTE(__X + 0.35);
|
|
y = QUOTE(__Y + 0.36);
|
|
text = "GPS Pos:";
|
|
};
|
|
class CAM_POS_X: CAM_POS {
|
|
idc = 5;
|
|
x = QUOTE(__X + 0.42);
|
|
w = 0.16;
|
|
text = "";
|
|
};
|
|
class CAM_DIR: CAM_POS {
|
|
y = QUOTE(__Y + 0.4);
|
|
text = ""; //"Az:";
|
|
};
|
|
class CAM_DIR_x: CAM_DIR {
|
|
idc = 6;
|
|
x = QUOTE(__X + 0.42);
|
|
w = 0.16;
|
|
text = "";
|
|
};
|
|
};
|
|
|
|
class GVAR(cam_dialog_inactive): GVAR(cam_dialog) {
|
|
idd = 18881;
|
|
controls[] = {
|
|
"TOP_BORDER",
|
|
"BOTTOM_BORDER",
|
|
"LEFT_BORDER",
|
|
"RIGHT_BORDER",
|
|
//"HELP_DIALOG",
|
|
//"PRESS_HELP",
|
|
"CAM_BG",
|
|
"SEARCHING_CAM"
|
|
};
|
|
|
|
class TOP_BORDER: TOP_BORDER {};
|
|
class BOTTOM_BORDER: BOTTOM_BORDER {};
|
|
class LEFT_BORDER: LEFT_BORDER {};
|
|
class RIGHT_BORDER: RIGHT_BORDER {};
|
|
class PRESS_HELP {
|
|
idc = -1;
|
|
type = CT_STATIC;
|
|
style = ST_LEFT;
|
|
x = QUOTE(__X + (__W - 0.2));
|
|
y = QUOTE(__Y + 0.06);
|
|
w = 0.4;
|
|
h = 0.02;
|
|
font = FontM;
|
|
sizeEx = 0.02;
|
|
colorText[] = {1, 1, 1, 1};
|
|
colorBackground[] = {0,0,0,0};
|
|
text = "";
|
|
blinkingPeriod = 0;
|
|
};
|
|
class HELP_DIALOG {
|
|
idc = -1;
|
|
type = CT_STATIC;
|
|
style = ST_LEFT;
|
|
x = QUOTE(__X + (__W - 0.2));
|
|
y = QUOTE(__Y + 0.03);
|
|
w = 0.4;
|
|
h = 0.02;
|
|
font = FontM;
|
|
sizeEx = 0.02;
|
|
colorText[] = {1, 1, 1, 1};
|
|
colorBackground[] = {0,0,0,0};
|
|
text = CSTRING(ESC);
|
|
blinkingPeriod = 0;
|
|
};
|
|
class CAM_BG: CAM_BG {};
|
|
class SEARCHING_CAM {
|
|
idc = 1;
|
|
type = CT_STATIC;
|
|
style = ST_LEFT;
|
|
colorText[] = {1, 1, 1, 1};
|
|
colorBackground[] = {0,0,0,0};
|
|
x = QUOTE(__X + (__W/2) - 0.07);
|
|
y = QUOTE(__Y + (__H/2));
|
|
w = 0.6;
|
|
h = 0.08;
|
|
font = FontM;
|
|
sizeEx = 0.04;
|
|
text = "";
|
|
blinkingPeriod = 0;
|
|
};
|
|
};
|
|
|
|
class GVAR(cam_dialog_off): GVAR(cam_dialog_inactive) {
|
|
idd = 18882;
|
|
controls[] = {
|
|
"TOP_BORDER",
|
|
"BOTTOM_BORDER",
|
|
"LEFT_BORDER",
|
|
"RIGHT_BORDER",
|
|
//"HELP_DIALOG",
|
|
//"PRESS_HELP",
|
|
"CAM_BG"
|
|
};
|
|
|
|
class TOP_BORDER: TOP_BORDER {};
|
|
class BOTTOM_BORDER: BOTTOM_BORDER {};
|
|
class LEFT_BORDER: LEFT_BORDER {};
|
|
class RIGHT_BORDER: RIGHT_BORDER {};
|
|
class PRESS_HELP: PRESS_HELP {};
|
|
class HELP_DIALOG: HELP_DIALOG {};
|
|
class CAM_BG: CAM_BG { text = QPATHTOF(UI\ace_huntir_monitor_off.paa); };
|
|
};
|
|
//ACTIVE PARA CAMERA DIALOG
|
|
class GVAR(help_dialog): GVAR(cam_dialog) {
|
|
idd = -1;
|
|
controls[] = {
|
|
"TOP_BORDER",
|
|
"BOTTOM_BORDER",
|
|
"LEFT_BORDER",
|
|
"RIGHT_BORDER",
|
|
"CAM_BG",
|
|
"CAM_HEIGHT",
|
|
"CAM_ALT",
|
|
"CAM_TIME_REMAIN",
|
|
"CAM_TIME",
|
|
"CAM_ZOOM",
|
|
"ZOOM_X",
|
|
"CAM_POS",
|
|
"CAM_POS_x",
|
|
"CAM_No",
|
|
"CAM_No_X",
|
|
"CAM_DIR",
|
|
"CAM_DIR_x",
|
|
"HELP0",
|
|
"HELP1",
|
|
"HELP2",
|
|
"HELP3",
|
|
"HELP4",
|
|
"HELP5",
|
|
"HELP6"
|
|
};
|
|
class TOP_BORDER: TOP_BORDER {};
|
|
class BOTTOM_BORDER: BOTTOM_BORDER {};
|
|
class LEFT_BORDER: LEFT_BORDER {};
|
|
class RIGHT_BORDER: RIGHT_BORDER {};
|
|
class CAM_BG: CAM_BG {};
|
|
class CAM_HEIGHT: CAM_HEIGHT {};
|
|
class CAM_ALT: CAM_ALT {};
|
|
class CAM_No: CAM_No {};
|
|
class CAM_NO_x: CAM_NO_x {};
|
|
class CAM_TIME_REMAIN: CAM_TIME_REMAIN {};
|
|
class CAM_TIME: CAM_TIME {};
|
|
class CAM_ZOOM: CAM_ZOOM {};
|
|
class ZOOM_X: ZOOM_X {};
|
|
class CAM_POS: CAM_POS {};
|
|
class CAM_POS_X: CAM_POS_X {};
|
|
class CAM_DIR: CAM_DIR {};
|
|
class CAM_DIR_x: CAM_DIR_x {};
|
|
class HELP0 {
|
|
idc = -1;
|
|
type = CT_STATIC;
|
|
style = ST_LEFT;
|
|
x = QUOTE(__X + (__W - 0.3));
|
|
y = QUOTE(__Y + 0.03);
|
|
w = 0.4;
|
|
h = 0.03;
|
|
font = FontM;
|
|
sizeEx = 0.022;
|
|
colorText[] = { 1, 1, 1, 1 };
|
|
colorBackground[] = {0,0,0,1};
|
|
text = CSTRING(HELP_EXIT);
|
|
blinkingPeriod = 0;
|
|
};
|
|
class HELP1: HELP0 {
|
|
y = QUOTE(__Y + 0.06);
|
|
text = CSTRING(HELP_ZOOM);
|
|
};
|
|
class HELP2: HELP0 {
|
|
y = QUOTE(__Y + 0.09);
|
|
text = CSTRING(HELP_CAM);
|
|
};
|
|
class HELP3: HELP0 {
|
|
y = QUOTE(__Y + 0.12);
|
|
text = CSTRING(HELP_ROT);
|
|
};
|
|
class HELP4: HELP0 {
|
|
y = QUOTE(__Y + 0.15);
|
|
text = CSTRING(HELP_ELV);
|
|
};
|
|
class HELP5: HELP0 {
|
|
y = QUOTE(__Y + 0.18);
|
|
text = CSTRING(HELP_MOD);
|
|
};
|
|
class HELP6: HELP0 {
|
|
y = QUOTE(__Y + 0.21);
|
|
text = CSTRING(HELP_RES);
|
|
};
|
|
};
|