// Control types
#define CT_STATIC 0
#define CT_BUTTON 1
#define ST_LEFT 0x00
////////////////////////////////////////////////////////////////////////BASE CONFIG
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
class VehRscButton {
idc = 5842;
type = CT_BUTTON;
style = ST_LEFT;
shadow = 0;
font = "PuristaMedium";
sizeEx = "((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1";
colorText[] = {1,1,1,1};
colorDisabled[] = {0.4,0.4,0.4,1};
colorBackground[] = {0,0,0,1};
colorBackgroundActive[] = {0.4,0.4,0.4,1};
colorBackgroundDisabled[] = {0.5,0.5,0.5,1};
offsetX = 0.003;
offsetY = 0.003;
offsetPressedX = 0.002;
offsetPressedY = 0.002;
colorFocused[] = {1,1,1,1};
colorShadow[] = {0,0,0,0};
colorBorder[] = {0,0,0,0};
borderSize = 0.0;
soundEnter[] = {__UI_Sound_Path(mouse2), 0.09,1};
soundPush[] = {__UI_Sound_Path(new1), 0.0, 1};
soundClick[] = {__UI_Sound_Path(mouse3), 0.07, 1};
soundEscape[] = {__UI_Sound_Path(mouse1), 0.09, 1};
default = false;
};
class VehRscButtonTitle {
idc = 5843;
type = CT_STATIC;
style = ST_LEFT;
shadow = 0;
font = "PuristaMedium";
sizeEx = "((((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1";
colorText[] = {1,1,1,1};
colorDisabled[] = {0.4,0.4,0.4,1};
colorBackground[] = {0,0,0,1};
colorBackgroundActive[] = {0.4,0.4,0.4,1};
colorBackgroundDisabled[] = {0.95,0.95,0.95,1};
offsetX = 0.003;
offsetY = 0.003;
offsetPressedX = 0.002;
offsetPressedY = 0.002;
colorFocused[] = {1,1,1,1};
colorShadow[] = {0,0,0,1};
colorBorder[] = {0,0,0,0};
borderSize = 0.0;
soundEnter[] = {__UI_Sound_Path(mouse2), 0.09,1};
soundPush[] = {__UI_Sound_Path(new1), 0.0, 1};
soundClick[] = {__UI_Sound_Path(mouse3), 0.07, 1};
soundEscape[] = {__UI_Sound_Path(mouse1), 0.09, 1};
default = false;
};
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
class VehDialog {
onLoad = "_this execVM'!serveraddons\veh_menu\onVehDialog.sqf'"; // При вызове диалога вызывается скрит
onUnload = "_this execVM'!serveraddons\veh_menu\offVehDialog.sqf'"; // При закрытии диалога вызывается скрипт
idd = 5800;
movingEnable = 1;
objects[] = {};
controlsBackground[] = {};
controls[] = {VButTitle, VBut1, VBut2};
class VButTitle : VehRscButtonTitle {
x = 0.05 * safezoneW + safezoneX;
y = 0.05 * safezoneH + safezoneY;
w = 0.3 * safezoneW;
h = 0.03 * safezoneH;
text = "ВИРТУАЛЬНЫЙ АНГАР";
colorText[] = {0.5,0.5,0.5,1.0};
action = "";
};
class VBut1 : VehRscButton {
idd = 5801;
x = 0.05 * safezoneW + safezoneX;
y = 0.09 * safezoneH + safezoneY;
w = 0.3 * safezoneW;
h = 0.03 * safezoneH;
text = "Доставить на Базу Урал-4320";
action = "as = [] execVM ""!serveraddons\veh_menu\createvehicle\createbtr1.sqf""; CloseDialog 0";
};
class VBut2 : VBut1 {
idd = 5802;
x = 0.05 * safezoneW + safezoneX;
y = 0.13 * safezoneH + safezoneY;
w = 0.3 * safezoneW;
h = 0.03 * safezoneH;
text = "Доставить на Базу ГАЗ-233011 Тигр";
action = "as = [] execVM ""!serveraddons\veh_menu\createvehicle\createbtr2.sqf""; CloseDialog 0";
};
};