GUI.h 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668
  1. #include "defines.h"
  2. class RscEdit {
  3. type = 2;
  4. style = 0x00 + 0x40;
  5. font = "PuristaMedium";
  6. shadow = 2;
  7. sizeEx = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
  8. colorBackground[] = {0, 0, 0, 1};
  9. soundSelect[] = {"",0.1,1};
  10. soundExpand[] = {"",0.1,1};
  11. colorText[] = {0.95, 0.95, 0.95, 1};
  12. colorDisabled[] = {1, 1, 1, 0.25};
  13. autocomplete = false;
  14. colorSelection[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.3843])", "(profilenamespace getvariable ['GUI_BCG_RGB_G',0.7019])", "(profilenamespace getvariable ['GUI_BCG_RGB_B',0.8862])", 1};
  15. canModify = 1;
  16. };
  17. class RscListBox {
  18. style = 16;
  19. idc = -1;
  20. type = 5;
  21. w = 0.275;
  22. h = 0.04;
  23. font = "PuristaMedium";
  24. colorSelect[] = {1, 1, 1, 1};
  25. colorText[] = {1, 1, 1, 1};
  26. colorBackground[] = {0.28,0.28,0.28,0.28};
  27. colorSelect2[] = {1, 1, 1, 1};
  28. colorSelectBackground[] = {0.95, 0.95, 0.95, 0.5};
  29. colorSelectBackground2[] = {1, 1, 1, 0.5};
  30. colorScrollbar[] = {0.2, 0.2, 0.2, 1};
  31. colorPicture[] = {1,1,1,1};
  32. colorPictureSelected[] = {1,1,1,1};
  33. colorPictureDisabled[] = {1,1,1,1};
  34. arrowFull = "\A3\ui_f\data\gui\cfg\scrollbar\arrowFull_ca.paa";
  35. arrowEmpty = "\A3\ui_f\data\gui\cfg\scrollbar\arrowEmpty_ca.paa";
  36. wholeHeight = 0.45;
  37. rowHeight = 0.04;
  38. color[] = {0.7, 0.7, 0.7, 1};
  39. colorActive[] = {0,0,0,1};
  40. colorDisabled[] = {0,0,0,0.3};
  41. sizeEx = 0.023;
  42. soundSelect[] = {"",0.1,1};
  43. soundExpand[] = {"",0.1,1};
  44. soundCollapse[] = {"",0.1,1};
  45. maxHistoryDelay = 1;
  46. autoScrollSpeed = -1;
  47. autoScrollDelay = 5;
  48. autoScrollRewind = 0;
  49. tooltipColorText[] = {1,1,1,1};
  50. tooltipColorBox[] = {1,1,1,1};
  51. tooltipColorShade[] = {0,0,0,0.65};
  52. class ListScrollBar {
  53. color[] = {1,1,1,1};
  54. colorActive[] = {1,1,1,1};
  55. colorDisabled[] = {1,1,1,0.3};
  56. thumb = "\A3\ui_f\data\gui\cfg\scrollbar\thumb_ca.paa";
  57. arrowEmpty = "\A3\ui_f\data\gui\cfg\scrollbar\arrowEmpty_ca.paa";
  58. arrowFull = "\A3\ui_f\data\gui\cfg\scrollbar\arrowFull_ca.paa";
  59. border = "\A3\ui_f\data\gui\cfg\scrollbar\border_ca.paa";
  60. shadow = 0;
  61. scrollSpeed = 0.06;
  62. width = 0;
  63. height = 0;
  64. autoScrollEnabled = 1;
  65. autoScrollSpeed = -1;
  66. autoScrollDelay = 5;
  67. autoScrollRewind = 0;
  68. }
  69. };
  70. class RscCheckBox {
  71. access = 0; // Control access (0 - ReadAndWrite, 1 - ReadAndCreate, 2 - ReadOnly, 3 - ReadOnlyVerified)
  72. idc = -1; // Control identification (without it, the control won't be displayed)
  73. type = 77; // Type
  74. style = ST_LEFT + ST_MULTI; // Style
  75. default = 0; // Control selected by default (only one within a display can be used)
  76. blinkingPeriod = 0; // Time in which control will fade out and back in. Use 0 to disable the effect.
  77. x = 0;
  78. y = 0;
  79. w = 1 * GUI_GRID_CENTER_W; // Width
  80. h = 1 * GUI_GRID_CENTER_H; // Height
  81. //Colors
  82. color[] = { 1, 1, 1, 0.7 }; // Texture color
  83. colorFocused[] = { 1, 1, 1, 1 }; // Focused texture color
  84. colorHover[] = { 1, 1, 1, 1 }; // Mouse over texture color
  85. colorPressed[] = { 1, 1, 1, 1 }; // Mouse pressed texture color
  86. colorDisabled[] = { 1, 1, 1, 0.2 }; // Disabled texture color
  87. //Background colors
  88. colorBackground[] = { 0, 0, 0, 0 }; // Fill color
  89. colorBackgroundFocused[] = { 0, 0, 0, 0 }; // Focused fill color
  90. colorBackgroundHover[] = { 0, 0, 0, 0 }; // Mouse hover fill color
  91. colorBackgroundPressed[] = { 0, 0, 0, 0 }; // Mouse pressed fill color
  92. colorBackgroundDisabled[] = { 0, 0, 0, 0 }; // Disabled fill color
  93. //Textures
  94. textureChecked = "\A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_checked_ca.paa"; //Texture of checked CheckBox.
  95. textureUnchecked = "\A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_unchecked_ca.paa"; //Texture of unchecked CheckBox.
  96. textureFocusedChecked = "\A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_checked_ca.paa"; //Texture of checked focused CheckBox (Could be used for showing different texture when focused).
  97. textureFocusedUnchecked = "\A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_unchecked_ca.paa"; //Texture of unchecked focused CheckBox.
  98. textureHoverChecked = "\A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_checked_ca.paa";
  99. textureHoverUnchecked = "\A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_unchecked_ca.paa";
  100. texturePressedChecked = "\A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_checked_ca.paa";
  101. texturePressedUnchecked = "\A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_unchecked_ca.paa";
  102. textureDisabledChecked = "\A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_checked_ca.paa";
  103. textureDisabledUnchecked = "\A3\Ui_f\data\GUI\RscCommon\RscCheckBox\CheckBox_unchecked_ca.paa";
  104. tooltip = ""; // Tooltip text
  105. tooltipColorShade[] = { 0, 0, 0, 1 }; // Tooltip background color
  106. tooltipColorText[] = { 1, 1, 1, 1 }; // Tooltip text color
  107. tooltipColorBox[] = { 1, 1, 1, 1 }; // Tooltip frame color
  108. //Sounds
  109. soundClick[] = { "\A3\ui_f\data\sound\RscButton\soundClick", 0.09, 1 }; // Sound played after control is activated in format {file, volume, pitch}
  110. soundEnter[] = { "\A3\ui_f\data\sound\RscButton\soundEnter", 0.09, 1 }; // Sound played when mouse cursor enters the control
  111. soundPush[] = { "\A3\ui_f\data\sound\RscButton\soundPush", 0.09, 1 }; // Sound played when the control is pushed down
  112. soundEscape[] = { "\A3\ui_f\data\sound\RscButton\soundEscape", 0.09, 1 }; // Sound played when the control is released after pushing down
  113. };
  114. class RscXSliderH {
  115. style = 1024;
  116. type = 43;
  117. shadow = 2;
  118. x = 0;
  119. y = 0;
  120. h = 0.029412;
  121. w = 0.400000;
  122. color[] = {
  123. 1, 1, 1, 0.7
  124. };
  125. colorActive[] = {
  126. 1, 1, 1, 1
  127. };
  128. colorDisabled[] = {
  129. 1, 1, 1, 0.500000
  130. };
  131. arrowEmpty = "\A3\ui_f\data\gui\cfg\slider\arrowEmpty_ca.paa";
  132. arrowFull = "\A3\ui_f\data\gui\cfg\slider\arrowFull_ca.paa";
  133. border = "\A3\ui_f\data\gui\cfg\slider\border_ca.paa";
  134. thumb = "\A3\ui_f\data\gui\cfg\slider\thumb_ca.paa";
  135. };
  136. class RscText {
  137. x = 0;
  138. y = 0;
  139. h = 0.037;
  140. w = 0.3;
  141. type = 0;
  142. style = 0;
  143. shadow = 1;
  144. colorShadow[] = {0, 0, 0, 0.5};
  145. font = "PuristaMedium";
  146. SizeEx = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
  147. text = "";
  148. colorText[] = {1, 1, 1, 1.0};
  149. colorBackground[] = {0, 0, 0, 0};
  150. linespacing = 1;
  151. };
  152. class RscTitle:RscText {
  153. style = 0;
  154. shadow = 0;
  155. sizeEx = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
  156. colorText[] = {0.95, 0.95, 0.95, 1};
  157. };
  158. class RscShortcutButton {
  159. idc = -1;
  160. style = 0;
  161. default = 0;
  162. shadow = 1;
  163. w = 0.183825;
  164. h = "( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 20)";
  165. color[] = {1,1,1,1.0};
  166. colorFocused[] = {1,1,1,1.0};
  167. color2[] = {0.95,0.95,0.95,1};
  168. colorDisabled[] = {1,1,1,0.25};
  169. colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.69])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.75])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.5])",1};
  170. colorBackgroundFocused[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.69])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.75])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.5])",1};
  171. colorBackground2[] = {1,1,1,1};
  172. animTextureDefault = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\normal_ca.paa";
  173. animTextureNormal = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\normal_ca.paa";
  174. animTextureDisabled = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\normal_ca.paa";
  175. animTextureOver = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\over_ca.paa";
  176. animTextureFocused = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\focus_ca.paa";
  177. animTexturePressed = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\down_ca.paa";
  178. periodFocus = 1.2;
  179. periodOver = 0.8;
  180. class HitZone
  181. {
  182. left = 0.0;
  183. top = 0.0;
  184. right = 0.0;
  185. bottom = 0.0;
  186. };
  187. class ShortcutPos
  188. {
  189. left = 0;
  190. top = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 20) - ( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2";
  191. w = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1) * (3/4)";
  192. h = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
  193. };
  194. class TextPos
  195. {
  196. left = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1) * (3/4)";
  197. top = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 20) - ( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2";
  198. right = 0.005;
  199. bottom = 0.0;
  200. };
  201. period = 0.4;
  202. font = "PuristaMedium";
  203. size = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
  204. sizeEx = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
  205. text = "";
  206. soundEnter[] = {"\A3\ui_f\data\sound\RscButton\soundEnter",0.09,1};
  207. soundPush[] = {"\A3\ui_f\data\sound\RscButton\soundPush",0.09,1};
  208. soundClick[] = {"\A3\ui_f\data\sound\RscButton\soundClick",0.09,1};
  209. soundEscape[] = {"\A3\ui_f\data\sound\RscButton\soundEscape",0.09,1};
  210. action = "";
  211. class Attributes
  212. {
  213. font = "PuristaMedium";
  214. color = "#E5E5E5";
  215. align = "left";
  216. shadow = "true";
  217. };
  218. class AttributesImage
  219. {
  220. font = "PuristaMedium";
  221. color = "#E5E5E5";
  222. align = "left";
  223. };
  224. };
  225. class RscControlsGroup {
  226. type = 15;
  227. idc = -1;
  228. x = 0;
  229. y = 0;
  230. w = 1;
  231. h = 1;
  232. shadow = 0;
  233. style = 16;
  234. class ScrollBar {
  235. color[] = {1, 1, 1, 0.6};
  236. colorActive[] = {1, 1, 1, 1};
  237. colorDisabled[] = {1, 1, 1, 0.3};
  238. thumb = "\A3\ui_f\data\gui\cfg\scrollbar\thumb_ca.paa";
  239. arrowFull = "\A3\ui_f\data\gui\cfg\scrollbar\arrowFull_ca.paa";
  240. arrowEmpty = "\A3\ui_f\data\gui\cfg\scrollbar\arrowEmpty_ca.paa";
  241. border = "\A3\ui_f\data\gui\cfg\scrollbar\border_ca.paa";
  242. shadow = 0;
  243. scrollSpeed = 0.05;
  244. };
  245. class VScrollbar:ScrollBar {
  246. width = 0.021;
  247. autoScrollSpeed = -1;
  248. autoScrollDelay = 5;
  249. autoScrollRewind = 0;
  250. shadow = 0;
  251. color[] = {1, 1, 1, 0.6};
  252. };
  253. class HScrollbar:ScrollBar {
  254. height = 0.028;
  255. shadow = 0;
  256. color[] = {1, 1, 1, 0.6};
  257. };
  258. //class ListScrollBar : ScrollBar {};
  259. class Controls {};
  260. };
  261. class RscControlsGroupNoScrollbars : RscControlsGroup {
  262. class VScrollbar : VScrollbar {
  263. width = 0;
  264. };
  265. class HScrollbar : HScrollbar {
  266. height = 0;
  267. };
  268. };
  269. class RscButtonMenu:RscShortcutButton {
  270. idc = -1;
  271. type = 16;
  272. style = "0x02 + 0xC0";
  273. default = 0;
  274. shadow = 0;
  275. x = 0;
  276. y = 0;
  277. w = 0.095589;
  278. h = 0.039216;
  279. animTextureNormal = "#(argb,8,8,3)color(1,1,1,1)";
  280. animTextureDisabled = "#(argb,8,8,3)color(1,1,1,1)";
  281. animTextureOver = "#(argb,8,8,3)color(1,1,1,1)";
  282. animTextureFocused = "#(argb,8,8,3)color(1,1,1,1)";
  283. animTexturePressed = "#(argb,8,8,3)color(1,1,1,1)";
  284. animTextureDefault = "#(argb,8,8,3)color(1,1,1,1)";
  285. colorBackground[] = {0,0,0,0.8};
  286. colorBackgroundFocused[] = {1,1,1,1};
  287. colorBackground2[] = {0.75,0.75,0.75,1};
  288. color[] = {1,1,1,1};
  289. colorFocused[] = {0,0,0,1};
  290. color2[] = {0,0,0,1};
  291. colorText[] = {1,1,1,1};
  292. colorDisabled[] = {1,1,1,0.25};
  293. period = 1.2;
  294. periodFocus = 1.2;
  295. periodOver = 1.2;
  296. size = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
  297. sizeEx = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
  298. tooltipColorText[] = {1,1,1,1};
  299. tooltipColorBox[] = {1,1,1,1};
  300. tooltipColorShade[] = {0,0,0,0.65};
  301. class TextPos
  302. {
  303. left = "0.25 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
  304. top = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) - ( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2";
  305. right = 0.005;
  306. bottom = 0.0;
  307. };
  308. class Attributes
  309. {
  310. font = "PuristaLight";
  311. color = "#E5E5E5";
  312. align = "left";
  313. shadow = "false";
  314. };
  315. class ShortcutPos
  316. {
  317. left = "(6.25 * ( ((safezoneW / safezoneH) min 1.2) / 40)) - 0.0225 - 0.005";
  318. top = 0.005;
  319. w = 0.0225;
  320. h = 0.03;
  321. };
  322. soundEnter[] = {"\A3\ui_f\data\sound\RscButtonMenu\soundEnter",0.09,1};
  323. soundPush[] = {"\A3\ui_f\data\sound\RscButtonMenu\soundPush",0.09,1};
  324. soundClick[] = {"\A3\ui_f\data\sound\RscButtonMenu\soundClick",0.09,1};
  325. soundEscape[] = {"\A3\ui_f\data\sound\RscButtonMenu\soundEscape",0.09,1};
  326. textureNoShortcut = "";
  327. };
  328. class TAW_VDMenu {
  329. idd = MENU_IDD;
  330. name = "TAW_VDMenu";
  331. movingEnabled = 0;
  332. enableSimulation = 1;
  333. onLoad = "((_this select 0) displayCtrl 2999) ctrlSetFade 1; ((_this select 0) displayCtrl 2999) ctrlCommit 0;";
  334. class controlsBackground {
  335. class TitleBackground : RscText {
  336. 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])" };
  337. idc = -1;
  338. x = .3;
  339. y = .2;
  340. w = .5;
  341. h = (1 / 25);
  342. };
  343. class MainBackground : RscText {
  344. colorBackground[] = { 0, 0, 0, .7 };
  345. idc = -1;
  346. x = .3;
  347. y = .2 + (11 / 250);
  348. w = .5;
  349. h = .57 - (22 / 250);
  350. };
  351. class Title : RscTitle {
  352. colorBackround[] = { 0, 0, 0, 0 };
  353. idc = -1;
  354. text = "View Settings (SCRIPT)";
  355. x = .3;
  356. y = .2;
  357. w = .8;
  358. h = (1 / 25);
  359. };
  360. class OnFootText : RscText {
  361. idc = -1;
  362. text = "Infantry:";
  363. x = .32;
  364. y = .258;
  365. w = .275;
  366. h = .04;
  367. };
  368. class inCarText : OnFootText {
  369. text = "Ground:";
  370. y = .305;
  371. };
  372. class inAirText : OnFootText {
  373. text = "Air:";
  374. y = .355;
  375. };
  376. class ObjectText : OnFootText {
  377. text = "Object:";
  378. y = .655;
  379. };
  380. class DroneText : OnFootText {
  381. text = "Drone:";
  382. y = .405;
  383. };
  384. class TerrainBackground : TitleBackground {
  385. text = "Grass Settings";
  386. shadow = 0;
  387. y = .46;
  388. };
  389. class ObjectBackground : TitleBackground {
  390. text = "Object Settings";
  391. y = .55;
  392. };
  393. class ButtonClose : RscButtonMenu {
  394. idc = -1;
  395. text = "Close";
  396. onButtonClick = "closeDialog 0;";
  397. x = 0.3;
  398. y = 0.77 - (1 / 25);
  399. w = (6.25 / 40);
  400. h = (1 / 25);
  401. };
  402. class SaveManagerBtn:ButtonClose {
  403. text = "Saves";
  404. onButtonClick = "[] call tawvd_fnc_openSaveManager;";
  405. x = .465;
  406. };
  407. };
  408. class controls {
  409. //Sliders
  410. class VD_onFoot_slider : RscXSliderH {
  411. idc = INFANTRY_SLIDER;
  412. text = "";
  413. onSliderPosChanged = "[0, _this select 1] call TAWVD_fnc_onSliderChanged;";
  414. toolTip = "View Distance while on foot";
  415. x = .42;
  416. y = .30 - (1 / 25);
  417. w = "9 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
  418. h = "1 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
  419. };
  420. class VD_inCar_slider : VD_onFoot_slider {
  421. idc = GROUND_SLIDER;
  422. toolTip = "View distance while in a ground vehicle";
  423. onSliderPosChanged = "[1, _this select 1] call TAWVD_fnc_onSliderChanged;";
  424. y = .35 - (1 / 25);
  425. };
  426. class VD_inAir_slider : VD_onFoot_slider {
  427. idc = AIR_SLIDER;
  428. toolTip = "View distance while in an aircraft";
  429. onSliderPosChanged = "[2, _this select 1] call TAWVD_fnc_onSliderChanged;";
  430. y = .40 - (1 / 25);
  431. };
  432. class VD_Object_slider : VD_onFoot_slider {
  433. idc = OBJECT_SLIDER;
  434. toolTip = "Object rendering distance";
  435. onSliderPosChanged = "[3, _this select 1] call TAWVD_fnc_onSliderChanged;";
  436. y = .7 - (1 / 25);
  437. };
  438. class VD_Drone_slider:VD_onFoot_slider {
  439. idc = DRONE_SLIDER;
  440. toolTip = "View distance while operating a UAV/UGV";
  441. onSliderPosChanged = "[4, _this select 1] call TAWVD_fnc_onSliderChanged;";
  442. y = .45 - (1 / 25);
  443. }
  444. //Values (RscEdit Butons)
  445. class VD_onFoot_Edit : RscEdit {
  446. idc = INFANTRY_EDIT;
  447. text = "";
  448. onKeyUp = "[_this select 0, _this select 1, 'ground',true] call TAWVD_fnc_onChar;";
  449. x = .7;
  450. y = .258;
  451. w = .08;
  452. h = .04;
  453. };
  454. class VD_inCar_Edit : VD_onFoot_Edit {
  455. idc = GROUND_EDIT;
  456. onKeyUp = "[_this select 0, _this select 1, 'vehicle',true] call TAWVD_fnc_onChar;";
  457. y = .31;
  458. };
  459. class VD_inAir_Edit : VD_onFoot_Edit {
  460. idc = AIR_EDIT;
  461. onKeyUp = "[_this select 0, _this select 1, 'air',true] call TAWVD_fnc_onChar;";
  462. y = .36;
  463. };
  464. class VD_inDrone_Edit:VD_onFoot_Edit {
  465. idc = DRONE_EDIT;
  466. onKeyUp = "[_this select 0, _this select 1, 'drone',true] call TAWVD_fnc_onChar;";
  467. y = .41;
  468. };
  469. class VD_Object_Edit : VD_onFoot_Edit {
  470. idc = OBJECT_EDIT;
  471. onKeyUp = "[_this select 0, _this select 1, 'object',true] call TAWVD_fnc_onChar;";
  472. y = .656;
  473. };
  474. //Grass Settings
  475. class VD_terrain_none {
  476. idc = TERRAIN_NONE;
  477. type = 11;
  478. style = 0;
  479. font = "PuristaLight";
  480. color[] = { 1, 1, 1, 1 };
  481. colorActive[] = { 1, 0.2, 0.2, 1 };
  482. colorDisabled[] = {0, 0, 0, 1};
  483. soundEnter[] = { "\A3\ui_f\data\sound\onover", 0.09, 1 };
  484. soundPush[] = { "\A3\ui_f\data\sound\new1", 0.0, 0 };
  485. soundClick[] = { "\A3\ui_f\data\sound\onclick", 0.07, 1 };
  486. soundEscape[] = { "\A3\ui_f\data\sound\onescape", 0.09, 1 };
  487. text = "None";
  488. action = "['none'] call TAWVD_fnc_onTerrainChanged;";
  489. sizeEx = 0.04;
  490. x = .38; y = .505;
  491. w = .275; h = .04;
  492. };
  493. class VD_terrain_low : VD_terrain_none {
  494. idc = -1;
  495. text = "Low";
  496. action = "['low'] call TAWVD_fnc_onTerrainChanged;";
  497. x = .47;
  498. };
  499. class VD_terrain_normal : VD_terrain_none {
  500. idc = -1;
  501. text = "Normal";
  502. action = "['norm'] call TAWVD_fnc_onTerrainChanged;";
  503. x = .56;
  504. };
  505. class VD_terrain_high : VD_terrain_none {
  506. idc = -1;
  507. text = "High";
  508. action = "['high'] call TAWVD_fnc_onTerrainChanged;";
  509. x = .67;
  510. };
  511. class ObjectSyncCheckbox : RscCheckbox
  512. {
  513. idc = 2931;
  514. x = .32; y = .6;
  515. tooltip = "Sync object rendering with view rendering";
  516. onCheckedChanged = "if((_this select 1) == 1) then {tawvd_syncObject = true;ctrlEnable [2941,false]; ctrlEnable [2942,false];} else {tawvd_syncObject = false; ctrlEnable [2942,true]; ctrlEnable [2941,true];};";
  517. w = 1 * GUI_GRID_CENTER_W;
  518. h = 1 * GUI_GRID_CENTER_H;
  519. };
  520. class ObjectSynctext : RscText {
  521. idc = -1;
  522. text = "Sync with view";
  523. x = .345; y = .596;
  524. w = .35; h = .04;
  525. };
  526. class Manager:RscControlsGroup {
  527. idc = MANAGER_GROUP;
  528. x = -0.21; y = .2;
  529. w = .5; h = 3;
  530. class Controls {
  531. class SaveLoadGroup:RscControlsGroupNoScrollbars {
  532. idc = SAVELOAD_GROUP;
  533. x = 0;
  534. y = 0;
  535. w = .5;
  536. h = 3;
  537. class Controls {
  538. class MyTitleBackground:RscText {
  539. 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])" };
  540. idc = -1;
  541. x = 0;
  542. y = 0;
  543. w = .5;
  544. h = (1 / 25);
  545. };
  546. class Title : RscTitle {
  547. colorBackround[] = { 0, 0, 0, 0 };
  548. idc = -1;
  549. text = "Save Manager";
  550. x = 0;
  551. y = 0;
  552. w = .8;
  553. h = (1 / 25);
  554. };
  555. class MainBackground:RscText {
  556. colorBackground[] = { 0, 0, 0, .7 };
  557. idc = -1;
  558. x = 0;
  559. y = 0 + (11 / 250);
  560. w = .5;
  561. h = .57 - (22 / 250);
  562. };
  563. class SaveList:RscListBox {
  564. idc = SAVES_LIST;
  565. sizeEx = 0.04;
  566. colorBackground[] = {0.1,0.1,0.1,0.9};
  567. x = 0; y = 0 + (11 / 250);
  568. w = .5; h = .49 - (22 / 250);
  569. onLBSelChanged = "_this call TAWVD_fnc_onSaveSelectionChanged;";
  570. };
  571. class SaveSlotName:VD_onFoot_Edit {
  572. idc = SLOT_NAME;
  573. text = "SAVE NAME";
  574. colorBackground[] = {0,0,0,0.6};
  575. onKeyUp = "";
  576. x = .025; y = .42 + (11 / 250);
  577. w = .45;
  578. };
  579. class SaveButton:RscButtonMenu {
  580. text = "Save";
  581. onButtonClick = "[] call TAWVD_fnc_onSavePressed;";
  582. x = 0;
  583. y = 0.57 - (1 / 25);
  584. w = (6.25 / 40);
  585. h = (1 / 25);
  586. };
  587. class HideButton:RscButtonMenu {
  588. text = "Hide";
  589. onButtonClick = "((findDisplay 2900) displayCtrl 2999) ctrlSetFade 1; ((findDisplay 2900) displayCtrl 2999) ctrlCommit 0.3;";
  590. x = .16;
  591. y = 0.57 - (1 / 25);
  592. w = (6.25 / 40);
  593. h = (1 / 25);
  594. };
  595. };
  596. };
  597. };
  598. };
  599. };
  600. };