Advertisement
Guest User

none

a guest
Sep 20th, 2014
240
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.55 KB | None | 0 0
  1. /*
  2. ArmA 3 TAW View Distance Management
  3. Resource Definesby Sa-Matra
  4. */
  5.  
  6. class TAWVD_RscShortcutButton {
  7. idc = -1;
  8. style = 0;
  9. default = 0;
  10. shadow = 1;
  11. w = 0.183825;
  12. h = "( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 20)";
  13. color[] = {1,1,1,1.0};
  14. colorFocused[] = {1,1,1,1.0};
  15. color2[] = {0.95,0.95,0.95,1};
  16. colorDisabled[] = {1,1,1,0.25};
  17. 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};
  18. 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};
  19. colorBackground2[] = {1,1,1,1};
  20. animTextureDefault = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\normal_ca.paa";
  21. animTextureNormal = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\normal_ca.paa";
  22. animTextureDisabled = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\normal_ca.paa";
  23. animTextureOver = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\over_ca.paa";
  24. animTextureFocused = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\focus_ca.paa";
  25. animTexturePressed = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\down_ca.paa";
  26. periodFocus = 1.2;
  27. periodOver = 0.8;
  28. class HitZone
  29. {
  30. left = 0.0;
  31. top = 0.0;
  32. right = 0.0;
  33. bottom = 0.0;
  34. };
  35. class ShortcutPos
  36. {
  37. left = 0;
  38. top = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 20) - ( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2";
  39. w = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1) * (3/4)";
  40. h = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
  41. };
  42. class TextPos
  43. {
  44. left = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1) * (3/4)";
  45. top = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 20) - ( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2";
  46. right = 0.005;
  47. bottom = 0.0;
  48. };
  49. period = 0.4;
  50. font = "PuristaMedium";
  51. size = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
  52. sizeEx = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
  53. text = "";
  54. soundEnter[] = {"\A3\ui_f\data\sound\RscButton\soundEnter",0.09,1};
  55. soundPush[] = {"\A3\ui_f\data\sound\RscButton\soundPush",0.09,1};
  56. soundClick[] = {"\A3\ui_f\data\sound\RscButton\soundClick",0.09,1};
  57. soundEscape[] = {"\A3\ui_f\data\sound\RscButton\soundEscape",0.09,1};
  58. action = "";
  59. class Attributes
  60. {
  61. font = "PuristaMedium";
  62. color = "#E5E5E5";
  63. align = "left";
  64. shadow = "true";
  65. };
  66. class AttributesImage
  67. {
  68. font = "PuristaMedium";
  69. color = "#E5E5E5";
  70. align = "left";
  71. };
  72. };
  73.  
  74. class TAWVD_RscText {
  75. x = 0;
  76. y = 0;
  77. h = 0.037;
  78. w = 0.3;
  79. type = 0;
  80. style = 0;
  81. shadow = 1;
  82. colorShadow[] = {0, 0, 0, 0.5};
  83. font = "PuristaMedium";
  84. SizeEx = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
  85. text = "";
  86. colorText[] = {1, 1, 1, 1.0};
  87. colorBackground[] = {0, 0, 0, 0};
  88. linespacing = 1;
  89. };
  90.  
  91. class TAWVD_RscTitle : TAWVD_RscText {
  92. style = 0;
  93. shadow = 0;
  94. sizeEx = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
  95. colorText[] = {0.95, 0.95, 0.95, 1};
  96. };
  97.  
  98. class TAWVD_RscButtonMenu : TAWVD_RscShortcutButton {
  99. idc = -1;
  100. type = 16;
  101. style = "0x02 + 0xC0";
  102. default = 0;
  103. shadow = 0;
  104. x = 0;
  105. y = 0;
  106. w = 0.095589;
  107. h = 0.039216;
  108. animTextureNormal = "#(argb,8,8,3)color(1,1,1,1)";
  109. animTextureDisabled = "#(argb,8,8,3)color(1,1,1,1)";
  110. animTextureOver = "#(argb,8,8,3)color(1,1,1,1)";
  111. animTextureFocused = "#(argb,8,8,3)color(1,1,1,1)";
  112. animTexturePressed = "#(argb,8,8,3)color(1,1,1,1)";
  113. animTextureDefault = "#(argb,8,8,3)color(1,1,1,1)";
  114. colorBackground[] = {0,0,0,0.8};
  115. colorBackgroundFocused[] = {1,1,1,1};
  116. colorBackground2[] = {0.75,0.75,0.75,1};
  117. color[] = {1,1,1,1};
  118. colorFocused[] = {0,0,0,1};
  119. color2[] = {0,0,0,1};
  120. colorText[] = {1,1,1,1};
  121. colorDisabled[] = {1,1,1,0.25};
  122. period = 1.2;
  123. periodFocus = 1.2;
  124. periodOver = 1.2;
  125. size = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
  126. sizeEx = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)";
  127. tooltipColorText[] = {1,1,1,1};
  128. tooltipColorBox[] = {1,1,1,1};
  129. tooltipColorShade[] = {0,0,0,0.65};
  130. class TextPos
  131. {
  132. left = "0.25 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
  133. top = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) - ( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2";
  134. right = 0.005;
  135. bottom = 0.0;
  136. };
  137. class Attributes
  138. {
  139. font = "PuristaLight";
  140. color = "#E5E5E5";
  141. align = "left";
  142. shadow = "false";
  143. };
  144. class ShortcutPos
  145. {
  146. left = "(6.25 * ( ((safezoneW / safezoneH) min 1.2) / 40)) - 0.0225 - 0.005";
  147. top = 0.005;
  148. w = 0.0225;
  149. h = 0.03;
  150. };
  151. soundEnter[] = {"\A3\ui_f\data\sound\RscButtonMenu\soundEnter",0.09,1};
  152. soundPush[] = {"\A3\ui_f\data\sound\RscButtonMenu\soundPush",0.09,1};
  153. soundClick[] = {"\A3\ui_f\data\sound\RscButtonMenu\soundClick",0.09,1};
  154. soundEscape[] = {"\A3\ui_f\data\sound\RscButtonMenu\soundEscape",0.09,1};
  155. textureNoShortcut = "";
  156. };
  157.  
  158. class TAWVD_RscXSliderH
  159. {
  160. style = 1024;
  161. type = 43;
  162. shadow = 2;
  163. x = 0;
  164. y = 0;
  165. h = 0.029412;
  166. w = 0.400000;
  167. color[] = {
  168. 1, 1, 1, 0.7
  169. };
  170. colorActive[] = {
  171. 1, 1, 1, 1
  172. };
  173. colorDisabled[] = {
  174. 1, 1, 1, 0.500000
  175. };
  176. arrowEmpty = "\A3\ui_f\data\gui\cfg\slider\arrowEmpty_ca.paa";
  177. arrowFull = "\A3\ui_f\data\gui\cfg\slider\arrowFull_ca.paa";
  178. border = "\A3\ui_f\data\gui\cfg\slider\border_ca.paa";
  179. thumb = "\A3\ui_f\data\gui\cfg\slider\thumb_ca.paa";
  180. };
  181.  
  182. class TAWVD_activeText
  183. {
  184. idc = -1;
  185. type = 11;
  186. style = 0;
  187. x = 0;
  188. y = 0;
  189. h = 0.037;
  190. w = 0.3;
  191. sizeEx = 0.040;
  192. font = "PuristaLight";
  193. color[] = {1, 1, 1, 1};
  194. colorActive[] = {1, 0.2, 0.2, 1};
  195. soundEnter[] = {"\A3\ui_f\data\sound\onover", 0.09, 1};
  196. soundPush[] = {"\A3\ui_f\data\sound\new1", 0.0, 0};
  197. soundClick[] = {"\A3\ui_f\data\sound\onclick", 0.07, 1};
  198. soundEscape[] = {"\A3\ui_f\data\sound\onescape", 0.09, 1};
  199. action = "";
  200. text = "";
  201. };
  202.  
  203. class TAW_VD
  204. {
  205. idd = 2900;
  206. name= "taw_vd";
  207. movingEnable = false;
  208. enableSimulation = true;
  209. //onLoad = "['guns'] execVM 'gear\switch.sqf'";
  210.  
  211. class controlsBackground {
  212. class TAWVD_RscTitleBackground:TAWVD_RscText {
  213. 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])"};
  214. idc = -1;
  215. x = 0.3;
  216. y = 0.2;
  217. w = 0.5;
  218. h = (1 / 25);
  219. };
  220.  
  221. class MainBackground : TAWVD_RscText {
  222. colorBackground[] = {0, 0, 0, 0.7};
  223. idc = -1;
  224. x = 0.3;
  225. y = 0.2 + (11 / 250);
  226. w = 0.5;
  227. h = 0.4 - (22 / 250);
  228. };
  229.  
  230. class VDonFoot : TAWVD_RscText
  231. {
  232. idc = -1;
  233. text = "On Foot:";
  234.  
  235. x = 0.32; y = 0.258;
  236. w = 0.275; h = 0.04;
  237. };
  238.  
  239. class VDinCar : TAWVD_RscText
  240. {
  241. idc = -1;
  242. text = "In Car:";
  243.  
  244. x = 0.32; y = 0.305;
  245. w = 0.275; h = 0.04;
  246. };
  247.  
  248. class VDinAir : TAWVD_RscText
  249. {
  250. idc = -1;
  251. text = "In Air:";
  252.  
  253. x = 0.32; y = 0.355;
  254. w = 0.275; h = 0.04;
  255. };
  256.  
  257. class VDTerrSet : TAWVD_RscText
  258. {
  259. idc = -1;
  260. text = "Grass Settings";
  261. shadow = 0;
  262. 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])"};
  263.  
  264. x = 0.30;
  265. y = 0.45;
  266. w = 0.5;
  267. h = (1 / 25);
  268. };
  269.  
  270. };
  271.  
  272. class controls
  273. {
  274. class Title : TAWVD_RscTitle {
  275. colorBackground[] = {0, 0, 0, 0};
  276. idc = -1;
  277. text = "TAW View Distance Script";
  278. x = 0.3;
  279. y = 0.2;
  280. w = 0.8;
  281. h = (1 / 25);
  282. };
  283.  
  284. class VD_onfoot_slider : TAWVD_RscXSliderH
  285. {
  286. idc = 2901;
  287. text = "";
  288. onSliderPosChanged = "[0,_this select 1] call TAWVD_fnc_onSliderChange;";
  289. tooltip = "View distance while on foot";
  290. x = 0.42;
  291. y = 0.30 - (1 / 25);
  292.  
  293. w = "9 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
  294. h = "1 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
  295. };
  296.  
  297. class VD_onfoot_value : TAWVD_RscText
  298. {
  299. idc = 2902;
  300. text = "";
  301.  
  302. x = 0.70; y = 0.258;
  303. w = 0.275; h = 0.04;
  304. };
  305.  
  306. class VD_car_slider : TAWVD_RscXSliderH
  307. {
  308. idc = 2911;
  309. text = "";
  310. onSliderPosChanged = "[1,_this select 1] call TAWVD_fnc_onSliderChange;";
  311. tooltip = "View distance while in a land vehicle";
  312. x = 0.42;
  313. y = 0.35 - (1 / 25);
  314.  
  315. w = "9 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
  316. h = "1 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
  317. };
  318.  
  319. class VD_car_value : TAWVD_RscText
  320. {
  321. idc = 2912;
  322. text = "";
  323.  
  324. x = 0.70; y = 0.31;
  325. w = 0.275; h = 0.04;
  326. };
  327.  
  328. class VD_air_slider : TAWVD_RscXSliderH
  329. {
  330. idc = 2921;
  331. text = "";
  332. onSliderPosChanged = "[2,_this select 1] call TAWVD_fnc_onSliderChange;";
  333. tooltip = "View distance while in a air vehicle";
  334. x = 0.42;
  335. y = 0.40 - (1 / 25);
  336.  
  337. w = "9 * ( ((safezoneW / safezoneH) min 1.2) / 40)";
  338. h = "1 * ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25)";
  339. };
  340.  
  341. class VD_air_value : TAWVD_RscText
  342. {
  343. idc = 2922;
  344. text = "";
  345.  
  346. x = 0.70; y = 0.36;
  347. w = 0.275; h = 0.04;
  348. };
  349.  
  350. class VD_terr_none : TAWVD_activeText
  351. {
  352. idc = -1;
  353. text = "None";
  354. action = "['none'] call TAWVD_fnc_onTerrainChange";
  355. sizeEx = 0.04;
  356.  
  357. x = 0.38; y = 0.50;
  358. w = 0.275; h = 0.04;
  359. }
  360.  
  361. class VD_terr_low : TAWVD_activeText
  362. {
  363. idc = -1;
  364. text = "Low";
  365. action = "['low'] call TAWVD_fnc_onTerrainChange;";
  366. sizeEx = 0.04;
  367.  
  368. x = 0.47; y = 0.50;
  369. w = 0.275; h = 0.04;
  370. };
  371.  
  372. class VD_terr_normal : TAWVD_activeText
  373. {
  374. idc = -1;
  375. text = "Normal";
  376. action = "['norm'] call TAWVD_fnc_onTerrainChange;";
  377. sizeEx = 0.04;
  378.  
  379. x = 0.56; y = 0.50;
  380. w = 0.275; h = 0.04;
  381. };
  382.  
  383. class VD_terr_high : TAWVD_activeText
  384. {
  385. idc = -1;
  386. text = "High";
  387. action = "['high'] call TAWVD_fnc_onTerrainChange;";
  388. sizeEx = 0.04;
  389.  
  390. x = 0.67; y = 0.50;
  391. w = 0.275; h = 0.04;
  392. };
  393.  
  394. class ButtonClose : TAWVD_RscButtonMenu {
  395. idc = -1;
  396. //shortcuts[] = {0x00050000 + 2};
  397. text = "Close";
  398. onButtonClick = "closeDialog 0;";
  399. x = 0.48;
  400. y = 0.6 - (1 / 25);
  401. w = (6.25 / 40);
  402. h = (1 / 25);
  403. };
  404. };
  405. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement