2015-08-05 18:25:38 +00:00
|
|
|
// Temporary fix until BI take care of it
|
|
|
|
class RscFrame {
|
|
|
|
x = 0;
|
|
|
|
y = 0;
|
|
|
|
w = 0;
|
|
|
|
h = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
2015-07-16 22:58:58 +00:00
|
|
|
class RscButtonMenu;
|
2015-07-17 12:08:35 +00:00
|
|
|
class RscControlsGroupNoScrollbars;
|
2015-08-05 18:25:38 +00:00
|
|
|
//class RscFrame;
|
2015-08-07 00:44:32 +00:00
|
|
|
class RscListBox;
|
2015-07-15 10:38:33 +00:00
|
|
|
class RscMapControl;
|
2015-07-16 14:51:32 +00:00
|
|
|
class RscPicture;
|
2015-07-15 10:38:33 +00:00
|
|
|
class RscText;
|
|
|
|
class RscTree;
|
|
|
|
|
2015-07-17 00:44:49 +00:00
|
|
|
class GVAR(interface) {
|
2015-07-15 10:38:33 +00:00
|
|
|
idd = 12249;
|
|
|
|
enableSimulation = 1;
|
|
|
|
movingEnable = 0;
|
2015-07-15 11:03:54 +00:00
|
|
|
onLoad = QUOTE([ARR_2('onLoad',_this)] call FUNC(handleInterface));
|
|
|
|
onUnload = QUOTE([ARR_2('onUnload',_this)] call FUNC(handleInterface));
|
|
|
|
onKeyDown = QUOTE([ARR_2('onKeyDown',_this)] call FUNC(handleInterface));
|
|
|
|
onKeyUp = QUOTE([ARR_2('onKeyUp',_this)] call FUNC(handleInterface));
|
2015-07-15 11:11:19 +00:00
|
|
|
class controlsBackground {
|
2015-07-17 12:08:35 +00:00
|
|
|
class mouseHandler: RscControlsGroupNoScrollbars {
|
2015-07-15 11:11:19 +00:00
|
|
|
x = safeZoneXAbs;
|
|
|
|
y = safeZoneY;
|
|
|
|
w = safeZoneWAbs;
|
|
|
|
h = safeZoneH;
|
|
|
|
onMouseButtonDown = QUOTE([ARR_2('onMouseButtonDown',_this)] call FUNC(handleInterface));
|
|
|
|
onMouseButtonUp = QUOTE([ARR_2('onMouseButtonUp',_this)] call FUNC(handleInterface));
|
|
|
|
onMouseZChanged = QUOTE([ARR_2('onMouseZChanged',_this)] call FUNC(handleInterface));
|
|
|
|
onMouseMoving = QUOTE([ARR_2('onMouseMoving',_this)] call FUNC(handleInterface));
|
2015-07-21 18:48:33 +00:00
|
|
|
onMouseHolding = QUOTE([ARR_2('onMouseMoving',_this)] call FUNC(handleInterface));
|
2015-07-15 11:11:19 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
class controls {
|
2015-07-17 12:08:35 +00:00
|
|
|
class compass: RscControlsGroupNoScrollbars {
|
2015-07-16 22:58:58 +00:00
|
|
|
idc = IDC_COMP;
|
2015-07-18 12:12:34 +00:00
|
|
|
x = COMPASS_X;
|
2015-07-15 10:38:33 +00:00
|
|
|
y = safeZoneY;
|
2015-07-18 12:12:34 +00:00
|
|
|
w = COMPASS_W;
|
2015-07-16 22:58:58 +00:00
|
|
|
h = TOOL_H;
|
2015-07-16 18:47:55 +00:00
|
|
|
class controls {
|
|
|
|
class compassBack: RscText {
|
2015-07-18 12:12:34 +00:00
|
|
|
x = 0;
|
2015-07-16 18:47:55 +00:00
|
|
|
y = 0;
|
|
|
|
w = COMPASS_W;
|
|
|
|
h = TOOL_H;
|
2015-07-18 12:12:34 +00:00
|
|
|
colorBackground[] = {COL_BACK};
|
2015-07-16 18:47:55 +00:00
|
|
|
};
|
|
|
|
class compass0_90: RscPicture {
|
|
|
|
idc = IDC_COMP_0;
|
2015-07-18 12:12:34 +00:00
|
|
|
x = COMPASS_W * 0.5;
|
2015-07-16 18:47:55 +00:00
|
|
|
y = 0;
|
|
|
|
w = COMPASS_W * 0.5;
|
|
|
|
h = TOOL_H;
|
2015-07-19 22:53:46 +00:00
|
|
|
text = "A3\UI_F_Curator\Data\CfgIngameUI\compass\texture180_ca.paa";
|
2015-07-16 18:47:55 +00:00
|
|
|
};
|
|
|
|
class compass90_180: compass0_90 {
|
|
|
|
idc = IDC_COMP_90;
|
2015-07-18 12:12:34 +00:00
|
|
|
x = COMPASS_W;
|
2015-07-19 22:53:46 +00:00
|
|
|
text = "A3\UI_F_Curator\Data\CfgIngameUI\compass\texture270_ca.paa";
|
2015-07-16 18:47:55 +00:00
|
|
|
};
|
|
|
|
class compass180_270: compass0_90 {
|
|
|
|
idc = IDC_COMP_180;
|
2015-07-19 01:25:52 +00:00
|
|
|
x = 0;
|
2015-07-19 22:53:46 +00:00
|
|
|
text = "A3\UI_F_Curator\Data\CfgIngameUI\compass\texture0_ca.paa";
|
2015-07-16 18:47:55 +00:00
|
|
|
};
|
|
|
|
class compass270_0: compass0_90 {
|
|
|
|
idc = IDC_COMP_270;
|
2015-07-19 01:25:52 +00:00
|
|
|
x = COMPASS_W * -0.5;
|
2015-07-19 22:53:46 +00:00
|
|
|
text = "A3\UI_F_Curator\Data\CfgIngameUI\compass\texture90_ca.paa";
|
2015-07-16 18:47:55 +00:00
|
|
|
};
|
2015-07-17 15:02:38 +00:00
|
|
|
class compassCaret: RscFrame {
|
2015-07-18 12:12:34 +00:00
|
|
|
x = COMPASS_W * 0.5;
|
2015-07-17 15:02:38 +00:00
|
|
|
y = 0;
|
|
|
|
w = 0;
|
|
|
|
h = TOOL_H;
|
2015-07-18 12:12:34 +00:00
|
|
|
colorText[] = {COL_FORE};
|
2015-07-16 18:47:55 +00:00
|
|
|
};
|
|
|
|
class compassFrame: compassBack {
|
|
|
|
style = 64;
|
|
|
|
shadow=2;
|
2015-07-18 12:12:34 +00:00
|
|
|
colorText[] = {COL_FORE};
|
2015-07-16 18:47:55 +00:00
|
|
|
};
|
|
|
|
};
|
2015-07-15 10:38:33 +00:00
|
|
|
};
|
2015-07-18 14:42:07 +00:00
|
|
|
class toolbar: RscControlsGroupNoScrollbars {
|
|
|
|
idc = IDC_TOOL;
|
2015-07-15 10:38:33 +00:00
|
|
|
x = safeZoneX;
|
2015-07-19 12:03:40 +00:00
|
|
|
y = safeZoneY + safeZoneH - TOOL_H;
|
2015-07-18 14:42:07 +00:00
|
|
|
w = safeZoneW;
|
2015-07-15 10:38:33 +00:00
|
|
|
h = TOOL_H;
|
2015-07-18 14:42:07 +00:00
|
|
|
class controls {
|
|
|
|
class nameTool: RscText {
|
|
|
|
idc = IDC_TOOL_NAME;
|
2015-07-19 15:35:53 +00:00
|
|
|
style = 2;
|
2015-07-18 14:42:07 +00:00
|
|
|
x = 0;
|
|
|
|
y = 0;
|
|
|
|
w = TOOL_W * 2;
|
|
|
|
h = TOOL_H;
|
|
|
|
shadow = 2;
|
|
|
|
colorText[]={COL_FORE};
|
|
|
|
colorBackground[] = {COL_BACK};
|
|
|
|
sizeEx = H_PART(1);
|
|
|
|
};
|
|
|
|
class nameFrame: nameTool {
|
|
|
|
idc = -1;
|
|
|
|
style = 64;
|
|
|
|
};
|
|
|
|
class viewTool: nameTool {
|
|
|
|
idc = IDC_TOOL_VIEW;
|
|
|
|
x = TOOL_W * 2 + MARGIN;
|
|
|
|
w = TOOL_W;
|
|
|
|
};
|
|
|
|
class viewFrame: viewTool {
|
|
|
|
idc = -1;
|
|
|
|
style = 64;
|
|
|
|
};
|
2015-08-05 20:11:25 +00:00
|
|
|
class visionTool: viewTool {
|
|
|
|
idc = IDC_TOOL_VISION;
|
2015-07-18 14:42:07 +00:00
|
|
|
x = TOOL_W * 3 + MARGIN * 2;
|
|
|
|
};
|
2015-08-05 20:11:25 +00:00
|
|
|
class visionFrame: visionTool {
|
2015-07-18 14:42:07 +00:00
|
|
|
idc = -1;
|
|
|
|
style = 64;
|
|
|
|
};
|
2015-07-20 17:13:13 +00:00
|
|
|
class clockTool: viewTool {
|
|
|
|
idc = IDC_TOOL_CLOCK;
|
2015-07-18 14:42:07 +00:00
|
|
|
x = safeZoneW - TOOL_W * 3 - MARGIN * 2;
|
|
|
|
};
|
2015-07-20 17:13:13 +00:00
|
|
|
class clockFrame: clockTool {
|
2015-07-18 14:42:07 +00:00
|
|
|
idc = -1;
|
|
|
|
style = 64;
|
|
|
|
};
|
2015-08-07 14:15:04 +00:00
|
|
|
class zoomTool: viewTool {
|
2015-08-05 20:11:25 +00:00
|
|
|
idc = IDC_TOOL_FOV;
|
2015-07-18 14:42:07 +00:00
|
|
|
x = safeZoneW - TOOL_W * 2 - MARGIN;
|
|
|
|
};
|
2015-08-07 14:15:04 +00:00
|
|
|
class zoomFrame: zoomTool {
|
2015-07-18 14:42:07 +00:00
|
|
|
idc = -1;
|
|
|
|
style = 64;
|
|
|
|
};
|
|
|
|
class speedTool: viewTool {
|
|
|
|
idc = IDC_TOOL_SPEED;
|
|
|
|
x = safeZoneW - TOOL_W;
|
|
|
|
};
|
|
|
|
class speedFrame: speedTool {
|
|
|
|
idc = -1;
|
|
|
|
style = 64;
|
|
|
|
};
|
|
|
|
};
|
2015-07-15 10:38:33 +00:00
|
|
|
};
|
2015-08-08 14:49:07 +00:00
|
|
|
class unitWindow: RscControlsGroupNoScrollbars {
|
2015-07-17 00:44:49 +00:00
|
|
|
idc = IDC_UNIT;
|
2015-07-15 10:38:33 +00:00
|
|
|
x = safeZoneX;
|
2015-08-06 23:05:21 +00:00
|
|
|
y = safeZoneY + TOOL_H * 6;
|
2015-07-15 10:38:33 +00:00
|
|
|
w = TOOL_W * 2;
|
2015-08-06 23:05:21 +00:00
|
|
|
h = safeZoneH - TOOL_H * 13;
|
2015-08-07 14:15:04 +00:00
|
|
|
class controls {
|
|
|
|
class unitTitle: RscText {
|
|
|
|
x = 0;
|
|
|
|
y = 0;
|
|
|
|
w = TOOL_W * 2;
|
|
|
|
h = H_PART(1);
|
|
|
|
style = 2;
|
|
|
|
colorText[] = {COL_FORE};
|
|
|
|
colorBackground[] = {COL_FORE_D};
|
|
|
|
sizeEx = H_PART(1);
|
|
|
|
text = CSTRING(UnitTitle);
|
|
|
|
};
|
|
|
|
class unitTree: RscTree {
|
|
|
|
idc = IDC_UNIT_TREE;
|
|
|
|
x = 0;
|
|
|
|
y = H_PART(1);
|
|
|
|
w = TOOL_W * 2;
|
|
|
|
h = safeZoneH - TOOL_H * 14;
|
|
|
|
sizeEx = H_PART(0.8);
|
|
|
|
colorText[] = {COL_FORE};
|
|
|
|
colorBorder[] = {0,0,0,0};
|
|
|
|
colorBackground[] = {COL_BACK};
|
|
|
|
colorSelect[] = {
|
2015-11-30 16:27:09 +00:00
|
|
|
"profilenamespace getVariable ['GUI_BCG_RGB_R',0.77]",
|
|
|
|
"profilenamespace getVariable ['GUI_BCG_RGB_G',0.51]",
|
|
|
|
"profilenamespace getVariable ['GUI_BCG_RGB_B',0.08]",
|
2015-08-07 14:15:04 +00:00
|
|
|
1
|
|
|
|
};
|
|
|
|
multiselectEnabled = 0;
|
2016-05-17 08:36:44 +00:00
|
|
|
disableKeyboardSearch = 1;
|
2015-08-07 14:15:04 +00:00
|
|
|
onTreeDblClick = QUOTE([ARR_2('onTreeDblClick',_this)] call FUNC(handleInterface));
|
|
|
|
};
|
|
|
|
class unitFrame: RscFrame {
|
|
|
|
x = 0;
|
|
|
|
y = 0;
|
|
|
|
w = TOOL_W * 2;
|
|
|
|
h = safeZoneH - TOOL_H * 13;
|
|
|
|
shadow = 2;
|
|
|
|
colorText[] = {COL_FORE};
|
|
|
|
};
|
2015-07-15 10:38:33 +00:00
|
|
|
};
|
2015-07-16 22:58:58 +00:00
|
|
|
};
|
2015-08-07 00:44:32 +00:00
|
|
|
class helpWindow: RscControlsGroupNoScrollbars {
|
2015-07-16 18:47:55 +00:00
|
|
|
idc = IDC_HELP;
|
2015-08-07 00:44:32 +00:00
|
|
|
x = safeZoneX + safeZoneW - TOOL_W * 2;
|
|
|
|
y = safeZoneY + TOOL_H * 6;
|
|
|
|
w = TOOL_W * 2;
|
|
|
|
h = safeZoneH - TOOL_H * 13;
|
2015-07-16 18:47:55 +00:00
|
|
|
class controls {
|
2015-08-07 00:44:32 +00:00
|
|
|
class helpTitle: RscText {
|
2015-07-16 18:47:55 +00:00
|
|
|
x = 0;
|
|
|
|
y = 0;
|
2015-08-07 00:44:32 +00:00
|
|
|
w = TOOL_W * 2;
|
2015-07-16 18:47:55 +00:00
|
|
|
h = H_PART(1);
|
2015-08-07 14:15:04 +00:00
|
|
|
style = 2;
|
2015-08-07 00:44:32 +00:00
|
|
|
colorText[] = {COL_FORE};
|
2015-07-18 14:42:07 +00:00
|
|
|
colorBackground[] = {COL_FORE_D};
|
2015-07-16 22:58:58 +00:00
|
|
|
sizeEx = H_PART(1);
|
2015-07-16 18:47:55 +00:00
|
|
|
text = CSTRING(HelpTitle);
|
|
|
|
};
|
2015-08-07 00:44:32 +00:00
|
|
|
class helpContent: RscListBox {
|
2015-07-21 22:20:41 +00:00
|
|
|
idc = IDC_HELP_LIST;
|
2015-08-07 00:44:32 +00:00
|
|
|
x = 0;
|
|
|
|
y = H_PART(1);
|
|
|
|
w = TOOL_W * 2;
|
|
|
|
h = safeZoneH - TOOL_H * 14;
|
|
|
|
colorBackground[] = {COL_BACK};
|
2015-08-07 14:15:04 +00:00
|
|
|
sizeEx = H_PART(0.8);
|
2015-07-21 22:20:41 +00:00
|
|
|
default = 1;
|
2015-08-07 00:44:32 +00:00
|
|
|
};
|
2015-08-07 14:15:04 +00:00
|
|
|
class helpFrame: RscFrame {
|
2015-08-07 00:44:32 +00:00
|
|
|
x = 0;
|
|
|
|
y = 0;
|
|
|
|
w = TOOL_W * 2;
|
|
|
|
h = safeZoneH - TOOL_H * 13;
|
2015-08-07 14:15:04 +00:00
|
|
|
shadow = 2;
|
2015-08-07 00:44:32 +00:00
|
|
|
colorText[] = {COL_FORE};
|
2015-07-21 22:20:41 +00:00
|
|
|
};
|
2015-07-15 10:38:33 +00:00
|
|
|
};
|
|
|
|
};
|
2015-08-08 14:49:07 +00:00
|
|
|
class mapOverlay: RscMapControl {
|
|
|
|
idc = IDC_MAP;
|
|
|
|
type = 100;
|
|
|
|
x = safeZoneX;
|
|
|
|
y = safeZoneY;
|
|
|
|
w = safeZoneW;
|
|
|
|
h = safeZoneH;
|
|
|
|
onMouseButtonDown = QUOTE([ARR_2('onMapClick',_this)] call FUNC(handleInterface));
|
|
|
|
onDraw = QUOTE(_this call FUNC(handleMap));
|
|
|
|
};
|
2015-07-15 10:38:33 +00:00
|
|
|
};
|
|
|
|
};
|