2015-01-12 09:48:26 +00:00
|
|
|
#define GUI_GRID_X (0)
|
|
|
|
#define GUI_GRID_Y (0)
|
|
|
|
#define GUI_GRID_W (0.025)
|
|
|
|
#define GUI_GRID_H (0.04)
|
|
|
|
|
|
|
|
#define ST_CENTER 0x02
|
2015-02-04 00:16:47 +00:00
|
|
|
#define X_OFFSET 0.25
|
2015-01-12 09:48:26 +00:00
|
|
|
|
|
|
|
class RscText;
|
|
|
|
class RscButton;
|
|
|
|
class RscXSliderH;
|
|
|
|
class IGUIBack;
|
2015-02-04 00:16:47 +00:00
|
|
|
class RscPicture;
|
|
|
|
class RscEdit;
|
|
|
|
|
|
|
|
class Rsc_ACE_CallScreen_Edit:RscEdit {
|
2015-04-06 20:20:11 +00:00
|
|
|
canModify = 1;
|
2015-06-13 20:12:32 +00:00
|
|
|
colorBackground[] = {0,0,0,0};
|
2015-04-06 20:20:11 +00:00
|
|
|
colorText[] = {0,0,0,1};
|
|
|
|
colorDisabled[] = {1,1,1,0.25};
|
|
|
|
colorSelection[] = {
|
2015-11-30 16:27:09 +00:00
|
|
|
"(profilenamespace getVariable ['GUI_BCG_RGB_R',0.69])",
|
|
|
|
"(profilenamespace getVariable ['GUI_BCG_RGB_G',0.75])",
|
|
|
|
"(profilenamespace getVariable ['GUI_BCG_RGB_B',0.5])",
|
2015-04-06 20:20:11 +00:00
|
|
|
1
|
|
|
|
};
|
|
|
|
text = "";
|
|
|
|
style = "0x00 + 0x40 + 0x200";
|
|
|
|
shadow = 1;
|
|
|
|
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 20) * 1)";
|
|
|
|
x = 0.288594 * safezoneW + safezoneX;
|
|
|
|
w = 0.0825 * safezoneW;
|
|
|
|
h = 0.044 * safezoneH;
|
2015-02-04 00:16:47 +00:00
|
|
|
};
|
|
|
|
class Rsc_ACE_HiddenButton:RscButton {
|
2015-04-06 20:20:11 +00:00
|
|
|
colorText[] = {0, 0, 0, 0};
|
|
|
|
colorDisabled[] = {0, 0, 0, 0};
|
|
|
|
colorBackground[] = {0, 0, 0, 0};
|
|
|
|
colorBackgroundDisabled[] = {0, 0, 0, 0};
|
|
|
|
colorBackgroundActive[] = {0, 0, 0, 0};
|
|
|
|
colorFocused[] = {0, 0, 0, 0};
|
|
|
|
colorShadow[] = {0, 0, 0, 0};
|
|
|
|
colorBorder[] = {0, 0, 0, 0};
|
|
|
|
w = 0.095589;
|
|
|
|
h = 0.039216;
|
|
|
|
shadow = 0;
|
2015-02-04 00:16:47 +00:00
|
|
|
};
|
2015-01-12 09:48:26 +00:00
|
|
|
|
2015-02-04 00:16:47 +00:00
|
|
|
class Rsc_ACE_Timer_Slider:RscXSliderH {
|
2015-04-06 20:20:11 +00:00
|
|
|
x = 0.4;
|
|
|
|
y = 0.2;
|
|
|
|
w = 0.3;
|
|
|
|
h = "1*((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
|
|
|
colorBackground[] = {0,0,0,0.5};
|
2015-01-12 09:48:26 +00:00
|
|
|
};
|
|
|
|
|
2015-02-04 00:16:47 +00:00
|
|
|
class RscACE_SelectTimeUI {
|
2015-04-06 20:20:11 +00:00
|
|
|
idd = 8854;
|
|
|
|
movingEnable = 0;
|
|
|
|
class controls {
|
|
|
|
class back:IGUIBack {
|
|
|
|
x = X_OFFSET;
|
|
|
|
y = 0;
|
|
|
|
w = 0.5;
|
|
|
|
h = 0.2;
|
|
|
|
colorBackground[] = {0, 0, 0, 0.5};
|
|
|
|
};
|
|
|
|
class header: RscText{
|
|
|
|
idc = 8870;
|
|
|
|
x = X_OFFSET + 0.005;
|
|
|
|
y = 0.005;
|
|
|
|
w = 0.49;
|
|
|
|
h = 0.05;
|
|
|
|
style = ST_CENTER;
|
|
|
|
text = "";
|
|
|
|
};
|
|
|
|
class slider: Rsc_ACE_Timer_Slider {
|
|
|
|
idc = 8845;
|
|
|
|
x = X_OFFSET + 0.005;
|
|
|
|
y = 0.06;
|
|
|
|
w = 0.49;
|
|
|
|
h = 0.025;
|
2017-10-10 14:39:59 +00:00
|
|
|
onSliderPosChanged = "_mins = floor((_this select 1)/60);_secs=floor((_this select 1) - (_mins*60));ctrlSetText [8870, format[localize 'STR_ACE_Explosives_TimerMenu',_mins, _secs]];";
|
2015-04-06 20:20:11 +00:00
|
|
|
};
|
|
|
|
class cancelBtn: RscButton {
|
|
|
|
idc = 8855;
|
|
|
|
x = X_OFFSET + 0.005;
|
|
|
|
w = 0.15;
|
|
|
|
h = 0.1;
|
|
|
|
y = 0.09;
|
|
|
|
style = ST_CENTER;
|
2015-06-06 02:02:24 +00:00
|
|
|
text = CSTRING(Cancel);
|
2015-04-06 20:20:11 +00:00
|
|
|
action = "closeDialog 0;";
|
|
|
|
};
|
|
|
|
class approveBtn: RscButton {
|
|
|
|
idc = 8860;
|
|
|
|
x = X_OFFSET + 0.345;
|
|
|
|
y = 0.09;
|
|
|
|
h = 0.1;
|
|
|
|
w = 0.15;
|
|
|
|
style = ST_CENTER;
|
2015-06-06 02:02:24 +00:00
|
|
|
text = CSTRING(SetTime);
|
2015-04-06 20:20:11 +00:00
|
|
|
action = "closeDialog 0;";
|
|
|
|
};
|
|
|
|
};
|
2015-01-12 09:48:26 +00:00
|
|
|
};
|
2015-02-04 00:16:47 +00:00
|
|
|
|
|
|
|
class Rsc_ACE_NumKeyButton: Rsc_ACE_HiddenButton{};
|
|
|
|
class Rsc_ACE_PhoneInterface {
|
2015-04-06 20:20:11 +00:00
|
|
|
idd = 8855;
|
|
|
|
movingEnable = 1;
|
|
|
|
onLoad = QUOTE(GVAR(IED_CurrentSpeedDial) = -1);
|
|
|
|
class controls {
|
|
|
|
class RscPicture_1200: RscPicture {
|
|
|
|
idc = 1200;
|
2016-04-08 18:34:50 +00:00
|
|
|
text = QPATHTOF(Data\UI\Cellphone_Background.paa);
|
2015-04-06 20:20:11 +00:00
|
|
|
x = 0.231875 * safezoneW + safezoneX;
|
|
|
|
y = 0.104 * safezoneH + safezoneY;
|
|
|
|
w = 0.195937 * safezoneW;
|
|
|
|
h = 0.704 * safezoneH;
|
|
|
|
};
|
|
|
|
class numkey_1: Rsc_ACE_NumKeyButton {
|
|
|
|
idc = 1600;
|
|
|
|
x = 0.278281 * safezoneW + safezoneX;
|
|
|
|
y = 0.533 * safezoneH + safezoneY;
|
|
|
|
w = 0.0309375 * safezoneW;
|
|
|
|
h = 0.033 * safezoneH;
|
|
|
|
tooltip = "1";
|
|
|
|
action = "ctrlSetText [1400,((ctrlText 1400) + '1')];";
|
|
|
|
};
|
|
|
|
class numkey_2: Rsc_ACE_NumKeyButton {
|
|
|
|
idc = 1601;
|
|
|
|
x = 0.314375 * safezoneW + safezoneX;
|
|
|
|
y = 0.533 * safezoneH + safezoneY;
|
|
|
|
w = 0.0309375 * safezoneW;
|
|
|
|
h = 0.033 * safezoneH;
|
|
|
|
tooltip = "2";
|
|
|
|
action = "ctrlSetText [1400,((ctrlText 1400) + '2')];";
|
|
|
|
};
|
|
|
|
class numkey_3: Rsc_ACE_NumKeyButton {
|
|
|
|
idc = 1602;
|
|
|
|
x = 0.350469 * safezoneW + safezoneX;
|
|
|
|
y = 0.533 * safezoneH + safezoneY;
|
|
|
|
w = 0.0309375 * safezoneW;
|
|
|
|
h = 0.033 * safezoneH;
|
|
|
|
tooltip = "3";
|
|
|
|
action = "ctrlSetText [1400,((ctrlText 1400) + '3')];";
|
|
|
|
};
|
|
|
|
class numkey_4: Rsc_ACE_NumKeyButton {
|
|
|
|
idc = 1603;
|
|
|
|
x = 0.278281 * safezoneW + safezoneX;
|
|
|
|
y = 0.577 * safezoneH + safezoneY;
|
|
|
|
w = 0.0309375 * safezoneW;
|
|
|
|
h = 0.033 * safezoneH;
|
|
|
|
tooltip = "4";
|
|
|
|
action = "ctrlSetText [1400,((ctrlText 1400) + '4')];";
|
|
|
|
};
|
|
|
|
class numkey_5: Rsc_ACE_NumKeyButton {
|
|
|
|
idc = 1604;
|
|
|
|
x = 0.314375 * safezoneW + safezoneX;
|
|
|
|
y = 0.577 * safezoneH + safezoneY;
|
|
|
|
w = 0.0309375 * safezoneW;
|
|
|
|
h = 0.033 * safezoneH;
|
|
|
|
tooltip = "5";
|
|
|
|
action = "ctrlSetText [1400,((ctrlText 1400) + '5')];";
|
|
|
|
};
|
|
|
|
class numkey_6: Rsc_ACE_NumKeyButton {
|
|
|
|
idc = 1605;
|
|
|
|
x = 0.350469 * safezoneW + safezoneX;
|
|
|
|
y = 0.577 * safezoneH + safezoneY;
|
|
|
|
w = 0.0309375 * safezoneW;
|
|
|
|
h = 0.033 * safezoneH;
|
|
|
|
tooltip = "6";
|
|
|
|
action = "ctrlSetText [1400,((ctrlText 1400) + '6')];";
|
|
|
|
};
|
|
|
|
class numkey_7: Rsc_ACE_NumKeyButton {
|
|
|
|
idc = 1606;
|
|
|
|
x = 0.278281 * safezoneW + safezoneX;
|
|
|
|
y = 0.621 * safezoneH + safezoneY;
|
|
|
|
w = 0.0309375 * safezoneW;
|
|
|
|
h = 0.033 * safezoneH;
|
|
|
|
tooltip = "7";
|
|
|
|
action = "ctrlSetText [1400,((ctrlText 1400) + '7')];";
|
|
|
|
};
|
|
|
|
class numkey_8: Rsc_ACE_NumKeyButton {
|
|
|
|
idc = 1607;
|
|
|
|
x = 0.314375 * safezoneW + safezoneX;
|
|
|
|
y = 0.621 * safezoneH + safezoneY;
|
|
|
|
w = 0.0309375 * safezoneW;
|
|
|
|
h = 0.033 * safezoneH;
|
|
|
|
tooltip = "8";
|
|
|
|
action = "ctrlSetText [1400,((ctrlText 1400) + '8')];";
|
|
|
|
};
|
|
|
|
class numkey_9: Rsc_ACE_NumKeyButton {
|
|
|
|
idc = 1608;
|
|
|
|
x = 0.350469 * safezoneW + safezoneX;
|
|
|
|
y = 0.621 * safezoneH + safezoneY;
|
|
|
|
w = 0.0309375 * safezoneW;
|
|
|
|
h = 0.033 * safezoneH;
|
|
|
|
tooltip = "9";
|
|
|
|
action = "ctrlSetText [1400,((ctrlText 1400) + '9')];";
|
|
|
|
};
|
|
|
|
class numkey_0: Rsc_ACE_NumKeyButton {
|
|
|
|
idc = 1609;
|
|
|
|
x = 0.314375 * safezoneW + safezoneX;
|
|
|
|
y = 0.676 * safezoneH + safezoneY;
|
|
|
|
w = 0.0309375 * safezoneW;
|
|
|
|
h = 0.033 * safezoneH;
|
|
|
|
tooltip = "0";
|
|
|
|
action = "ctrlSetText [1400,((ctrlText 1400) + '0')];";
|
|
|
|
};
|
|
|
|
class speedDialAdd: Rsc_ACE_NumKeyButton {
|
|
|
|
idc = 1610;
|
|
|
|
x = 0.278281 * safezoneW + safezoneX;
|
|
|
|
y = 0.676 * safezoneH + safezoneY;
|
|
|
|
w = 0.0309375 * safezoneW;
|
|
|
|
h = 0.033 * safezoneH;
|
2015-05-27 17:04:25 +00:00
|
|
|
tooltip = CSTRING(Phone_AddToSpeedDial);
|
2015-04-06 20:20:11 +00:00
|
|
|
action = QUOTE([ARR_2(ctrlText 1401,ctrlText 1400)] call FUNC(addToSpeedDial););
|
|
|
|
};
|
|
|
|
class clear: Rsc_ACE_HiddenButton {
|
|
|
|
idc = 1610;
|
|
|
|
x = 0.278281 * safezoneW + safezoneX;
|
|
|
|
y = 0.445 * safezoneH + safezoneY;
|
|
|
|
w = 0.020625 * safezoneW;
|
|
|
|
h = 0.033 * safezoneH;
|
2015-05-27 17:04:25 +00:00
|
|
|
tooltip = CSTRING(Clear);
|
2015-04-06 20:20:11 +00:00
|
|
|
action = QUOTE(ctrlSetText [ARR_2(1400,'')];[ctrlText 1401] call FUNC(removeFromSpeedDial);ctrlSetText [ARR_2(1401,'')];);
|
|
|
|
};
|
|
|
|
class dial: Rsc_ACE_HiddenButton {
|
|
|
|
idc = 1611;
|
|
|
|
x = 0.309219 * safezoneW + safezoneX;
|
|
|
|
y = 0.445 * safezoneH + safezoneY;
|
|
|
|
w = 0.04125 * safezoneW;
|
|
|
|
h = 0.033 * safezoneH;
|
2015-05-27 17:04:25 +00:00
|
|
|
tooltip = CSTRING(Phone_Dial);
|
2015-04-06 20:20:11 +00:00
|
|
|
action = QUOTE([ARR_2(ace_player,ctrlText 1400)] call FUNC(dialPhone););
|
|
|
|
};
|
|
|
|
class up: Rsc_ACE_HiddenButton {
|
|
|
|
idc = 1612;
|
|
|
|
x = 0.360781 * safezoneW + safezoneX;
|
|
|
|
y = 0.445 * safezoneH + safezoneY;
|
|
|
|
w = 0.020625 * safezoneW;
|
|
|
|
h = 0.033 * safezoneH;
|
2015-05-27 17:04:25 +00:00
|
|
|
tooltip = CSTRING(Phone_Up);
|
2015-04-06 20:20:11 +00:00
|
|
|
action = QUOTE([true] call FUNC(setSpeedDial));
|
|
|
|
};
|
|
|
|
class down: Rsc_ACE_HiddenButton {
|
|
|
|
idc = 1613;
|
|
|
|
x = 0.345312 * safezoneW + safezoneX;
|
|
|
|
y = 0.485 * safezoneH + safezoneY;
|
|
|
|
w = 0.020625 * safezoneW;
|
|
|
|
h = 0.033 * safezoneH;
|
2015-05-27 17:04:25 +00:00
|
|
|
tooltip = CSTRING(Phone_Down);
|
2015-04-06 20:20:11 +00:00
|
|
|
action = QUOTE([false] call FUNC(setSpeedDial));
|
|
|
|
};
|
|
|
|
class speedDial_Text: RscText {
|
|
|
|
idc = 1405;
|
|
|
|
y = 0.302 * safezoneH + safezoneY;
|
|
|
|
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 22) * 1)";
|
|
|
|
x = 0.288594 * safezoneW + safezoneX;
|
|
|
|
w = 0.0825 * safezoneW;
|
|
|
|
h = 0.044 * safezoneH;
|
|
|
|
text = "Name";
|
|
|
|
};
|
|
|
|
class speedDial_edit: Rsc_ACE_CallScreen_Edit {
|
|
|
|
idc = 1401;
|
|
|
|
y = 0.302 * safezoneH + safezoneY;
|
|
|
|
x = 0.318 * safezoneW + safezoneX;
|
|
|
|
w = 0.1;
|
|
|
|
};
|
|
|
|
class numberEdit_Text: RscText {
|
|
|
|
idc = 1406;
|
|
|
|
y = 0.348 * safezoneH + safezoneY;
|
|
|
|
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 22) * 1)";
|
|
|
|
x = 0.288594 * safezoneW + safezoneX;
|
|
|
|
w = 0.0825 * safezoneW;
|
|
|
|
h = 0.044 * safezoneH;
|
|
|
|
text = "#";
|
|
|
|
};
|
|
|
|
class number_edit: Rsc_ACE_CallScreen_Edit {
|
|
|
|
canModify = 0;
|
|
|
|
idc = 1400;
|
|
|
|
y = 0.348 * safezoneH + safezoneY;
|
|
|
|
x = 0.3 * safezoneW + safezoneX;
|
|
|
|
};
|
|
|
|
};
|
2015-02-04 00:16:47 +00:00
|
|
|
};
|