2015-01-12 04:20:02 +00:00
|
|
|
class ACE_Interaction_Button_Base {
|
2015-05-09 20:25:48 +00:00
|
|
|
tooltip = "";
|
|
|
|
//action = "ACE_Interaction_isMousePressed = true;(findDisplay 1713999) closeDisplay 1;_action = ACE_Interaction_Buttons select ACE_Interaction_SelectedButton;ACE_Interaction_SelectedButton = -1; if (call (_action select 2)) then {call (_action select 1)};";
|
|
|
|
action = "";
|
2015-01-11 19:32:51 +00:00
|
|
|
|
2015-05-09 20:25:48 +00:00
|
|
|
idc = -1;
|
|
|
|
type = 1;
|
|
|
|
text = "";
|
2016-02-24 14:06:27 +00:00
|
|
|
font = "RobotoCondensed";
|
2015-05-09 20:25:48 +00:00
|
|
|
sizeEx = "0.8 / 40 / (getResolution select 5)";
|
|
|
|
shadow = 2;
|
2015-01-11 19:32:51 +00:00
|
|
|
|
2015-05-09 20:25:48 +00:00
|
|
|
style = 2;
|
|
|
|
x = 0;
|
|
|
|
y = 0;
|
2023-02-02 05:28:55 +00:00
|
|
|
w = "2.0 / 16 * safezoneW";
|
|
|
|
h = "0.3 / 9 * safezoneH";
|
2015-01-11 19:32:51 +00:00
|
|
|
|
2015-05-09 20:25:48 +00:00
|
|
|
offsetX = 0.003;
|
|
|
|
offsetY = 0.003;
|
|
|
|
offsetPressedX = 0.002;
|
|
|
|
offsetPressedY = 0.002;
|
|
|
|
borderSize = 0;
|
2015-01-11 19:32:51 +00:00
|
|
|
|
2015-05-09 20:25:48 +00:00
|
|
|
colorText[] = {1,1,1,1};
|
|
|
|
colorDisabled[] = {0.5,0.5,0.5,1};
|
|
|
|
colorBackground[] = {0,0,0,0.8};
|
|
|
|
colorBackgroundDisabled[] = {0,0,0,0.8};
|
|
|
|
colorBackgroundActive[] = {1,1,1,0};
|
|
|
|
colorFocused[] = {1,1,1,1};
|
|
|
|
colorShadow[] = {0,0,0,0};
|
|
|
|
colorBorder[] = {1,1,1,0.8};
|
2015-01-11 19:32:51 +00:00
|
|
|
|
2015-05-09 20:25:48 +00:00
|
|
|
soundEnter[] = {"\A3\ui_f\data\sound\RscButton\soundEnter",0.09,1};
|
|
|
|
soundPush[] = {"\A3\ui_f\data\sound\RscButton\soundPush",0.09,1};
|
|
|
|
soundClick[] = {"\A3\ui_f\data\sound\RscButton\soundClick",0.09,1};
|
|
|
|
soundEscape[] = {"\A3\ui_f\data\sound\RscButton\soundEscape",0.09,1};
|
2015-01-11 19:32:51 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
class IGUIBack;
|
2018-11-01 17:46:46 +00:00
|
|
|
class RscListbox;
|
2015-01-11 19:32:51 +00:00
|
|
|
class RscText;
|
2018-11-01 17:46:46 +00:00
|
|
|
class RscPicture;
|
|
|
|
class RscControlsGroupNoScrollbars;
|
2015-09-28 12:35:05 +00:00
|
|
|
|
2015-01-11 19:32:51 +00:00
|
|
|
#define X_OFFSET 0.2
|
|
|
|
|
2015-01-12 04:20:02 +00:00
|
|
|
class RscACE_SelectAnItem {
|
2015-05-09 20:25:48 +00:00
|
|
|
idd = 8854;
|
|
|
|
movingEnable = 0;
|
2015-09-28 12:35:05 +00:00
|
|
|
|
2015-05-09 20:25:48 +00:00
|
|
|
class controls {
|
2015-09-28 12:35:05 +00:00
|
|
|
class back: IGUIBack {
|
2015-05-09 20:25:48 +00:00
|
|
|
x = X_OFFSET;
|
|
|
|
y = 0;
|
|
|
|
w = 0.6;
|
|
|
|
h = 0.71;
|
|
|
|
colorBackground[] = {0, 0, 0, 0.2};
|
|
|
|
};
|
2021-10-18 16:56:43 +00:00
|
|
|
class header: RscText {
|
2015-05-09 20:25:48 +00:00
|
|
|
idc = 8870;
|
2023-02-02 05:28:55 +00:00
|
|
|
x = QUOTE(X_OFFSET + 0.005);
|
2015-05-09 20:25:48 +00:00
|
|
|
y = 0.005;
|
|
|
|
w = 0.59;
|
|
|
|
h = 0.05;
|
|
|
|
style = 0x02;
|
|
|
|
text = "";
|
|
|
|
};
|
2015-09-28 12:35:05 +00:00
|
|
|
class itemList: RscListBox {
|
2019-03-20 20:18:43 +00:00
|
|
|
onMouseButtonDblClick = QUOTE(_this call DFUNC(onSelectMenuDblClick));
|
2015-05-09 20:25:48 +00:00
|
|
|
idc = 8866;
|
2023-02-02 05:28:55 +00:00
|
|
|
x = QUOTE(X_OFFSET + 0.005);
|
2015-05-09 20:25:48 +00:00
|
|
|
w = 0.59;
|
|
|
|
h = 0.54;
|
|
|
|
y = 0.06;
|
|
|
|
};
|
2015-01-11 19:32:51 +00:00
|
|
|
|
2015-05-09 20:25:48 +00:00
|
|
|
class cancelBtnBackground: ACE_Interaction_Button_Base {
|
|
|
|
type = 0;
|
|
|
|
style = 2;
|
|
|
|
idc = -1;
|
|
|
|
colorBackground[] = {0,0,0,0.5};
|
|
|
|
colorBackgroundDisabled[] = {0,0,0,0.5};
|
2023-02-02 05:28:55 +00:00
|
|
|
x = QUOTE(X_OFFSET + 0.005);
|
2015-05-09 20:25:48 +00:00
|
|
|
w = 0.15;
|
|
|
|
h = 0.1;
|
|
|
|
y = 0.605;
|
|
|
|
};
|
|
|
|
class approveBtnBackground: ACE_Interaction_Button_Base {
|
|
|
|
type = 0;
|
|
|
|
style = 2;
|
|
|
|
idc = -1;
|
|
|
|
colorBackground[] = {0,0,0,0.5};
|
|
|
|
colorBackgroundDisabled[] = {0,0,0,0.5};
|
2023-02-02 05:28:55 +00:00
|
|
|
x = QUOTE(X_OFFSET + 0.445);
|
2015-05-09 20:25:48 +00:00
|
|
|
y = 0.605;
|
|
|
|
h = 0.1;
|
|
|
|
w = 0.15;
|
|
|
|
};
|
2015-01-11 19:32:51 +00:00
|
|
|
|
2015-05-09 20:25:48 +00:00
|
|
|
class cancelBtn: ACE_Interaction_Button_Base {
|
|
|
|
idc = 8855;
|
2023-02-02 05:28:55 +00:00
|
|
|
x = QUOTE(X_OFFSET + 0.005);
|
2015-05-09 20:25:48 +00:00
|
|
|
w = 0.15;
|
|
|
|
h = 0.1;
|
|
|
|
y = 0.605;
|
|
|
|
style = 2;
|
2015-06-06 02:02:24 +00:00
|
|
|
text = CSTRING(Back);
|
2019-03-20 20:18:43 +00:00
|
|
|
action = QUOTE(call DFUNC(hideMenu);); //'Default' call DFUNC(openMenu); 'Default' call DFUNC(openMenuSelf);
|
2015-05-09 20:25:48 +00:00
|
|
|
colorBackground[] = {0,0,0,0};
|
|
|
|
colorBackgroundDisabled[] = {0,0,0,0};
|
|
|
|
colorBackgroundActive[] = {1,1,1,0.2};
|
|
|
|
colorFocused[] = {0,0,0,0};
|
|
|
|
};
|
|
|
|
class approveBtn: ACE_Interaction_Button_Base {
|
|
|
|
idc = 8860;
|
2023-02-02 05:28:55 +00:00
|
|
|
x = QUOTE(X_OFFSET + 0.445);
|
2015-05-09 20:25:48 +00:00
|
|
|
y = 0.605;
|
|
|
|
h = 0.1;
|
|
|
|
w = 0.15;
|
|
|
|
style = 2;
|
2015-06-06 02:02:24 +00:00
|
|
|
text = CSTRING(MakeSelection);
|
2019-03-20 20:18:43 +00:00
|
|
|
action = QUOTE(call DFUNC(hideMenu););
|
2015-05-09 20:25:48 +00:00
|
|
|
colorBackground[] = {0,0,0,0};
|
|
|
|
colorBackgroundDisabled[] = {0,0,0,0};
|
|
|
|
colorBackgroundActive[] = {1,1,1,0.2};
|
|
|
|
colorFocused[] = {0,0,0,0};
|
|
|
|
};
|
2015-01-11 19:32:51 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
class RscTitles {
|
2018-11-01 17:46:46 +00:00
|
|
|
class GVAR(RscMouseHint) {
|
|
|
|
idd = IDD_MOUSEHINT;
|
|
|
|
fadeIn = 0;
|
|
|
|
fadeOut = 0;
|
|
|
|
duration = 999999;
|
2015-05-09 20:25:48 +00:00
|
|
|
enableSimulation = 1;
|
2018-11-01 17:46:46 +00:00
|
|
|
onLoad = QUOTE(uiNamespace setVariable [ARR_2(QQGVAR(mouseHint),_this select 0)]);
|
2015-05-09 20:25:48 +00:00
|
|
|
class controls {
|
2018-11-01 17:46:46 +00:00
|
|
|
class IconLMB: RscPicture {
|
|
|
|
idc = IDC_MOUSEHINT_LMB;
|
2016-04-08 18:34:50 +00:00
|
|
|
text = QPATHTOF(UI\mouse_left_ca.paa);
|
2023-02-02 05:28:55 +00:00
|
|
|
x = QUOTE(20 * GUI_GRID_W + GUI_GRID_CENTER_X);
|
|
|
|
y = QUOTE(17.5 * GUI_GRID_H);
|
|
|
|
w = QUOTE(GUI_GRID_H);
|
|
|
|
h = QUOTE(GUI_GRID_H);
|
2015-05-09 20:25:48 +00:00
|
|
|
};
|
2018-11-01 17:46:46 +00:00
|
|
|
class TextLMB: RscText {
|
|
|
|
idc = IDC_MOUSEHINT_LMB_TEXT;
|
|
|
|
text = "";
|
2023-02-02 05:28:55 +00:00
|
|
|
x = QUOTE(21.1 * GUI_GRID_W + GUI_GRID_CENTER_X);
|
|
|
|
y = QUOTE(17.45 * GUI_GRID_H);
|
|
|
|
w = QUOTE(24 * GUI_GRID_W);
|
|
|
|
h = QUOTE(GUI_GRID_H);
|
|
|
|
sizeEx = QUOTE(GUI_GRID_H);
|
2015-05-09 20:25:48 +00:00
|
|
|
};
|
2018-11-01 17:46:46 +00:00
|
|
|
class IconMMB: IconLMB {
|
|
|
|
idc = IDC_MOUSEHINT_MMB;
|
2016-04-08 18:34:50 +00:00
|
|
|
text = QPATHTOF(UI\mouse_scroll_ca.paa);
|
2023-02-02 05:28:55 +00:00
|
|
|
y = QUOTE(18.55 * GUI_GRID_H);
|
2018-11-01 17:46:46 +00:00
|
|
|
};
|
|
|
|
class TextMMB: TextLMB {
|
|
|
|
idc = IDC_MOUSEHINT_MMB_TEXT;
|
2023-02-02 05:28:55 +00:00
|
|
|
y = QUOTE(18.5 * GUI_GRID_H);
|
2015-05-09 20:25:48 +00:00
|
|
|
};
|
2018-11-01 17:46:46 +00:00
|
|
|
class IconRMB: IconLMB {
|
|
|
|
idc = IDC_MOUSEHINT_RMB;
|
|
|
|
text = QPATHTOF(UI\mouse_right_ca.paa);
|
2023-02-02 05:28:55 +00:00
|
|
|
y = QUOTE(19.6 * GUI_GRID_H);
|
2018-11-01 17:46:46 +00:00
|
|
|
};
|
|
|
|
class TextRMB: TextLMB {
|
|
|
|
idc = IDC_MOUSEHINT_RMB_TEXT;
|
2023-02-02 05:28:55 +00:00
|
|
|
y = QUOTE(19.55 * GUI_GRID_H);
|
2015-05-09 20:25:48 +00:00
|
|
|
};
|
|
|
|
};
|
2015-01-11 19:32:51 +00:00
|
|
|
};
|
|
|
|
};
|
2018-11-01 17:46:46 +00:00
|
|
|
|
|
|
|
class GVAR(RscExtraKey): RscControlsGroupNoScrollbars {
|
|
|
|
idc = IDC_MOUSEHINT_EXTRA;
|
|
|
|
x = 0;
|
|
|
|
y = 0;
|
2023-02-02 05:28:55 +00:00
|
|
|
w = QUOTE(40 * GUI_GRID_W);
|
|
|
|
h = QUOTE(GUI_GRID_H);
|
2018-11-01 17:46:46 +00:00
|
|
|
class controls {
|
|
|
|
class Name: RscText {
|
|
|
|
idc = IDC_MOUSEHINT_EXTRA_NAME;
|
|
|
|
style = 1;
|
|
|
|
x = 0;
|
|
|
|
y = 0;
|
2023-02-02 05:28:55 +00:00
|
|
|
w = QUOTE(21.5 * GUI_GRID_W + GUI_GRID_CENTER_X);
|
|
|
|
h = QUOTE(GUI_GRID_H);
|
|
|
|
sizeEx = QUOTE(GUI_GRID_H);
|
2018-11-01 17:46:46 +00:00
|
|
|
font = "EtelkaMonospaceProBold";
|
|
|
|
};
|
|
|
|
class Text: RscText {
|
|
|
|
idc = IDC_MOUSEHINT_EXTRA_TEXT;
|
2023-02-02 05:28:55 +00:00
|
|
|
x = QUOTE(21.1 * GUI_GRID_W + GUI_GRID_CENTER_X);
|
|
|
|
y = QUOTE(0);
|
|
|
|
w = QUOTE(24 * GUI_GRID_W);
|
|
|
|
h = QUOTE(GUI_GRID_H);
|
|
|
|
sizeEx = QUOTE(GUI_GRID_H);
|
2018-11-01 17:46:46 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|