123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571 |
- /*
- ArmA 3 VAS
- VAS_Rsc Source by Sa-Matra
- Use of the VAS system is permitted although modification and distribution must be approved by Tonic, use of the VAS_Rsc source files i.e common.hpp you must have permission from Sa-Matra himself
- */
- #include "common.hpp"
- class VAS_Diag {
- idd = 2500;
- name= "Virtual_Ammobox_Sys";
- movingEnable = true;
- enableSimulation = true;
- onLoad = "['guns',false] spawn VAS_fnc_mainDisplay";
-
- class controlsBackground {
- class VAS_RscTitleBackground:VAS_RscText {
- colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"};
- idc = -1;
- x = 0.1;
- y = 0.2;
- w = 0.8;
- h = (1 / 25);
- };
-
- class MainBackground:VAS_RscText {
- colorBackground[] = {0, 0, 0, 0.7};
- idc = -1;
- x = 0.1;
- y = 0.2 + (11 / 250);
- w = 0.8;
- h = 0.6 - (22 / 250);
- };
-
- class vasText : VAS_RscText
- {
- idc = -1;
- colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
- text = "$STR_VAS_Main_VirtGear";
- sizeEx = 0.04;
- x = 0.12; y = 0.27;
- w = 0.275; h = 0.04;
- };
-
- class vasgText : VAS_RscText
- {
- idc = -1;
- colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
- text = "$STR_VAS_Main_YCG";
- sizeEx = 0.04;
-
- x = 0.60; y = 0.27;
- w = 0.275; h = 0.04;
- };
- };
-
- class controls {
-
- class gundetailsbg : VAS_RscText
- {
- colorBackground[] = {0, 0, 0, 0.7};
- idc = 2507;
- text = "";
-
- x = -0.205;
- y = 0.2 + (11 / 250);
- w = 0.3;
- h = 0.35 - (22 / 250);
- };
-
- class gundetails : VAS_RscStructuredText
- {
- idc = 2508;
- text = "";
- //text = "<t align='center'>EBR 21 7.62 mm Uses:</t>";
- x = -0.265;
- y = 0.21 + (11 / 250);
- w = 0.4; h = 0.15;
- };
-
- class gundetailslist : VAS_RscListBox
- {
- colorBackground[] = {0,0,0,0};
- idc = 2509;
- text = "";
- onLBDblClick = "_this spawn VAS_fnc_quickMag;";
- sizeEx = 0.030;
-
- x = -0.2; y = 0.3;
- w = 0.29; h = 0.16;
- };
- class vasGear : VAS_RscListBox
- {
- idc = 2501;
- text = "";
- sizeEx = 0.032;
- onLBSelChanged = "_this spawn VAS_fnc_details";
- onLBDblClick = "_this spawn VAS_fnc_quickItem;";
-
- x = 0.12; y = 0.31;
- w = 0.275; h = 0.340;
- };
-
- class vasPGear : VAS_RscListBox
- {
- idc = 2502;
- text = "";
- sizeEx = 0.032;
- onLBDblClick = "_this spawn VAS_fnc_qRemoveItem;";
- //onLBSelChanged = "[2502] execVM 'gear\selection.sqf'";
-
- x = 0.60; y = 0.31;
- w = 0.275; h = 0.340;
- };
-
- class WeaponsBtn : VAS_RscButtonMenu
- {
- idc = -1;
- text = "$STR_VAS_Main_Weapons";
- colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
- onButtonClick = "['guns',false] spawn VAS_fnc_mainDisplay";
- x = 0.42; y = 0.30;
- w = (6.25 / 40);
- h = (1 / 25);
- };
-
- class MagazinesBtn : VAS_RscButtonMenu
- {
- idc = -1;
- text = "$STR_VAS_Main_Magazines";
- colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
- onButtonClick = "['mags',false] spawn VAS_fnc_mainDisplay";
- x = 0.42; y = 0.35;
- w = (6.25 / 40);
- h = (1 / 25);
- };
-
- class ItemsBtn : VAS_RscButtonMenu
- {
- idc = -1;
- text = "$STR_VAS_Main_Items";
- colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
- onButtonClick = "['items',false] spawn VAS_fnc_mainDisplay";
- x = 0.42; y = 0.40;
- w = (6.25 / 40);
- h = (1 / 25);
- };
-
- class BackpacksBtn : VAS_RscButtonMenu
- {
- idc = -1;
- text = "$STR_VAS_Main_Backpacks";
- colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
- onButtonClick = "['packs',false] spawn VAS_fnc_mainDisplay";
- x = 0.42; y = 0.45;
- w = (6.25 / 40);
- h = (1 / 25);
- };
-
- class GogglesBtn : VAS_RscButtonMenu
- {
- idc = -1;
- text = "$STR_VAS_Main_Goggles";
- colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
- onButtonClick = "['glass',false] spawn VAS_fnc_mainDisplay";
- x = 0.42; y = 0.50;
- w = (6.25 / 40);
- h = (1 / 25);
- };
-
- //Filter Buttons
- class Filter1 : VAS_RscActiveText
- {
- idc = 2580;
- text = "$STR_VAS_Main_Uniforms";
- action = "[0] spawn VAS_fnc_filterMenu";
- sizeEx = 0.04;
-
- x = 0.43; y = 0.55;
- w = 0.275; h = 0.04;
- };
-
- class Filter2 : VAS_RscActiveText
- {
- idc = 2581;
- text = "$STR_VAS_Main_Vests";
- action = "[1] spawn VAS_fnc_filterMenu";
- sizeEx = 0.04;
-
- x = 0.43; y = 0.58;
- w = 0.275; h = 0.04;
- };
-
- class Filter3 : VAS_RscActiveText
- {
- idc = 2582;
- text = "$STR_VAS_Main_Headgear";
- action = "[2] spawn VAS_fnc_filterMenu";
- sizeEx = 0.04;
-
- x = 0.43; y = 0.61;
- w = 0.275; h = 0.04;
- };
-
- class Filter4 : VAS_RscActiveText
- {
- idc = 2583;
- text = "$STR_VAS_Main_Attachments";
- action = "[3] spawn VAS_fnc_filterMenu";
- sizeEx = 0.04;
-
- x = 0.43; y = 0.64;
- w = 0.275; h = 0.04;
- };
-
- class Filter5 : VAS_RscActiveText
- {
- idc = 2584;
- text = "$STR_VAS_Main_Misc";
- action = "[4] spawn VAS_fnc_filterMenu";
- sizeEx = 0.04;
-
- x = 0.43; y = 0.67;
- w = 0.275; h = 0.04;
- };
-
- class Title : VAS_RscTitle {
- colorBackground[] = {0, 0, 0, 0};
- idc = -1;
- text = "Virtual Ammobox System";
- x = 0.1;
- y = 0.2;
- w = 0.8;
- h = (1 / 25);
- };
- class ButtonAddG : VAS_RscButtonMenu
- {
- idc = -1;
- text = "$STR_VAS_Main_btnAdd";
- colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
- onButtonClick = "[] spawn VAS_fnc_addGear";
-
- x = 0.13;
- y = 0.67;
- w = (10 / 40);
- h = (1 / 25);
- };
- class ButtonRemoveG : VAS_RscButtonMenu
- {
- idc = -1;
- text = "$STR_VAS_Main_btnRemove";
- colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
- onButtonClick = "[false] spawn VAS_fnc_removeGear;";
-
- x = 0.61;
- y = 0.67;
- w = (10 / 40);
- h = (1 / 25);
- };
-
- class ButtonClose : VAS_RscButtonMenu {
- idc = -1;
- //shortcuts[] = {0x00050000 + 2};
- text = "$STR_VAS_Main_btnClose";
- onButtonClick = "closeDialog 0;";
- x = 0.1;
- y = 0.8 - (1 / 25);
- w = (6.25 / 40);
- h = (1 / 25);
- };
- class ButtonSaveGear : VAS_RscButtonMenu {
- idc = -1;
- text = "$STR_VAS_Main_btnSave";
- onButtonClick = "createDialog ""VAS_Save_Diag"";";
- x = 0.1 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
- y = 0.8 - (1 / 25);
- w = (6.25 / 40);
- h = (1 / 25);
- };
-
- class ButtonLoadGear : VAS_RscButtonMenu {
- idc = -1;
- text = "$STR_VAS_Main_btnLoad";
- onButtonClick = "createDialog ""VAS_Load_Diag"";";
- x = 0.1 + (6.25 / 19.8) + (1 / 250 / (safezoneW / safezoneH));
- y = 0.8 - (1 / 25);
- w = (6.25 / 40);
- h = (1 / 25);
- };
-
- class ButtonRemoveAll : VAS_RscButtonMenu {
- idc = -1;
- text = "$STR_VAS_Main_btnRemoveAll";
- onButtonClick = "[true] spawn VAS_fnc_removeGear;";
- x = 0.42 + (6.25 / 22.5) + (1 / 250 / (safezoneW / safezoneH));
- y = 0.8 - (1 / 25);
- w = (6.25 / 40);
- h = (1 / 25);
- };
- };
- };
- class VAS_Load_Diag {
- idd = 2520;
- name= "Virtual_Ammobox_Sys Load";
- movingEnable = false;
- enableSimulation = true;
- onLoad = "[1] spawn VAS_fnc_SaveLoad";
-
- class controlsBackground {
- class VAS_RscTitleBackground:VAS_RscText {
- colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"};
- idc = -1;
- x = 0.1;
- y = 0.2;
- w = 0.6;
- h = (1 / 25);
- };
-
- class MainBackground:VAS_RscText {
- colorBackground[] = {0, 0, 0, 0.7};
- idc = -1;
- x = 0.1;
- y = 0.2 + (11 / 250);
- w = 0.6;
- h = 0.6 - (22 / 250);
- };
- };
-
- class controls {
-
- class Title : VAS_RscTitle {
- colorBackground[] = {0, 0, 0, 0};
- idc = -1;
- text = "$STR_VAS_Load_Title";
- x = 0.1;
- y = 0.2;
- w = 0.6;
- h = (1 / 25);
- };
-
- class LoadLoadoutList : VAS_RscListBox
- {
- idc = 2521;
- text = "";
- sizeEx = 0.035;
- onLBSelChanged = "[1] spawn VAS_fnc_loadoutInfo";
-
- x = 0.12; y = 0.26;
- w = 0.230; h = 0.360;
- };
-
- class LoadFetchList : VAS_RscListBox
- {
- idc = 2522;
- colorBackground[] = {0,0,0,0};
- text = "";
- sizeEx = 0.030;
-
- x = 0.35; y = 0.26;
- w = 0.330; h = 0.360;
- };
-
- class CloseLoadMenu : VAS_RscButtonMenu {
- idc = -1;
- text = "$STR_VAS_Main_btnClose";
- onButtonClick = "closeDialog 0;";
- x = -0.06 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
- y = 0.8 - (1 / 25);
- w = (6.25 / 40);
- h = (1 / 25);
- };
-
- class LoadOnRespawnMenu : VAS_RscButtonMenu {
- idc = -1;
- text = "$STR_VAS_Load_LOR";
- onButtonClick = "[] call VAS_fnc_onRespawn;";
- x = 0.10 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
- y = 0.8 - (1 / 25);
- w = (9 / 40);
- h = (1 / 25);
- };
-
- class GearLoadMenu : VAS_RscButtonMenu {
- idc = -1;
- text = "$STR_VAS_Load_btnLoad";
- colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
- onButtonClick = "[] spawn VAS_fnc_loadGear";
- x = 0.05 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
- y = 0.73 - (1 / 25);
- w = (6.25 / 40);
- h = (1 / 25);
- };
-
- class GearDeleteMenu : VAS_RscButtonMenu
- {
- idc = -1;
- text = "$STR_VAS_Load_btnDelete";
- colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
- onButtonClick = "[] spawn VAS_fnc_deleteGear";
- x = 0.25 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
- y = 0.73 - (1 / 25);
- w = (6.25 / 40);
- h = (1 / 25);
- };
- };
- };
-
- class VAS_Save_Diag {
- idd = 2510;
- name= "Virtual_Ammobox_Sys Save";
- movingEnable = false;
- enableSimulation = true;
- onLoad = "[0] spawn VAS_fnc_SaveLoad";
-
- class controlsBackground {
- class VAS_RscTitleBackground:VAS_RscText {
- colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"};
- idc = -1;
- x = 0.1;
- y = 0.2;
- w = 0.6;
- h = (1 / 25);
- };
-
- class MainBackground:VAS_RscText {
- colorBackground[] = {0, 0, 0, 0.7};
- idc = -1;
- x = 0.1;
- y = 0.2 + (11 / 250);
- w = 0.6;
- h = 0.6 - (22 / 250);
- };
- };
-
- class controls {
-
- class Title : VAS_RscTitle {
- colorBackground[] = {0, 0, 0, 0};
- idc = -1;
- text = "$STR_VAS_Save_Title";
- x = 0.1;
- y = 0.2;
- w = 0.6;
- h = (1 / 25);
- };
-
- class SaveLoadoutList : VAS_RscListBox
- {
- idc = 2511;
- text = "";
- sizeEx = 0.035;
- onLBSelChanged = "[0] spawn VAS_fnc_loadoutInfo";
-
- x = 0.12; y = 0.26;
- w = 0.230; h = 0.360;
- };
-
- class SaveFetchList : VAS_RscListBox
- {
- idc = 2513;
- colorBackground[] = {0,0,0,0};
- text = "";
- sizeEx = 0.030;
-
- x = 0.35; y = 0.26;
- w = 0.330; h = 0.360;
- };
-
- class SaveLoadEdit : VAS_RscEdit
- {
- idc = 2512;
- text = "$STR_VAS_Save_CLN";
-
- x = -0.05 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
- y = 0.73 - (1 / 25);
- w = (13 / 40);
- h = (1 / 25);
- };
-
- class CloseSaveMenu : VAS_RscButtonMenu {
- idc = -1;
- text = "$STR_VAS_Main_btnClose";
- onButtonClick = "closeDialog 0;";
- x = -0.06 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
- y = 0.8 - (1 / 25);
- w = (6.25 / 40);
- h = (1 / 25);
- };
-
- class GearSaveMenu : VAS_RscButtonMenu {
- idc = -1;
- text = "$STR_VAS_Save_btnSave";
- colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
- onButtonClick = "[] call VAS_fnc_saveGear";
- x = 0.35 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
- y = 0.73 - (1 / 25);
- w = (6.25 / 40);
- h = (1 / 25);
- };
- };
- };
- class VAS_prompt
- {
- idd = 2550;
- name = "Virtual_Ammobox_sys_prompt";
- movingEnabled = false;
- enableSimulation = true;
-
- class controlsBackground {
- class VAS_RscTitleBackground:VAS_RscText {
- colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", "(profilenamespace getvariable ['GUI_BCG_RGB_A',0.7])"};
- idc = -1;
- x = 0.3;
- y = 0.2;
- w = 0.47;
- h = (1 / 25);
- };
-
- class MainBackground:VAS_RscText {
- colorBackground[] = {0, 0, 0, 0.7};
- idc = -1;
- x = 0.3;
- y = 0.2 + (11 / 250);
- w = 0.47;
- h = 0.3 - (22 / 250);
- };
- };
-
- class controls
- {
- class InfoMsg : VAS_RscStructuredText
- {
- idc = 2551;
- sizeEx = 0.020;
- text = "<t align='center'><t size='.8px'>What do you want to do with that attachment?</t></t><br/><t align='center'><t size='0.6'>Please know that if you choose to add it to your weapon your current existing attachment in that slot will be lost.</t></t>";
- x = 0.287;
- y = 0.2 + (11 / 250);
- w = 0.5; h = 0.12;
- };
- class addtogun : VAS_RscButtonMenu {
- idc = 2552;
- text = "Add to gun";
- colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
- onButtonClick = "vas_prompt_choice = true; closeDialog 0;";
- x = 0.2 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
- y = 0.42 - (1 / 25);
- w = (6.25 / 40);
- h = (1 / 25);
- };
-
- class addtogear : VAS_RscButtonMenu {
- idc = 2553;
- text = "Add to INV";
- colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 0.5};
- onButtonClick = "vas_prompt_choice = false; closeDialog 0;";
- x = 0.4 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
- y = 0.42 - (1 / 25);
- w = (6.25 / 40);
- h = (1 / 25);
- };
- };
- };
|