890 lines
26 KiB
C++
890 lines
26 KiB
C++
// Control types
|
|
#define CT_STATIC 0
|
|
#define CT_BUTTON 1
|
|
#define CT_EDIT 2
|
|
#define CT_SLIDER 3
|
|
#define CT_COMBO 4
|
|
#define CT_LISTBOX 5
|
|
#define CT_TOOLBOX 6
|
|
#define CT_CHECKBOXES 7
|
|
#define CT_PROGRESS 8
|
|
#define CT_HTML 9
|
|
#define CT_STATIC_SKEW 10
|
|
#define CT_ACTIVETEXT 11
|
|
#define CT_TREE 12
|
|
#define CT_STRUCTURED_TEXT 13
|
|
#define CT_CONTEXT_MENU 14
|
|
#define CT_CONTROLS_GROUP 15
|
|
#define CT_SHORTCUT_BUTTON 16 // Arma 2 - textured button
|
|
|
|
#define CT_XKEYDESC 40
|
|
#define CT_XBUTTON 41
|
|
#define CT_XLISTBOX 42
|
|
#define CT_XSLIDER 43
|
|
#define CT_XCOMBO 44
|
|
#define CT_ANIMATED_TEXTURE 45
|
|
#define CT_OBJECT 80
|
|
#define CT_OBJECT_ZOOM 81
|
|
#define CT_OBJECT_CONTAINER 82
|
|
#define CT_OBJECT_CONT_ANIM 83
|
|
#define CT_LINEBREAK 98
|
|
#define CT_USER 99
|
|
#define CT_MAP 100
|
|
#define CT_MAP_MAIN 101
|
|
#define CT_List_N_Box 102 // Arma 2 - N columns list box
|
|
|
|
|
|
// Static styles
|
|
#define ST_POS 0x0F
|
|
#define ST_HPOS 0x03
|
|
#define ST_VPOS 0x0C
|
|
#define ST_LEFT 0x00
|
|
#define ST_RIGHT 0x01
|
|
#define ST_CENTER 0x02
|
|
#define ST_DOWN 0x04
|
|
#define ST_UP 0x08
|
|
#define ST_VCENTER 0x0c
|
|
|
|
#define CT_MAP_MAIN 101
|
|
#define ST_PICTURE 48
|
|
|
|
#define ST_TYPE 0xF0
|
|
#define ST_SINGLE 0
|
|
#define ST_MULTI 16
|
|
#define ST_TITLE_BAR 32
|
|
#define ST_PICTURE 48
|
|
#define ST_FRAME 64
|
|
#define ST_BACKGROUND 80
|
|
#define ST_GROUP_BOX 96
|
|
#define ST_GROUP_BOX2 112
|
|
#define ST_HUD_BACKGROUND 128
|
|
#define ST_TILE_PICTURE 144
|
|
#define ST_WITH_RECT 160
|
|
#define ST_LINE 176
|
|
|
|
#define ST_SHADOW 0x100
|
|
#define ST_NO_RECT 0x200 // this style works for CT_STATIC in conjunction with ST_MULTI
|
|
#define ST_KEEP_ASPECT_RATIO 0x800
|
|
|
|
#define ST_TITLE ST_TITLE_BAR + ST_CENTER
|
|
|
|
// Slider styles
|
|
#define SL_DIR 0x400
|
|
#define SL_VERT 0
|
|
#define SL_HORZ 0x400
|
|
|
|
#define SL_TEXTURES 0x10
|
|
|
|
// Listbox styles
|
|
#define LB_TEXTURES 0x10
|
|
#define LB_MULTI 0x20
|
|
|
|
#define FontM "puristaMedium"
|
|
|
|
#define BORDERSIZE 0.01
|
|
|
|
#define BASE_Y 0.075
|
|
|
|
class RscListBox {
|
|
idc = -1;
|
|
type = 5;
|
|
style = 0 + 0x10;
|
|
font = FontM;
|
|
sizeEx = 0.018 * safezoneH;
|
|
rowHeight = 0.02 * safezoneH;
|
|
color[] = COLOR_LIGHTGRAY;
|
|
colorText[] = COLOR_WHITE;
|
|
colorScrollbar[] = COLOR_BRIGHTGREEN;
|
|
colorSelect[] = COLOR_BRIGHTGREEN;
|
|
colorSelect2[] = COLOR_BRIGHTGREEN;
|
|
colorSelectBackground[] = COLOR_LIGHTGRAY;
|
|
colorSelectBackground2[] = COLOR_LIGHTGRAY;
|
|
colorActive[] = COLOR_BRIGHTGREEN;
|
|
colorDisabled[] = COLOR_GREEN;
|
|
columns[] = {0.1, 0.7, 0.1, 0.1};
|
|
period = 0;
|
|
colorBackground[] = COLOR_GREEN;
|
|
maxHistoryDelay = 1.0;
|
|
autoScrollSpeed = -1;
|
|
autoScrollDelay = 5;
|
|
autoScrollRewind = 0;
|
|
soundSelect[] = {"\a3\Ui_f\data\Sound\CfgIngameUI\hintExpand", 0.09, 1};
|
|
shadow = 2;
|
|
|
|
class ListScrollBar {
|
|
color[] = {1, 1, 1, 0.6};
|
|
colorActive[] = {1, 1, 1, 1};
|
|
colorDisabled[] = {1, 1, 1, 0.3};
|
|
thumb = "\A3\ui_f\data\gui\cfg\scrollbar\thumb_ca.paa";
|
|
arrowEmpty = "\A3\ui_f\data\gui\cfg\scrollbar\arrowEmpty_ca.paa";
|
|
arrowFull = "\A3\ui_f\data\gui\cfg\scrollbar\arrowFull_ca.paa";
|
|
border = "\A3\ui_f\data\gui\cfg\scrollbar\border_ca.paa";
|
|
};
|
|
};
|
|
|
|
class RscCombo {
|
|
idc = -1;
|
|
type = 4;
|
|
style = 1;
|
|
x = 0;
|
|
y = 0;
|
|
w = 0.3;
|
|
h = 0.035;
|
|
colorSelect[] = COLOR_BRIGHTGREEN;
|
|
colorText[] = COLOR_WHITE;
|
|
colorBackground[] = COLOR_GREEN;
|
|
colorSelectBackground[] = COLOR_LIGHTGRAY;
|
|
colorScrollbar[] = COLOR_BRIGHTGREEN;
|
|
arrowEmpty ="\A3\ui_f\data\gui\cfg\scrollbar\arrowEmpty_ca.paa";
|
|
arrowFull = "\A3\ui_f\data\gui\cfg\scrollbar\arrowFull_ca.paa";
|
|
wholeHeight = 0.45;
|
|
color[] = COLOR_LIGHTGRAY;
|
|
colorActive[] = COLOR_BRIGHTGREEN;
|
|
colorDisabled[] = COLOR_GREEN;
|
|
font = FontM;
|
|
sizeEx = 0.031;
|
|
soundSelect[] = {"\a3\Ui_f\data\Sound\CfgIngameUI\hintExpand", 0.09, 1};
|
|
soundExpand[] = {"\a3\Ui_f\data\Sound\CfgIngameUI\hintExpand", 0.09, 1};
|
|
soundCollapse[] = {"\a3\Ui_f\data\Sound\CfgIngameUI\hintExpand", 0.09, 1};
|
|
maxHistoryDelay = 1.0;
|
|
|
|
class ComboScrollBar {
|
|
color[] = {1, 1, 1, 0.6};
|
|
colorActive[] = {1, 1, 1, 1};
|
|
colorDisabled[] = {1, 1, 1, 0.3};
|
|
thumb = "\A3\ui_f\data\gui\cfg\scrollbar\thumb_ca.paa";
|
|
arrowEmpty = "\A3\ui_f\data\gui\cfg\scrollbar\arrowEmpty_ca.paa";
|
|
arrowFull = "\A3\ui_f\data\gui\cfg\scrollbar\arrowFull_ca.paa";
|
|
border = "\A3\ui_f\data\gui\cfg\scrollbar\border_ca.paa";
|
|
};
|
|
};
|
|
|
|
class GREUH_Menu {
|
|
idd = 5565;
|
|
movingEnable = false;
|
|
controlsBackground[] = {};
|
|
controls[] = {"GREUH_OuterBG", "BgPicture", "GREUH_OuterBG_F","GREUH_InnerBG", "GREUH_InnerBG_F","GREUH_Header","GREUH_SquadLabel",
|
|
"GREUH_SquadZone","GREUH_PlatoonLabel","GREUH_ViewDistance","GREUH_WorldQuality",
|
|
"GREUH_Close","GREUH_ButtonWorldVeryLow","GREUH_ButtonWorldLow","GREUH_ButtonWorldNormal","GREUH_ButtonWorldHigh",
|
|
"GREUH_Slider","GREUH_SliderVD","GREUH_LabelMarkers","GREUH_TeammatesYes","GREUH_TeammatesNo","GREUH_LabelPlatoon",
|
|
"GREUH_PlatoonYes","GREUH_PlatoonNo","GREUH_LabelPlatoonActive","GREUH_LabelMarkersActive","GREUH_SquadList",
|
|
"GREUH_ButtonJoin","GREUH_ButtonNew","GREUH_ButtonRename","GREUH_PlatoonZone","GREUH_ViewZone","GREUH_WorldZone",
|
|
"GREUH_MarkersZone","GREUH_Squad_OuterBG","GREUH_Squad_InnerBG","GREUH_Squad_OuterBG_F","GREUH_Squad_InnerBG_F",
|
|
"GREUH_ButtonName_Rename","GREUH_ButtonName_Abort","GREUH_Squad_TextField","GREUH_LabelVD","GREUH_ButtonLeader",
|
|
"GREUH_SliderVeh","GREUH_LabelVDVeh","GREUH_SliderVDVeh","GREUH_SliderObj","GREUH_LabelVDObj","GREUH_SliderVDObj",
|
|
"GREUH_Leader_OuterBG", "GREUH_Leader_InnerBG", "GREUH_Leader_OuterBG_F", "GREUH_Leader_InnerBG_F",
|
|
"GREUH_ButtonLeader_Choose", "GREUH_ButtonLeader_Abort", "GREUH_Squad_Combo", "GREUH_VehSound", "GREUH_SliderVehSound",
|
|
"GREUH_LabelVehSound","GREUH_LabelNametags","GREUH_NametagsActive","GREUH_NametagsYes","GREUH_NametagsNo",
|
|
"GREUH_FPSLabel","GREUH_FPSEdit"};
|
|
objects[] = {};
|
|
|
|
class BgPicture {
|
|
idc = -1;
|
|
type = CT_STATIC;
|
|
style = ST_PICTURE;
|
|
colorText[] = {0.5, 0.4, 0.25, 0.6};
|
|
colorBackground[] = {0, 0, 0, 1};
|
|
font = FontM;
|
|
sizeEx = 0.023;
|
|
moving = false;
|
|
text = "res\camo03.jpg";
|
|
x = (0.15 * safezoneW + safezoneX) - ( 2 * BORDERSIZE);
|
|
y = ((BASE_Y + 0.02) * safezoneH) + safezoneY - (3 * BORDERSIZE);
|
|
w = (0.2 * safezoneW) + (4 * BORDERSIZE);
|
|
h = (0.79 * safezoneH) + (6 * BORDERSIZE);
|
|
};
|
|
|
|
class GREUH_OuterBG {
|
|
idc = -1;
|
|
type = CT_STATIC;
|
|
style = ST_SINGLE;
|
|
colorText[] = COLOR_BLACK;
|
|
colorBackground[] = COLOR_BROWN;
|
|
font = FontM;
|
|
sizeEx = 0.023;
|
|
x = (0.15 * safezoneW + safezoneX) - ( 2 * BORDERSIZE);
|
|
y = ((BASE_Y + 0.02) * safezoneH) + safezoneY - (3 * BORDERSIZE);
|
|
w = (0.2 * safezoneW) + (4 * BORDERSIZE);
|
|
h = (0.79 * safezoneH) + (6 * BORDERSIZE);
|
|
text = "";
|
|
};
|
|
class GREUH_OuterBG_F : GREUH_OuterBG {
|
|
style = ST_FRAME;
|
|
};
|
|
class GREUH_InnerBG : GREUH_OuterBG {
|
|
colorBackground[] = COLOR_GREEN;
|
|
x = (0.15 * safezoneW + safezoneX) - ( BORDERSIZE);
|
|
y = ((BASE_Y + 0.07) * safezoneH) + safezoneY - (1.5 * BORDERSIZE);
|
|
w = 0.2 * safezoneW + (2 * BORDERSIZE);
|
|
h = 0.74 * safezoneH + (3 * BORDERSIZE);
|
|
};
|
|
class GREUH_InnerBG_F : GREUH_InnerBG {
|
|
style = ST_FRAME;
|
|
};
|
|
class GREUH_StdText {
|
|
idc = -1;
|
|
type = CT_STATIC;
|
|
style = ST_LEFT;
|
|
colorText[] = COLOR_WHITE;
|
|
colorBackground[] = COLOR_NOALPHA;
|
|
font = FontM;
|
|
sizeEx = 0.02 * safezoneH;
|
|
shadow = 2;
|
|
};
|
|
class GREUH_StdHeader : GREUH_StdText {
|
|
style = ST_CENTER;
|
|
sizeEx = 0.03 * safezoneH;
|
|
};
|
|
class GREUH_Header : GREUH_StdHeader {
|
|
x = 0.15 * safezoneW + safezoneX - (BORDERSIZE);
|
|
y = ((BASE_Y + 0.01) * safezoneH) + safezoneY;
|
|
w = 0.2 * safezoneW + ( 2 * BORDERSIZE);
|
|
h = 0.05 * safezoneH - (BORDERSIZE);
|
|
text = $STR_GREUH_EXTENDED_OPTIONS;
|
|
colorBackground[] = COLOR_LIGHTGRAY;
|
|
};
|
|
class GREUH_ButtonGeneric {
|
|
idc = -1;
|
|
type = CT_BUTTON;
|
|
style = ST_CENTER;
|
|
default = false;
|
|
font = FontM;
|
|
sizeEx = 0.018 * safezoneH;
|
|
colorText[] = { 0, 0, 0, 1 };
|
|
colorFocused[] = { 1, 1, 1, 1 };
|
|
colorDisabled[] = { 0.2, 0.2, 0.2, 0.7 };
|
|
colorBackground[] = { 0.8, 0.8, 0.8, 0.8 };
|
|
colorBackgroundDisabled[] = { 0.5, 0.5, 0.5, 0.5 };
|
|
colorBackgroundActive[] = { 1, 1, 1, 1 };
|
|
offsetX = 0.003;
|
|
offsetY = 0.003;
|
|
offsetPressedX = 0.002;
|
|
offsetPressedY = 0.002;
|
|
colorShadow[] = { 0, 0, 0, 0.5 };
|
|
colorBorder[] = { 0, 0, 0, 1 };
|
|
borderSize = 0;
|
|
soundEnter[] = { "", 0, 1 }; // no sound
|
|
soundPush[] = {"\a3\Ui_f\data\Sound\CfgIngameUI\hintExpand", 0.891251, 1};
|
|
soundClick[] = { "", 0, 1 }; // no sound
|
|
soundEscape[] = { "", 0, 1 }; // no sound
|
|
x = 0.15 * safezoneW + safezoneX;
|
|
w = 0.2 * safezoneW; h = 0.03 * safezoneH;
|
|
text = "";
|
|
action = "";
|
|
shadow = 1;
|
|
};
|
|
class GREUH_Label : GREUH_StdHeader {
|
|
x = 0.15 * safezoneW + safezoneX;
|
|
w = 0.2 * safezoneW;
|
|
h = 0.03 * safezoneH;
|
|
sizeEx = 0.02 * safezoneH;
|
|
colorBackground[] = COLOR_LIGHTGREEN;
|
|
};
|
|
|
|
class GREUH_DefaultZone : GREUH_StdText {
|
|
style = ST_CENTER;
|
|
x = 0.15 * safezoneW + safezoneX;
|
|
w = 0.2 * safezoneW;
|
|
colorText[] = COLOR_LIGHTGRAY;
|
|
colorBackground[] = COLOR_RED_DISABLED;
|
|
text = $STR_GREUH_DISABLED;
|
|
};
|
|
class GREUH_RegularLabel : GREUH_Label {
|
|
colorBackground[] = COLOR_NOALPHA;
|
|
style = ST_LEFT;
|
|
};
|
|
class GREUH_Close : GREUH_ButtonGeneric {
|
|
idc = 6677;
|
|
x = 0.335 * safezoneW + safezoneX;
|
|
w = 0.015 * safezoneW; h = 0.02 * safezoneH;
|
|
y = ((BASE_Y + 0.015) * safezoneH) + safezoneY;
|
|
text = "X";
|
|
action = "closeDialog 0";
|
|
};
|
|
class GREUH_SquadZone : GREUH_DefaultZone {
|
|
idc = 501;
|
|
y = ((BASE_Y + 0.11) * safezoneH) + safezoneY;
|
|
h = (0.2 * safezoneH) - (2 * BORDERSIZE);
|
|
};
|
|
class GREUH_SquadLabel : GREUH_Label {
|
|
idc = 510;
|
|
y = ((BASE_Y + 0.07) * safezoneH) + safezoneY;
|
|
text = $STR_GREUH_SQUAD_MANAGEMENT;
|
|
};
|
|
class GREUH_SquadList : RscListBox {
|
|
idc = 515;
|
|
x = 0.15 * safezoneW + safezoneX;
|
|
w = 0.15 * safezoneW;
|
|
y = ((BASE_Y + 0.11) * safezoneH) + safezoneY;
|
|
h = (0.2 * safezoneH) - (2 * BORDERSIZE);
|
|
};
|
|
class GREUH_ButtonSquad : GREUH_ButtonGeneric {
|
|
x = 0.3 * safezoneW + safezoneX + BORDERSIZE;
|
|
w = ((0.2 * safezoneW) / 4) - BORDERSIZE;
|
|
};
|
|
class GREUH_ButtonJoin : GREUH_ButtonSquad {
|
|
idc = 511;
|
|
text = $STR_GREUH_JOIN;
|
|
action = "squadaction = 'join';";
|
|
y = ((BASE_Y + 0.11) * safezoneH) + safezoneY;
|
|
};
|
|
class GREUH_ButtonNew : GREUH_ButtonSquad {
|
|
idc = 512;
|
|
text = $STR_GREUH_CREATE;
|
|
action = "squadaction = 'create';";
|
|
y = ((BASE_Y + 0.15) * safezoneH) + safezoneY;
|
|
};
|
|
class GREUH_ButtonRename : GREUH_ButtonSquad {
|
|
idc = 513;
|
|
text = $STR_GREUH_RENAME;
|
|
action = "squadaction = 'rename';";
|
|
y = ((BASE_Y + 0.19) * safezoneH) + safezoneY;
|
|
};
|
|
class GREUH_ButtonLeader : GREUH_ButtonSquad {
|
|
idc = 514;
|
|
text = $STR_GREUH_LEADER;
|
|
action = "squadaction = 'leader';";
|
|
y = ((BASE_Y + 0.23) * safezoneH) + safezoneY;
|
|
};
|
|
class GREUH_Squad_OuterBG : GREUH_OuterBG {
|
|
idc = 521;
|
|
style = ST_SINGLE;
|
|
x = (0.37 * safezoneW + safezoneX) - (BORDERSIZE);
|
|
y = ((BASE_Y + 0.18) * safezoneH) + safezoneY - (1.5 * BORDERSIZE);
|
|
w = 0.2 * safezoneW + (2 * BORDERSIZE);
|
|
h = 0.05 * safezoneH + (3 * BORDERSIZE);
|
|
};
|
|
class GREUH_Squad_InnerBG : GREUH_OuterBG {
|
|
idc = 522;
|
|
colorBackground[] = COLOR_GREEN;
|
|
x = (0.37 * safezoneW + safezoneX);
|
|
y = ((BASE_Y + 0.18) * safezoneH) + safezoneY;
|
|
w = 0.2 * safezoneW;
|
|
h = 0.05 * safezoneH;
|
|
};
|
|
class GREUH_Squad_OuterBG_F : GREUH_Squad_OuterBG {
|
|
idc = 523;
|
|
style = ST_FRAME;
|
|
};
|
|
class GREUH_Squad_InnerBG_F : GREUH_Squad_InnerBG {
|
|
idc = 524;
|
|
style = ST_FRAME;
|
|
};
|
|
class GREUH_ButtonName : GREUH_ButtonGeneric {
|
|
w = ((0.2 * safezoneW) / 5) - BORDERSIZE;
|
|
y = ((BASE_Y + 0.19) * safezoneH) + safezoneY;
|
|
};
|
|
class GREUH_ButtonName_Rename : GREUH_ButtonName {
|
|
idc = 525;
|
|
x = 0.4875 * safezoneW + safezoneX;
|
|
text = $STR_GREUH_RENAME;
|
|
action = "squadname = ctrlText 527;";
|
|
};
|
|
class GREUH_ButtonName_Abort : GREUH_ButtonName {
|
|
idc = 526;
|
|
x = (0.4875 * safezoneW + safezoneX) + ((0.2 * safezoneW) / 5);
|
|
text = $STR_GREUH_CANCEL;
|
|
action = "squadaction = '';";
|
|
};
|
|
class GREUH_Squad_TextField : GREUH_ButtonName {
|
|
idc = 527;
|
|
type = CT_EDIT;
|
|
style = ST_LEFT;
|
|
x = (0.37 * safezoneW + safezoneX) + BORDERSIZE;
|
|
w = 0.11 * safezoneW;
|
|
text = "";
|
|
action = "";
|
|
colorText[] = COLOR_WHITE;
|
|
colorSelection[] = COLOR_BRIGHTGREEN;
|
|
autocomplete = "";
|
|
};
|
|
|
|
class GREUH_Leader_OuterBG : GREUH_OuterBG {
|
|
idc = 561;
|
|
style = ST_SINGLE;
|
|
x = (0.37 * safezoneW + safezoneX) - (BORDERSIZE);
|
|
y = ((BASE_Y + 0.22) * safezoneH) + safezoneY - (1.5 * BORDERSIZE);
|
|
w = 0.2 * safezoneW + (2 * BORDERSIZE);
|
|
h = 0.05 * safezoneH + (3 * BORDERSIZE);
|
|
};
|
|
class GREUH_Leader_InnerBG : GREUH_OuterBG {
|
|
idc = 562;
|
|
colorBackground[] = COLOR_GREEN;
|
|
x = (0.37 * safezoneW + safezoneX);
|
|
y = ((BASE_Y + 0.22) * safezoneH) + safezoneY;
|
|
w = 0.2 * safezoneW;
|
|
h = 0.05 * safezoneH;
|
|
};
|
|
class GREUH_Leader_OuterBG_F : GREUH_Leader_OuterBG {
|
|
idc = 563;
|
|
style = ST_FRAME;
|
|
};
|
|
class GREUH_Leader_InnerBG_F : GREUH_Leader_InnerBG {
|
|
idc = 564;
|
|
style = ST_FRAME;
|
|
};
|
|
class GREUH_ButtonLeaderGen : GREUH_ButtonGeneric {
|
|
w = ((0.2 * safezoneW) / 5) - BORDERSIZE;
|
|
y = ((BASE_Y + 0.23) * safezoneH) + safezoneY;
|
|
};
|
|
class GREUH_ButtonLeader_Choose : GREUH_ButtonLeaderGen {
|
|
idc = 565;
|
|
x = 0.4875 * safezoneW + safezoneX;
|
|
text = $STR_GREUH_CHOOSE;
|
|
action = "choose_squadleader = lbCurSel 567;";
|
|
};
|
|
class GREUH_ButtonLeader_Abort : GREUH_ButtonLeaderGen {
|
|
idc = 566;
|
|
x = (0.4875 * safezoneW + safezoneX) + ((0.2 * safezoneW) / 5);
|
|
text = $STR_GREUH_CANCEL;
|
|
action = "squadaction = ''";
|
|
};
|
|
class GREUH_Squad_Combo : RscCombo {
|
|
idc = 567;
|
|
x = (0.37 * safezoneW + safezoneX) + BORDERSIZE;
|
|
w = 0.11 * safezoneW;
|
|
y = ((BASE_Y + 0.23) * safezoneH) + safezoneY;
|
|
h = 0.03 * safezoneH;
|
|
};
|
|
class GREUH_PlatoonZone : GREUH_DefaultZone {
|
|
idc = 601;
|
|
y = ((BASE_Y + 0.35) * safezoneH) + safezoneY;
|
|
h = (0.04 * safezoneH) - (2 * BORDERSIZE);
|
|
};
|
|
class GREUH_PlatoonLabel : GREUH_Label {
|
|
idc = 610;
|
|
y = ((BASE_Y + 0.31) * safezoneH) + safezoneY;
|
|
text = $STR_GREUH_PLATOON_SQUAD_AWARENESS;
|
|
};
|
|
class GREUH_LabelPlatoon : GREUH_RegularLabel {
|
|
idc = 611;
|
|
y = ((BASE_Y + 0.35) * safezoneH) + safezoneY;
|
|
text = $STR_GREUH_SHOW_PLATOON_OVERLAY;
|
|
};
|
|
class GREUH_LabelPlatoonActive : GREUH_RegularLabel {
|
|
idc = 612;
|
|
style = ST_RIGHT;
|
|
colorText[] = COLOR_BRIGHTGREEN;
|
|
text = $STR_GREUH_ACTIVE;
|
|
x = 0.2 * safezoneW + safezoneX;
|
|
w = 0.1 * safezoneW;
|
|
y = ((BASE_Y + 0.35) * safezoneH) + safezoneY;
|
|
};
|
|
class GREUH_PlatoonYes : GREUH_ButtonGeneric {
|
|
idc = 613;
|
|
w = ((0.08 * safezoneW) / 4);
|
|
y = ((BASE_Y + 0.35) * safezoneH) + safezoneY;
|
|
x = 0.305 * safezoneW + safezoneX;
|
|
text = $STR_GREUH_YES;
|
|
action = "show_platoon = true";
|
|
};
|
|
class GREUH_PlatoonNo : GREUH_ButtonGeneric {
|
|
idc = 614;
|
|
w = ((0.08 * safezoneW) / 4);
|
|
y = ((BASE_Y + 0.35) * safezoneH) + safezoneY;
|
|
x = (0.32 + BORDERSIZE) * safezoneW + safezoneX;
|
|
text = $STR_GREUH_NO;
|
|
action = "show_platoon = false";
|
|
};
|
|
class GREUH_ViewZone : GREUH_DefaultZone {
|
|
idc = 701;
|
|
y = ((BASE_Y + 0.51) * safezoneH) + safezoneY;
|
|
h = (0.04 * safezoneH) - (2 * BORDERSIZE);
|
|
};
|
|
class GREUH_ViewDistance : GREUH_Label {
|
|
idc = 711;
|
|
y = ((BASE_Y + 0.47) * safezoneH) + safezoneY;
|
|
text = $STR_GREUH_ADJUST_VIEW_DISTANCE;
|
|
};
|
|
class GREUH_Slider {
|
|
idc = 712;
|
|
type = CT_SLIDER;
|
|
style = SL_HORZ;
|
|
x = 0.19 * safezoneW + safezoneX;
|
|
w = 0.12 * safezoneW;
|
|
y = ((BASE_Y + 0.515) * safezoneH) + safezoneY;
|
|
h = 0.025 * safezoneH;
|
|
text = $STR_GREUH_VIEW_DISTANCE;
|
|
color[] = { 1, 1, 1, 1 };
|
|
coloractive[] = { 1, 1, 1, 1 };
|
|
onSliderPosChanged = "desiredviewdistance_inf = (sliderPosition 712)";
|
|
};
|
|
class GREUH_SliderVD : GREUH_Label {
|
|
idc = 713;
|
|
style = ST_LEFT;
|
|
x = 0.31 * safezoneW + safezoneX;
|
|
w = 0.05 * safezoneW;
|
|
y = ((BASE_Y + 0.505) * safezoneH) + safezoneY;
|
|
h = 0.03 * safezoneH;
|
|
colorBackground[] = COLOR_NOALPHA;
|
|
text = "";
|
|
};
|
|
class GREUH_LabelVD : GREUH_Label {
|
|
idc = 714;
|
|
style = ST_LEFT;
|
|
x = 0.15 * safezoneW + safezoneX;
|
|
w = 0.05 * safezoneW;
|
|
y = ((BASE_Y + 0.505) * safezoneH) + safezoneY;
|
|
h = 0.03 * safezoneH;
|
|
colorBackground[] = COLOR_NOALPHA;
|
|
text = $STR_GREUH_INFANTRY;
|
|
};
|
|
class GREUH_SliderVeh {
|
|
idc = 722;
|
|
type = CT_SLIDER;
|
|
style = SL_HORZ;
|
|
x = 0.19 * safezoneW + safezoneX;
|
|
w = 0.12 * safezoneW;
|
|
y = ((BASE_Y + 0.545) * safezoneH) + safezoneY;
|
|
h = 0.025 * safezoneH;
|
|
text = $STR_GREUH_VIEW_DISTANCE;
|
|
color[] = { 1, 1, 1, 1 };
|
|
coloractive[] = { 1, 1, 1, 1 };
|
|
onSliderPosChanged = "desiredviewdistance_veh = (sliderPosition 722)";
|
|
};
|
|
class GREUH_SliderVDVeh : GREUH_Label {
|
|
idc = 723;
|
|
style = ST_LEFT;
|
|
x = 0.31 * safezoneW + safezoneX;
|
|
w = 0.05 * safezoneW;
|
|
y = ((BASE_Y + 0.535) * safezoneH) + safezoneY;
|
|
h = 0.03 * safezoneH;
|
|
colorBackground[] = COLOR_NOALPHA;
|
|
text = "";
|
|
};
|
|
class GREUH_LabelVDVeh : GREUH_Label {
|
|
idc = 724;
|
|
style = ST_LEFT;
|
|
x = 0.15 * safezoneW + safezoneX;
|
|
w = 0.05 * safezoneW;
|
|
y = ((BASE_Y + 0.535) * safezoneH) + safezoneY;
|
|
h = 0.03 * safezoneH;
|
|
colorBackground[] = COLOR_NOALPHA;
|
|
text = $STR_GREUH_VEHICLES;
|
|
};
|
|
class GREUH_SliderObj {
|
|
idc = 732;
|
|
type = CT_SLIDER;
|
|
style = SL_HORZ;
|
|
x = 0.19 * safezoneW + safezoneX;
|
|
w = 0.12 * safezoneW;
|
|
y = ((BASE_Y + 0.575) * safezoneH) + safezoneY;
|
|
h = 0.025 * safezoneH;
|
|
text = $STR_GREUH_VIEW_DISTANCE;
|
|
color[] = { 1, 1, 1, 1 };
|
|
coloractive[] = { 1, 1, 1, 1 };
|
|
onSliderPosChanged = "desiredviewdistance_obj = (sliderPosition 732)";
|
|
};
|
|
class GREUH_SliderVDObj : GREUH_Label {
|
|
idc = 733;
|
|
style = ST_LEFT;
|
|
x = 0.31 * safezoneW + safezoneX;
|
|
w = 0.05 * safezoneW;
|
|
y = ((BASE_Y + 0.565) * safezoneH) + safezoneY;
|
|
h = 0.03 * safezoneH;
|
|
colorBackground[] = COLOR_NOALPHA;
|
|
text = "";
|
|
};
|
|
class GREUH_LabelVDObj : GREUH_Label {
|
|
idc = 734;
|
|
style = ST_LEFT;
|
|
x = 0.15 * safezoneW + safezoneX;
|
|
w = 0.05 * safezoneW;
|
|
y = ((BASE_Y + 0.565) * safezoneH) + safezoneY;
|
|
h = 0.03 * safezoneH;
|
|
colorBackground[] = COLOR_NOALPHA;
|
|
text = $STR_GREUH_OBJECTS;
|
|
};
|
|
class GREUH_FPSLabel : GREUH_Label {
|
|
idc = 724;
|
|
style = ST_LEFT;
|
|
x = 0.15 * safezoneW + safezoneX;
|
|
w = 0.3 * safezoneW;
|
|
y = ((BASE_Y + 0.61) * safezoneH) + safezoneY;
|
|
h = 0.03 * safezoneH;
|
|
colorBackground[] = COLOR_NOALPHA;
|
|
sizeEx = 0.018 * safezoneH;
|
|
text = $STR_GREUH_ADJUST_VIEW_DISTANCE_TO_KEEP_FPS_ABOVE;
|
|
};
|
|
class GREUH_FPSEdit {
|
|
idc = 960;
|
|
type = CT_EDIT;
|
|
style = ST_LEFT + ST_FRAME;
|
|
x = 0.317 * safezoneW + safezoneX;
|
|
w = 0.03 * safezoneW;
|
|
y = ((BASE_Y + 0.61) * safezoneH) + safezoneY;
|
|
h = 0.03 * safezoneH;
|
|
colorBackground[] = {0,0,0,0};
|
|
colorText[] = {1,1,1,1};
|
|
colorSelection[] = {1,1,1,0.25};
|
|
colorDisabled[] = { 0.2, 0.2, 0.2, 0.7 };
|
|
colorBackgroundDisabled[] = { 0.5, 0.5, 0.5, 0.5 };
|
|
font = FontM;
|
|
sizeEx = 0.02 * safezoneH;
|
|
autocomplete = "";
|
|
text = "";
|
|
shadow = 0;
|
|
};
|
|
class GREUH_WorldZone : GREUH_DefaultZone {
|
|
idc = 801;
|
|
y = ((BASE_Y + 0.7) * safezoneH) + safezoneY;
|
|
h = (0.04 * safezoneH) - (2 * BORDERSIZE);
|
|
};
|
|
class GREUH_WorldQuality : GREUH_Label {
|
|
idc = 810;
|
|
y = ((BASE_Y + 0.66) * safezoneH) + safezoneY;
|
|
text = $STR_GREUH_ADJUST_TERRAIN_DETAILS;
|
|
};
|
|
class GREUH_ButtonWorld : GREUH_ButtonGeneric {
|
|
w = ((0.2 * safezoneW) / 4) - BORDERSIZE;
|
|
y = ((BASE_Y + 0.7) * safezoneH) + safezoneY;
|
|
};
|
|
class GREUH_ButtonWorldVeryLow : GREUH_ButtonWorld {
|
|
idc = 812;
|
|
x = 0.15 * safezoneW + safezoneX;
|
|
text = $STR_GREUH_VERY_LOW;
|
|
action = "setTerrainGrid 50; hint 'Terrain details set to Very Low'";
|
|
};
|
|
class GREUH_ButtonWorldLow : GREUH_ButtonWorld {
|
|
idc = 813;
|
|
x = (0.15 * safezoneW + safezoneX) + (((0.2 * safezoneW) / 4) * 1);
|
|
text = $STR_GREUH_LOW;
|
|
action = "setTerrainGrid 25; hint 'Terrain details set to Low'";
|
|
};
|
|
class GREUH_ButtonWorldNormal : GREUH_ButtonWorld {
|
|
idc = 814;
|
|
x = (0.15 * safezoneW + safezoneX) + (((0.2 * safezoneW) / 4) * 2);
|
|
text = $STR_GREUH_NORMAL;
|
|
action = "setTerrainGrid 12.5; hint 'Terrain details set to Normal'";
|
|
};
|
|
class GREUH_ButtonWorldHigh : GREUH_ButtonWorld {
|
|
idc = 815;
|
|
x = (0.15 * safezoneW + safezoneX) + (((0.2 * safezoneW) / 4) * 3);
|
|
text = $STR_GREUH_HIGH;
|
|
action = "setTerrainGrid 3.125; hint 'Terrain details set to High'";
|
|
};
|
|
class GREUH_MarkersZone : GREUH_DefaultZone {
|
|
idc = 901;
|
|
y = ((BASE_Y + 0.43) * safezoneH) + safezoneY;
|
|
h = (0.04 * safezoneH) - (2 * BORDERSIZE);
|
|
};
|
|
class GREUH_LabelNametags : GREUH_RegularLabel {
|
|
idc = 961;
|
|
y = ((BASE_Y + 0.39) * safezoneH) + safezoneY;
|
|
text = $STR_GREUH_SHOW_PLAYER_NAMETAGS;
|
|
};
|
|
class GREUH_NametagsActive : GREUH_RegularLabel {
|
|
idc = 962;
|
|
style = ST_RIGHT;
|
|
colorText[] = COLOR_BRIGHTGREEN;
|
|
text = $STR_GREUH_ACTIVE;
|
|
x = 0.2 * safezoneW + safezoneX;
|
|
w = 0.1 * safezoneW;
|
|
y = ((BASE_Y + 0.39) * safezoneH) + safezoneY;
|
|
};
|
|
class GREUH_NametagsYes : GREUH_ButtonGeneric {
|
|
idc = 963;
|
|
w = ((0.08 * safezoneW) / 4);
|
|
y = ((BASE_Y + 0.39) * safezoneH) + safezoneY;
|
|
x = 0.305 * safezoneW + safezoneX;
|
|
text = $STR_GREUH_YES;
|
|
action = "show_nametags = true";
|
|
};
|
|
class GREUH_NametagsNo : GREUH_ButtonGeneric {
|
|
idc = 964;
|
|
w = ((0.08 * safezoneW) / 4);
|
|
y = ((BASE_Y + 0.39) * safezoneH) + safezoneY;
|
|
x = (0.32 + BORDERSIZE) * safezoneW + safezoneX;
|
|
text = $STR_GREUH_NO;
|
|
action = "show_nametags = false";
|
|
};
|
|
class GREUH_LabelMarkers : GREUH_RegularLabel {
|
|
idc = 911;
|
|
y = ((BASE_Y + 0.43) * safezoneH) + safezoneY;
|
|
text = $STR_GREUH_SHOW_TEAMMATES_ON_MAP;
|
|
};
|
|
class GREUH_LabelMarkersActive : GREUH_RegularLabel {
|
|
idc = 912;
|
|
style = ST_RIGHT;
|
|
colorText[] = COLOR_BRIGHTGREEN;
|
|
text = $STR_GREUH_ACTIVE;
|
|
x = 0.2 * safezoneW + safezoneX;
|
|
w = 0.1 * safezoneW;
|
|
y = ((BASE_Y + 0.43) * safezoneH) + safezoneY;
|
|
};
|
|
class GREUH_TeammatesYes : GREUH_ButtonGeneric {
|
|
idc = 913;
|
|
w = ((0.08 * safezoneW) / 4);
|
|
y = ((BASE_Y + 0.43) * safezoneH) + safezoneY;
|
|
x = 0.305 * safezoneW + safezoneX;
|
|
text = $STR_GREUH_YES;
|
|
action = "show_teammates = true";
|
|
};
|
|
class GREUH_TeammatesNo : GREUH_ButtonGeneric {
|
|
idc = 914;
|
|
w = ((0.08 * safezoneW) / 4);
|
|
y = ((BASE_Y + 0.43) * safezoneH) + safezoneY;
|
|
x = (0.32 + BORDERSIZE) * safezoneW + safezoneX;
|
|
text = $STR_GREUH_NO;
|
|
action = "show_teammates = false";
|
|
};
|
|
|
|
class GREUH_VehSound : GREUH_Label {
|
|
idc = 1101;
|
|
y = ((BASE_Y + 0.74) * safezoneH) + safezoneY;
|
|
text = $STR_GREUH_INVEHICLE_SOUND_VOLUME;
|
|
};
|
|
class GREUH_SliderVehSound {
|
|
idc = 1102;
|
|
type = CT_SLIDER;
|
|
style = SL_HORZ;
|
|
x = 0.15 * safezoneW + safezoneX;
|
|
w = 0.16 * safezoneW;
|
|
y = ((BASE_Y + 0.785) * safezoneH) + safezoneY;
|
|
h = 0.025 * safezoneH;
|
|
text = $STR_GREUH_VIEW_DISTANCE;
|
|
color[] = { 1, 1, 1, 1 };
|
|
coloractive[] = { 1, 1, 1, 1 };
|
|
onSliderPosChanged = "desired_vehvolume = (sliderPosition 1102)";
|
|
};
|
|
class GREUH_LabelVehSound : GREUH_Label {
|
|
idc = 1103;
|
|
style = ST_LEFT;
|
|
x = 0.31 * safezoneW + safezoneX;
|
|
w = 0.05 * safezoneW;
|
|
y = ((BASE_Y + 0.775) * safezoneH) + safezoneY;
|
|
h = 0.03 * safezoneH;
|
|
colorBackground[] = COLOR_NOALPHA;
|
|
text = $STR_GREUH_TEST;
|
|
};
|
|
};
|
|
|
|
class GreuhButton {
|
|
idc = -1;
|
|
type = CT_BUTTON;
|
|
style = ST_CENTER;
|
|
default = false;
|
|
font = FontM;
|
|
sizeEx = 0.018 * safezoneH;
|
|
colorText[] = { 0, 0, 0, 1 };
|
|
colorFocused[] = { 1, 1, 1, 1 };
|
|
colorDisabled[] = { 0.2, 0.2, 0.2, 0.7 };
|
|
colorBackground[] = { 0.8, 0.8, 0.8, 0.8 };
|
|
colorBackgroundDisabled[] = { 0.5, 0.5, 0.5, 0.5 };
|
|
colorBackgroundActive[] = { 1, 1, 1, 1 };
|
|
offsetX = 0.003;
|
|
offsetY = 0.003;
|
|
offsetPressedX = 0.002;
|
|
offsetPressedY = 0.002;
|
|
colorShadow[] = { 0, 0, 0, 0.5 };
|
|
colorBorder[] = { 0, 0, 0, 1 };
|
|
borderSize = 0;
|
|
soundEnter[] = { "", 0, 1 }; // no sound
|
|
soundPush[] = {"\a3\Ui_f\data\Sound\CfgIngameUI\hintExpand", 0.891251, 1};
|
|
soundClick[] = { "", 0, 1 }; // no sound
|
|
soundEscape[] = { "", 0, 1 }; // no sound
|
|
x = 0.45 * safezoneW + safezoneX;
|
|
y = ((BASE_Y + 0.7) * safezoneH) + safezoneY;
|
|
w = 0.1 * safezoneW;
|
|
h = 0.04 * safezoneH;
|
|
text = "";
|
|
action = "";
|
|
shadow = 1;
|
|
};
|
|
|
|
class GREUH_respawn {
|
|
idd = 5566;
|
|
movingEnable = false;
|
|
controlsBackground[] = {"GREUH_BleedoutBar_BG"};
|
|
controls[] = {"GREUH_BleedoutBar","GREUH_BleedoutBar_F","GREUH_Useless","GREUH_Respawn","GREUH_ReviveLabel","GREUH_WoundedLabel", "GREUH_ReplaceAI"};
|
|
objects[] = {};
|
|
class GREUH_Respawn : GreuhButton {
|
|
idc = -1;
|
|
x = 0.45 * safezoneW + safezoneX;
|
|
y = 0.75 * safezoneH + safezoneY;
|
|
w = 0.1 * safezoneW;
|
|
h = 0.04 * safezoneH;
|
|
text = $STR_GREUH_RESPAWN;
|
|
action = "player setDamage 1";
|
|
};
|
|
class GREUH_ReplaceAI : GreuhButton {
|
|
idc = 678;
|
|
x = 0.45 * safezoneW + safezoneX;
|
|
y = 0.8 * safezoneH + safezoneY;
|
|
w = 0.1 * safezoneW;
|
|
h = 0.04 * safezoneH;
|
|
text = $STR_GREUH_REPLACE_NEAREST_AI;
|
|
action = "replace_ai = 1";
|
|
};
|
|
class GREUH_Useless : GREUH_Respawn {
|
|
idc = -1;
|
|
x = -5;
|
|
y = -5;
|
|
w = 0.1;
|
|
h = 0.1;
|
|
text = "";
|
|
action = "";
|
|
};
|
|
class GREUH_ReviveLabel {
|
|
idc = 5567;
|
|
type = CT_STATIC;
|
|
style = ST_CENTER;
|
|
colorText[] = COLOR_WHITE;
|
|
colorBackground[] = COLOR_NOALPHA;
|
|
font = FontM;
|
|
sizeEx = 0.02 * safezoneH;
|
|
shadow = 1;
|
|
x = 0.4 * safezoneW + safezoneX;
|
|
y = 0.7 * safezoneH + safezoneY;
|
|
w = 0.2 * safezoneW;
|
|
h = 0.025 * safezoneH;
|
|
text = "";
|
|
};
|
|
class GREUH_WoundedLabel {
|
|
idc = 4567;
|
|
type = CT_STATIC;
|
|
style = ST_CENTER;
|
|
colorText[] = COLOR_WHITE;
|
|
colorBackground[] = COLOR_NOALPHA;
|
|
font = FontM;
|
|
sizeEx = 0.07 * safezoneH;
|
|
shadow = 1;
|
|
x = 0.3 * safezoneW + safezoneX;
|
|
y = 0.25 * safezoneH + safezoneY;
|
|
w = 0.4 * safezoneW;
|
|
h = 0.07 * safezoneH;
|
|
text = $STR_REVIVE_LABEL;
|
|
};
|
|
class GREUH_BleedoutBar {
|
|
idc = 6699;
|
|
type = CT_STATIC;
|
|
style = ST_SINGLE;
|
|
colorText[] = COLOR_WHITE;
|
|
colorBackground[] = COLOR_BLEEDOUT;
|
|
font = FontM;
|
|
sizeEx = 0.023;
|
|
x = 0.4 * safezoneW + safezoneX;
|
|
y = 0.7 * safezoneH + safezoneY;
|
|
w = 0.2 * safezoneW;
|
|
h = 0.03 * safezoneH;
|
|
text = "";
|
|
};
|
|
class GREUH_BleedoutBar_BG : GREUH_BleedoutBar {
|
|
idc = -1;
|
|
colorBackground[] = COLOR_BLACK_ALPHA;
|
|
x = 0.4 * safezoneW + safezoneX - 0.005;
|
|
y = 0.7 * safezoneH + safezoneY - 0.005;
|
|
w = 0.2 * safezoneW + 0.01;
|
|
h = 0.03 * safezoneH + 0.01;
|
|
};
|
|
class GREUH_BleedoutBar_F : GREUH_BleedoutBar {
|
|
idc = 6698;
|
|
colorText[] = COLOR_WHITE;
|
|
style = ST_FRAME;
|
|
x = 0.4 * safezoneW + safezoneX - 0.005;
|
|
y = 0.7 * safezoneH + safezoneY - 0.005;
|
|
w = 0.2 * safezoneW + 0.01;
|
|
h = 0.03 * safezoneH + 0.01;
|
|
};
|
|
};
|