menu.hpp 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571
  1. /*
  2. ArmA 3 VAS
  3. VAS_Rsc Source by Sa-Matra
  4. 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
  5. */
  6. #include "common.hpp"
  7. class VAS_Diag {
  8. idd = 2500;
  9. name= "Virtual_Ammobox_Sys";
  10. movingEnable = true;
  11. enableSimulation = true;
  12. onLoad = "['guns',false] spawn VAS_fnc_mainDisplay";
  13. class controlsBackground {
  14. class VAS_RscTitleBackground:VAS_RscText {
  15. 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])"};
  16. idc = -1;
  17. x = 0.1;
  18. y = 0.2;
  19. w = 0.8;
  20. h = (1 / 25);
  21. };
  22. class MainBackground:VAS_RscText {
  23. colorBackground[] = {0, 0, 0, 0.7};
  24. idc = -1;
  25. x = 0.1;
  26. y = 0.2 + (11 / 250);
  27. w = 0.8;
  28. h = 0.6 - (22 / 250);
  29. };
  30. class vasText : VAS_RscText
  31. {
  32. idc = -1;
  33. 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};
  34. text = "$STR_VAS_Main_VirtGear";
  35. sizeEx = 0.04;
  36. x = 0.12; y = 0.27;
  37. w = 0.275; h = 0.04;
  38. };
  39. class vasgText : VAS_RscText
  40. {
  41. idc = -1;
  42. 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};
  43. text = "$STR_VAS_Main_YCG";
  44. sizeEx = 0.04;
  45. x = 0.60; y = 0.27;
  46. w = 0.275; h = 0.04;
  47. };
  48. };
  49. class controls {
  50. class gundetailsbg : VAS_RscText
  51. {
  52. colorBackground[] = {0, 0, 0, 0.7};
  53. idc = 2507;
  54. text = "";
  55. x = -0.205;
  56. y = 0.2 + (11 / 250);
  57. w = 0.3;
  58. h = 0.35 - (22 / 250);
  59. };
  60. class gundetails : VAS_RscStructuredText
  61. {
  62. idc = 2508;
  63. text = "";
  64. //text = "<t align='center'>EBR 21 7.62 mm Uses:</t>";
  65. x = -0.265;
  66. y = 0.21 + (11 / 250);
  67. w = 0.4; h = 0.15;
  68. };
  69. class gundetailslist : VAS_RscListBox
  70. {
  71. colorBackground[] = {0,0,0,0};
  72. idc = 2509;
  73. text = "";
  74. onLBDblClick = "_this spawn VAS_fnc_quickMag;";
  75. sizeEx = 0.030;
  76. x = -0.2; y = 0.3;
  77. w = 0.29; h = 0.16;
  78. };
  79. class vasGear : VAS_RscListBox
  80. {
  81. idc = 2501;
  82. text = "";
  83. sizeEx = 0.032;
  84. onLBSelChanged = "_this spawn VAS_fnc_details";
  85. onLBDblClick = "_this spawn VAS_fnc_quickItem;";
  86. x = 0.12; y = 0.31;
  87. w = 0.275; h = 0.340;
  88. };
  89. class vasPGear : VAS_RscListBox
  90. {
  91. idc = 2502;
  92. text = "";
  93. sizeEx = 0.032;
  94. onLBDblClick = "_this spawn VAS_fnc_qRemoveItem;";
  95. //onLBSelChanged = "[2502] execVM 'gear\selection.sqf'";
  96. x = 0.60; y = 0.31;
  97. w = 0.275; h = 0.340;
  98. };
  99. class WeaponsBtn : VAS_RscButtonMenu
  100. {
  101. idc = -1;
  102. text = "$STR_VAS_Main_Weapons";
  103. 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};
  104. onButtonClick = "['guns',false] spawn VAS_fnc_mainDisplay";
  105. x = 0.42; y = 0.30;
  106. w = (6.25 / 40);
  107. h = (1 / 25);
  108. };
  109. class MagazinesBtn : VAS_RscButtonMenu
  110. {
  111. idc = -1;
  112. text = "$STR_VAS_Main_Magazines";
  113. 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};
  114. onButtonClick = "['mags',false] spawn VAS_fnc_mainDisplay";
  115. x = 0.42; y = 0.35;
  116. w = (6.25 / 40);
  117. h = (1 / 25);
  118. };
  119. class ItemsBtn : VAS_RscButtonMenu
  120. {
  121. idc = -1;
  122. text = "$STR_VAS_Main_Items";
  123. 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};
  124. onButtonClick = "['items',false] spawn VAS_fnc_mainDisplay";
  125. x = 0.42; y = 0.40;
  126. w = (6.25 / 40);
  127. h = (1 / 25);
  128. };
  129. class BackpacksBtn : VAS_RscButtonMenu
  130. {
  131. idc = -1;
  132. text = "$STR_VAS_Main_Backpacks";
  133. 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};
  134. onButtonClick = "['packs',false] spawn VAS_fnc_mainDisplay";
  135. x = 0.42; y = 0.45;
  136. w = (6.25 / 40);
  137. h = (1 / 25);
  138. };
  139. class GogglesBtn : VAS_RscButtonMenu
  140. {
  141. idc = -1;
  142. text = "$STR_VAS_Main_Goggles";
  143. 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};
  144. onButtonClick = "['glass',false] spawn VAS_fnc_mainDisplay";
  145. x = 0.42; y = 0.50;
  146. w = (6.25 / 40);
  147. h = (1 / 25);
  148. };
  149. //Filter Buttons
  150. class Filter1 : VAS_RscActiveText
  151. {
  152. idc = 2580;
  153. text = "$STR_VAS_Main_Uniforms";
  154. action = "[0] spawn VAS_fnc_filterMenu";
  155. sizeEx = 0.04;
  156. x = 0.43; y = 0.55;
  157. w = 0.275; h = 0.04;
  158. };
  159. class Filter2 : VAS_RscActiveText
  160. {
  161. idc = 2581;
  162. text = "$STR_VAS_Main_Vests";
  163. action = "[1] spawn VAS_fnc_filterMenu";
  164. sizeEx = 0.04;
  165. x = 0.43; y = 0.58;
  166. w = 0.275; h = 0.04;
  167. };
  168. class Filter3 : VAS_RscActiveText
  169. {
  170. idc = 2582;
  171. text = "$STR_VAS_Main_Headgear";
  172. action = "[2] spawn VAS_fnc_filterMenu";
  173. sizeEx = 0.04;
  174. x = 0.43; y = 0.61;
  175. w = 0.275; h = 0.04;
  176. };
  177. class Filter4 : VAS_RscActiveText
  178. {
  179. idc = 2583;
  180. text = "$STR_VAS_Main_Attachments";
  181. action = "[3] spawn VAS_fnc_filterMenu";
  182. sizeEx = 0.04;
  183. x = 0.43; y = 0.64;
  184. w = 0.275; h = 0.04;
  185. };
  186. class Filter5 : VAS_RscActiveText
  187. {
  188. idc = 2584;
  189. text = "$STR_VAS_Main_Misc";
  190. action = "[4] spawn VAS_fnc_filterMenu";
  191. sizeEx = 0.04;
  192. x = 0.43; y = 0.67;
  193. w = 0.275; h = 0.04;
  194. };
  195. class Title : VAS_RscTitle {
  196. colorBackground[] = {0, 0, 0, 0};
  197. idc = -1;
  198. text = "Virtual Ammobox System";
  199. x = 0.1;
  200. y = 0.2;
  201. w = 0.8;
  202. h = (1 / 25);
  203. };
  204. class ButtonAddG : VAS_RscButtonMenu
  205. {
  206. idc = -1;
  207. text = "$STR_VAS_Main_btnAdd";
  208. 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};
  209. onButtonClick = "[] spawn VAS_fnc_addGear";
  210. x = 0.13;
  211. y = 0.67;
  212. w = (10 / 40);
  213. h = (1 / 25);
  214. };
  215. class ButtonRemoveG : VAS_RscButtonMenu
  216. {
  217. idc = -1;
  218. text = "$STR_VAS_Main_btnRemove";
  219. 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};
  220. onButtonClick = "[false] spawn VAS_fnc_removeGear;";
  221. x = 0.61;
  222. y = 0.67;
  223. w = (10 / 40);
  224. h = (1 / 25);
  225. };
  226. class ButtonClose : VAS_RscButtonMenu {
  227. idc = -1;
  228. //shortcuts[] = {0x00050000 + 2};
  229. text = "$STR_VAS_Main_btnClose";
  230. onButtonClick = "closeDialog 0;";
  231. x = 0.1;
  232. y = 0.8 - (1 / 25);
  233. w = (6.25 / 40);
  234. h = (1 / 25);
  235. };
  236. class ButtonSaveGear : VAS_RscButtonMenu {
  237. idc = -1;
  238. text = "$STR_VAS_Main_btnSave";
  239. onButtonClick = "createDialog ""VAS_Save_Diag"";";
  240. x = 0.1 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
  241. y = 0.8 - (1 / 25);
  242. w = (6.25 / 40);
  243. h = (1 / 25);
  244. };
  245. class ButtonLoadGear : VAS_RscButtonMenu {
  246. idc = -1;
  247. text = "$STR_VAS_Main_btnLoad";
  248. onButtonClick = "createDialog ""VAS_Load_Diag"";";
  249. x = 0.1 + (6.25 / 19.8) + (1 / 250 / (safezoneW / safezoneH));
  250. y = 0.8 - (1 / 25);
  251. w = (6.25 / 40);
  252. h = (1 / 25);
  253. };
  254. class ButtonRemoveAll : VAS_RscButtonMenu {
  255. idc = -1;
  256. text = "$STR_VAS_Main_btnRemoveAll";
  257. onButtonClick = "[true] spawn VAS_fnc_removeGear;";
  258. x = 0.42 + (6.25 / 22.5) + (1 / 250 / (safezoneW / safezoneH));
  259. y = 0.8 - (1 / 25);
  260. w = (6.25 / 40);
  261. h = (1 / 25);
  262. };
  263. };
  264. };
  265. class VAS_Load_Diag {
  266. idd = 2520;
  267. name= "Virtual_Ammobox_Sys Load";
  268. movingEnable = false;
  269. enableSimulation = true;
  270. onLoad = "[1] spawn VAS_fnc_SaveLoad";
  271. class controlsBackground {
  272. class VAS_RscTitleBackground:VAS_RscText {
  273. 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])"};
  274. idc = -1;
  275. x = 0.1;
  276. y = 0.2;
  277. w = 0.6;
  278. h = (1 / 25);
  279. };
  280. class MainBackground:VAS_RscText {
  281. colorBackground[] = {0, 0, 0, 0.7};
  282. idc = -1;
  283. x = 0.1;
  284. y = 0.2 + (11 / 250);
  285. w = 0.6;
  286. h = 0.6 - (22 / 250);
  287. };
  288. };
  289. class controls {
  290. class Title : VAS_RscTitle {
  291. colorBackground[] = {0, 0, 0, 0};
  292. idc = -1;
  293. text = "$STR_VAS_Load_Title";
  294. x = 0.1;
  295. y = 0.2;
  296. w = 0.6;
  297. h = (1 / 25);
  298. };
  299. class LoadLoadoutList : VAS_RscListBox
  300. {
  301. idc = 2521;
  302. text = "";
  303. sizeEx = 0.035;
  304. onLBSelChanged = "[1] spawn VAS_fnc_loadoutInfo";
  305. x = 0.12; y = 0.26;
  306. w = 0.230; h = 0.360;
  307. };
  308. class LoadFetchList : VAS_RscListBox
  309. {
  310. idc = 2522;
  311. colorBackground[] = {0,0,0,0};
  312. text = "";
  313. sizeEx = 0.030;
  314. x = 0.35; y = 0.26;
  315. w = 0.330; h = 0.360;
  316. };
  317. class CloseLoadMenu : VAS_RscButtonMenu {
  318. idc = -1;
  319. text = "$STR_VAS_Main_btnClose";
  320. onButtonClick = "closeDialog 0;";
  321. x = -0.06 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
  322. y = 0.8 - (1 / 25);
  323. w = (6.25 / 40);
  324. h = (1 / 25);
  325. };
  326. class LoadOnRespawnMenu : VAS_RscButtonMenu {
  327. idc = -1;
  328. text = "$STR_VAS_Load_LOR";
  329. onButtonClick = "[] call VAS_fnc_onRespawn;";
  330. x = 0.10 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
  331. y = 0.8 - (1 / 25);
  332. w = (9 / 40);
  333. h = (1 / 25);
  334. };
  335. class GearLoadMenu : VAS_RscButtonMenu {
  336. idc = -1;
  337. text = "$STR_VAS_Load_btnLoad";
  338. 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};
  339. onButtonClick = "[] spawn VAS_fnc_loadGear";
  340. x = 0.05 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
  341. y = 0.73 - (1 / 25);
  342. w = (6.25 / 40);
  343. h = (1 / 25);
  344. };
  345. class GearDeleteMenu : VAS_RscButtonMenu
  346. {
  347. idc = -1;
  348. text = "$STR_VAS_Load_btnDelete";
  349. 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};
  350. onButtonClick = "[] spawn VAS_fnc_deleteGear";
  351. x = 0.25 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
  352. y = 0.73 - (1 / 25);
  353. w = (6.25 / 40);
  354. h = (1 / 25);
  355. };
  356. };
  357. };
  358. class VAS_Save_Diag {
  359. idd = 2510;
  360. name= "Virtual_Ammobox_Sys Save";
  361. movingEnable = false;
  362. enableSimulation = true;
  363. onLoad = "[0] spawn VAS_fnc_SaveLoad";
  364. class controlsBackground {
  365. class VAS_RscTitleBackground:VAS_RscText {
  366. 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])"};
  367. idc = -1;
  368. x = 0.1;
  369. y = 0.2;
  370. w = 0.6;
  371. h = (1 / 25);
  372. };
  373. class MainBackground:VAS_RscText {
  374. colorBackground[] = {0, 0, 0, 0.7};
  375. idc = -1;
  376. x = 0.1;
  377. y = 0.2 + (11 / 250);
  378. w = 0.6;
  379. h = 0.6 - (22 / 250);
  380. };
  381. };
  382. class controls {
  383. class Title : VAS_RscTitle {
  384. colorBackground[] = {0, 0, 0, 0};
  385. idc = -1;
  386. text = "$STR_VAS_Save_Title";
  387. x = 0.1;
  388. y = 0.2;
  389. w = 0.6;
  390. h = (1 / 25);
  391. };
  392. class SaveLoadoutList : VAS_RscListBox
  393. {
  394. idc = 2511;
  395. text = "";
  396. sizeEx = 0.035;
  397. onLBSelChanged = "[0] spawn VAS_fnc_loadoutInfo";
  398. x = 0.12; y = 0.26;
  399. w = 0.230; h = 0.360;
  400. };
  401. class SaveFetchList : VAS_RscListBox
  402. {
  403. idc = 2513;
  404. colorBackground[] = {0,0,0,0};
  405. text = "";
  406. sizeEx = 0.030;
  407. x = 0.35; y = 0.26;
  408. w = 0.330; h = 0.360;
  409. };
  410. class SaveLoadEdit : VAS_RscEdit
  411. {
  412. idc = 2512;
  413. text = "$STR_VAS_Save_CLN";
  414. x = -0.05 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
  415. y = 0.73 - (1 / 25);
  416. w = (13 / 40);
  417. h = (1 / 25);
  418. };
  419. class CloseSaveMenu : VAS_RscButtonMenu {
  420. idc = -1;
  421. text = "$STR_VAS_Main_btnClose";
  422. onButtonClick = "closeDialog 0;";
  423. x = -0.06 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
  424. y = 0.8 - (1 / 25);
  425. w = (6.25 / 40);
  426. h = (1 / 25);
  427. };
  428. class GearSaveMenu : VAS_RscButtonMenu {
  429. idc = -1;
  430. text = "$STR_VAS_Save_btnSave";
  431. 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};
  432. onButtonClick = "[] call VAS_fnc_saveGear";
  433. x = 0.35 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
  434. y = 0.73 - (1 / 25);
  435. w = (6.25 / 40);
  436. h = (1 / 25);
  437. };
  438. };
  439. };
  440. class VAS_prompt
  441. {
  442. idd = 2550;
  443. name = "Virtual_Ammobox_sys_prompt";
  444. movingEnabled = false;
  445. enableSimulation = true;
  446. class controlsBackground {
  447. class VAS_RscTitleBackground:VAS_RscText {
  448. 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])"};
  449. idc = -1;
  450. x = 0.3;
  451. y = 0.2;
  452. w = 0.47;
  453. h = (1 / 25);
  454. };
  455. class MainBackground:VAS_RscText {
  456. colorBackground[] = {0, 0, 0, 0.7};
  457. idc = -1;
  458. x = 0.3;
  459. y = 0.2 + (11 / 250);
  460. w = 0.47;
  461. h = 0.3 - (22 / 250);
  462. };
  463. };
  464. class controls
  465. {
  466. class InfoMsg : VAS_RscStructuredText
  467. {
  468. idc = 2551;
  469. sizeEx = 0.020;
  470. 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>";
  471. x = 0.287;
  472. y = 0.2 + (11 / 250);
  473. w = 0.5; h = 0.12;
  474. };
  475. class addtogun : VAS_RscButtonMenu {
  476. idc = 2552;
  477. text = "Add to gun";
  478. 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};
  479. onButtonClick = "vas_prompt_choice = true; closeDialog 0;";
  480. x = 0.2 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
  481. y = 0.42 - (1 / 25);
  482. w = (6.25 / 40);
  483. h = (1 / 25);
  484. };
  485. class addtogear : VAS_RscButtonMenu {
  486. idc = 2553;
  487. text = "Add to INV";
  488. 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};
  489. onButtonClick = "vas_prompt_choice = false; closeDialog 0;";
  490. x = 0.4 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
  491. y = 0.42 - (1 / 25);
  492. w = (6.25 / 40);
  493. h = (1 / 25);
  494. };
  495. };
  496. };