ACE3/addons/spectator/UI/interface.hpp

220 lines
7.6 KiB
C++
Raw Normal View History

// 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;
//class RscFrame;
2015-07-21 22:20:41 +00:00
class RscListNBox;
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;
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;
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;
};
class visionTool: viewTool {
idc = IDC_TOOL_VISION;
2015-07-18 14:42:07 +00:00
x = TOOL_W * 3 + MARGIN * 2;
};
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;
};
class fovTool: viewTool {
idc = IDC_TOOL_FOV;
2015-07-18 14:42:07 +00:00
x = safeZoneW - TOOL_W * 2 - MARGIN;
};
class fovFrame: fovTool {
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-07-19 12:03:40 +00:00
class unitTree: RscTree {
2015-07-17 00:44:49 +00:00
idc = IDC_UNIT;
2015-07-15 10:38:33 +00:00
x = safeZoneX;
y = safeZoneY + TOOL_H * 2;
2015-07-15 10:38:33 +00:00
w = TOOL_W * 2;
h = safeZoneH - TOOL_H * 6;
2015-07-19 12:03:40 +00:00
sizeEx = H_PART(0.8);
borderSize = 1;
colorBorder[] = {COL_FORE};
colorBackground[] = {COL_BACK};
colorSelect[] = {
"(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
2015-07-15 10:38:33 +00:00
};
2015-07-19 12:03:40 +00:00
multiselectEnabled = 0;
onTreeDblClick = QUOTE([ARR_2('onTreeDblClick',_this)] call FUNC(handleInterface));
2015-07-16 22:58:58 +00:00
};
2015-07-18 14:42:07 +00:00
class mapOverlay: RscMapControl {
2015-07-15 10:38:33 +00:00
idc = IDC_MAP;
x = safeZoneX;
2015-07-18 14:42:07 +00:00
y = safeZoneY;
2015-07-15 10:38:33 +00:00
w = safeZoneW;
h = safeZoneH;
2015-07-20 19:30:13 +00:00
onMouseButtonDblClick = QUOTE([ARR_2('onMapDblClick',_this)] call FUNC(handleInterface));
2015-07-24 14:36:36 +00:00
onDraw = QUOTE([ARR_2('onDraw',_this)] call FUNC(handleInterface));
2015-07-15 10:38:33 +00:00
};
2015-07-18 14:42:07 +00:00
class helpSplash: RscControlsGroupNoScrollbars {
2015-07-16 18:47:55 +00:00
idc = IDC_HELP;
2015-07-15 10:38:33 +00:00
x = 0.5 - W_PART(12);
y = 0.5 - H_PART(12);
w = W_PART(24);
h = H_PART(24);
2015-07-16 18:47:55 +00:00
class controls {
class helpBack: RscText {
x = 0;
y = 0;
w = W_PART(24);
h = H_PART(24);
2015-07-18 12:12:34 +00:00
colorBackground[] = {COL_BACK};
2015-07-16 18:47:55 +00:00
};
class helpTitle: helpBack {
h = H_PART(1);
2015-07-18 12:12:34 +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-07-21 22:20:41 +00:00
class helpContent: RscListNBox {
idc = IDC_HELP_LIST;
x = W_PART(1);
y = H_PART(2);
W = W_PART(22);
H = H_PART(21);
default = 1;
columns[] = {0.01,0.5};
};
2015-07-15 10:38:33 +00:00
};
};
};
};