mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
104 lines
5.8 KiB
C++
104 lines
5.8 KiB
C++
#include "\z\ace\addons\common\define.hpp"
|
|
|
|
class GVAR(menu) {
|
|
idd = 314614;
|
|
movingEnable = true;
|
|
onLoad = QUOTE([_this select 0] call FUNC(onMenuOpen));
|
|
onUnload = QUOTE(uiNamespace setVariable [ARR_2(QUOTE(QGVAR(menuDisplay)),nil)];);
|
|
class controlsBackground {
|
|
class HeaderBackground: ACE_gui_backgroundBase{
|
|
idc = -1;
|
|
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
|
|
x = "13 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
|
y = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
|
w = "13 * (((safezoneW / safezoneH) min 1.2) / 40)";
|
|
h = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
|
text = "#(argb,8,8,3)color(0,0,0,0)";
|
|
};
|
|
class CenterBackground: HeaderBackground {
|
|
y = "2.1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
|
h = "14 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
|
text = "#(argb,8,8,3)color(0,0,0,0.8)";
|
|
colorText[] = {0, 0, 0, "(profilenamespace getVariable ['GUI_BCG_RGB_A',0.9])"};
|
|
colorBackground[] = {0,0,0,"(profilenamespace getVariable ['GUI_BCG_RGB_A',0.9])"};
|
|
};
|
|
};
|
|
|
|
class controls {
|
|
class HeaderName {
|
|
idc = 1;
|
|
type = CT_STATIC;
|
|
x = "13 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
|
y = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
|
w = "13 * (((safezoneW / safezoneH) min 1.2) / 40)";
|
|
h = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
|
style = ST_LEFT + ST_SHADOW;
|
|
font = "PuristaMedium";
|
|
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
|
|
colorText[] = {0.95, 0.95, 0.95, 0.75};
|
|
colorBackground[] = {"(profilenamespace getVariable ['GUI_BCG_RGB_R',0.69])","(profilenamespace getVariable ['GUI_BCG_RGB_G',0.75])","(profilenamespace getVariable ['GUI_BCG_RGB_B',0.5])", "(profilenamespace getVariable ['GUI_BCG_RGB_A',0.9])"};
|
|
text = CSTRING(cargoMenu);
|
|
};
|
|
class SubHeader: HeaderName {
|
|
idc = 2;
|
|
x = "13 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
|
y = "2.5 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
|
w = "13 * (((safezoneW / safezoneH) min 1.2) / 40)";
|
|
h = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
|
style = ST_CENTER;
|
|
colorText[] = {1, 1, 1.0, 0.9};
|
|
colorBackground[] = {0,0,0,0};
|
|
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1.2)";
|
|
text = "";
|
|
};
|
|
class cargoList: ACE_gui_listBoxBase {
|
|
idc = 100;
|
|
x = "13.1 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
|
y = "4 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
|
w = "12.8 * (((safezoneW / safezoneH) min 1.2) / 40)";
|
|
h = "10 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
|
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.7)";
|
|
rowHeight = 0.03;
|
|
colorBackground[] = {0, 0, 0, 0.2};
|
|
colorText[] = {1, 1, 1, 1.0};
|
|
colorScrollbar[] = {0.95, 0.95, 0.95, 1};
|
|
colorSelect[] = {1, 1, 1, 1.0};
|
|
colorSelect2[] = {1, 1, 1, 1.0};
|
|
colorSelectBackground[] = {0.3, 0.3, 0.3, 1.0};
|
|
colorSelectBackground2[] = {0.3, 0.3, 0.3, 1.0};
|
|
};
|
|
class btnCancel: ACE_gui_buttonBase {
|
|
text = "Cancel";
|
|
idc = 11;
|
|
x = "13.1 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
|
y = "14.1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) + (safezoneY + (safezoneH - (((safezoneW / safezoneH) min 1.2) / 1.2))/2)";
|
|
w = "5 * (((safezoneW / safezoneH) min 1.2) / 40)";
|
|
h = "1 * ((((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
|
|
size = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
|
|
SizeEx = "(((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 0.7)";
|
|
animTextureNormal = "#(argb,8,8,3)color(0,0,0,0.9)";
|
|
animTextureDisabled = "#(argb,8,8,3)color(0,0,0,0.8)";
|
|
animTextureOver = "#(argb,8,8,3)color(1,1,1,1)";
|
|
animTextureFocused = "#(argb,8,8,3)color(1,1,1,1)";
|
|
animTexturePressed = "#(argb,8,8,3)color(1,1,1,1)";
|
|
animTextureDefault = "#(argb,8,8,3)color(1,1,1,1)";
|
|
color[] = {1, 1, 1, 1};
|
|
color2[] = {0,0,0, 1};
|
|
colorBackgroundFocused[] = {1,1,1,1};
|
|
colorBackground[] = {1,1,1,1};
|
|
colorbackground2[] = {1,1,1,1};
|
|
colorDisabled[] = {1,1,1,1};
|
|
colorFocused[] = {0,0,0,1};
|
|
periodFocus = 1;
|
|
periodOver = 1;
|
|
action = QUOTE(closeDialog 0);
|
|
};
|
|
class btnUnload: btnCancel {
|
|
text = CSTRING(unloadObject);
|
|
idc = 12;
|
|
x = "20.9 * (((safezoneW / safezoneH) min 1.2) / 40) + (safezoneX + (safezoneW - ((safezoneW / safezoneH) min 1.2))/2)";
|
|
action = QUOTE([] call FUNC(startUnload););
|
|
};
|
|
};
|
|
};
|