123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909 |
- // 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 COLOR_BROWN { 0.18, 0.14, 0.11, 0.75 }
- #define COLOR_GREEN { 0.2, 0.23, 0.18, 0.75 }
- #define COLOR_LIGHTGREEN { 0.4, 0.55, 0.36, 0.4 }
- #define COLOR_LIGHTGRAY { 0.6, 0.6, 0.6, 0.8 }
- #define COLOR_WHITE { 1, 1, 1, 1 }
- #define COLOR_NOALPHA { 0, 0, 0, 0 }
- #define COLOR_BLUFOR { 0, 0.3, 1, 1 }
- #define COLOR_OPFOR { 1, 0, 0, 1 }
- #define COLOR_GUER { 0.5, 0.5, 0.5, 0.5 }
- #define COLOR_WHITE_TRANSP { 1, 1, 1, 0.5 }
- #define COLOR_BLACK { 0, 0, 0, 1 }
- #define COLOR_BLACK_ALPHA { 0, 0, 0, 0.85 }
- #define COLOR_BLUFOR_NOALPHA { 0, 0, 1, 1 }
- #define COLOR_OPFOR_NOALPHA { 1, 0, 0, 1 }
- #define COLOR_RED_DISABLED { 1,0,0,0.4 }
- #define COLOR_BLEEDOUT { 0.66,0,0,0.8 }
- #define COLOR_BRIGHTGREEN { 0.2,1,0.2,1 }
- #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 = "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 = "- 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 = "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 = "Join";
- action = "squadaction = 'join';";
- y = ((BASE_Y + 0.11) * safezoneH) + safezoneY;
- };
- class GREUH_ButtonNew : GREUH_ButtonSquad {
- idc = 512;
- text = "Create";
- action = "squadaction = 'create';";
- y = ((BASE_Y + 0.15) * safezoneH) + safezoneY;
- };
- class GREUH_ButtonRename : GREUH_ButtonSquad {
- idc = 513;
- text = "Rename";
- action = "squadaction = 'rename';";
- y = ((BASE_Y + 0.19) * safezoneH) + safezoneY;
- };
- class GREUH_ButtonLeader : GREUH_ButtonSquad {
- idc = 514;
- text = "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 = "Rename";
- action = "squadname = ctrlText 527;";
- };
- class GREUH_ButtonName_Abort : GREUH_ButtonName {
- idc = 526;
- x = (0.4875 * safezoneW + safezoneX) + ((0.2 * safezoneW) / 5);
- text = "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 = "Choose";
- action = "choose_squadleader = lbCurSel 567;";
- };
- class GREUH_ButtonLeader_Abort : GREUH_ButtonLeaderGen {
- idc = 566;
- x = (0.4875 * safezoneW + safezoneX) + ((0.2 * safezoneW) / 5);
- text = "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 = "Platoon & Squad Awareness";
- };
- class GREUH_LabelPlatoon : GREUH_RegularLabel {
- idc = 611;
- y = ((BASE_Y + 0.35) * safezoneH) + safezoneY;
- text = "Show platoon overlay : ";
- };
- class GREUH_LabelPlatoonActive : GREUH_RegularLabel {
- idc = 612;
- style = ST_RIGHT;
- colorText[] = COLOR_BRIGHTGREEN;
- text = "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 = "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 = "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 = "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 = "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 = "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 = "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 = "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 = "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 = "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 = "Adjust view distance to keep FPS above";
- };
- class GREUH_FPSEdit {
- idc = 960;
- access = 0;
- 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 = "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 = "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 = "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 = "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 = "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 = "Show player nametags : ";
- };
- class GREUH_NametagsActive : GREUH_RegularLabel {
- idc = 962;
- style = ST_RIGHT;
- colorText[] = COLOR_BRIGHTGREEN;
- text = "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 = "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 = "No";
- action = "show_nametags = false";
- };
- class GREUH_LabelMarkers : GREUH_RegularLabel {
- idc = 911;
- y = ((BASE_Y + 0.43) * safezoneH) + safezoneY;
- text = "Show teammates on map : ";
- };
- class GREUH_LabelMarkersActive : GREUH_RegularLabel {
- idc = 912;
- style = ST_RIGHT;
- colorText[] = COLOR_BRIGHTGREEN;
- text = "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 = "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 = "No";
- action = "show_teammates = false";
- };
- class GREUH_VehSound : GREUH_Label {
- idc = 1101;
- y = ((BASE_Y + 0.74) * safezoneH) + safezoneY;
- text = "In-Vehicle 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 = "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 = "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 = "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 = "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;
- };
- };
|