Advertisement
Meowzors

codeChangeUI.hpp

Apr 11th, 2014
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.30 KB | None | 0 0
  1. /*
  2. codeChangeUI.hpp
  3. Safe Code change UI Version 0.8
  4. Using pre-existing Epoch safegui code with edits
  5. */
  6. class RscButton
  7. {
  8. access = 0;
  9. type = 1;
  10. text = "";
  11. colorText[] = {0.8784,0.8471,0.651,1};
  12. colorDisabled[] = {0.4,0.4,0.4,1};
  13. colorBackground[] = {1,0.537,0,0.5};
  14. colorBackgroundDisabled[] = {0.95,0.95,0.95,1};
  15. colorBackgroundActive[] = {1,0.537,0,1};
  16. colorFocused[] = {1,0.537,0,1};
  17. colorShadow[] = {0.023529,0,0.0313725,1};
  18. colorBorder[] = {0.023529,0,0.0313725,1};
  19. soundEnter[] = {"\ca\ui\data\sound\onover",0.09,1};
  20. soundPush[] = {"\ca\ui\data\sound\new1",0,0};
  21. soundClick[] = {"\ca\ui\data\sound\onclick",0.07,1};
  22. soundEscape[] = {"\ca\ui\data\sound\onescape",0.09,1};
  23. style = 2;
  24. x = 0;
  25. y = 0;
  26. w = 0.095589;
  27. h = 0.039216;
  28. shadow = 2;
  29. font = "Zeppelin32";
  30. sizeEx = 0.03921;
  31. offsetX = 0.003;
  32. offsetY = 0.003;
  33. offsetPressedX = 0.002;
  34. offsetPressedY = 0.002;
  35. borderSize = 0;
  36. };
  37.  
  38. class LockBoxChangeUI {
  39. idd = -1;
  40. movingenable = 0;
  41.  
  42. class Controls {
  43. class KeypadUIPic : RscPicture {
  44. idc = -1;
  45. text = "\z\addons\dayz_epoch\ui\lockbox_gui.paa";
  46. x = 0.0492023;
  47. y = 0.00788009;
  48. w = 0.902925;
  49. h = 0.98818;
  50. };
  51.  
  52. class main_button : RscButton {
  53. idc = -1;
  54. text = "";
  55. style = 0x02 + 0x100;
  56. colorText[] = {1, 1, 1, 0};
  57. colorDisabled[] = {1, 1, 1, 0};
  58. colorBackground[] = {1, 1, 1, 0};
  59. colorBackgroundDisabled[] = {1, 1, 1, 0};
  60. colorBackgroundActive[] = {1, 1, 1, 0.1};
  61. colorShadow[] = {1, 1, 1, 0};
  62. colorFocused[] = {1, 1, 1, 0.1};
  63. soundClick[] = {"", 0.6, 1};
  64. };
  65.  
  66. class red_button : main_button {
  67. idc = -1;
  68. x = 0.171543;
  69. y = 0.115839;
  70. w = 0.126596;
  71. h = 0.153191;
  72. action = "new_combination = new_combination + [str(100)];";
  73. onButtonClick = "[player,""keypad_tick"",0,false] call dayz_zombieSpeak";
  74. };
  75.  
  76. class green_button : main_button {
  77. idc = -1;
  78. x = 0.343085;
  79. y = 0.115839;
  80. w = 0.126596;
  81. h = 0.153191;
  82. action = "new_combination = new_combination + [str(101)];";
  83. onButtonClick = "[player,""keypad_tick"",0,false] call dayz_zombieSpeak";
  84. };
  85.  
  86. class blue_button : main_button {
  87. idc = -1;
  88. x = 0.514628;
  89. y = 0.115839;
  90. w = 0.126596;
  91. h = 0.153191;
  92. action = "new_combination = new_combination + [str(102)];";
  93. onButtonClick = "[player,""keypad_tick"",0,false] call dayz_zombieSpeak";
  94. };
  95.  
  96. class keypad_1 : main_button {
  97. idc = -1;
  98. x = 0.174202;
  99. y = 0.308905;
  100. w = 0.126596;
  101. h = 0.153191;
  102. action = "new_combination = new_combination + [str(1)];";
  103. onButtonClick = "[player,""keypad_tick"",0,false] call dayz_zombieSpeak";
  104. };
  105.  
  106. class keypad_2 : main_button {
  107. idc = -1;
  108. x = 0.344415;
  109. y = 0.310875;
  110. w = 0.126596;
  111. h = 0.153191;
  112. action = "new_combination = new_combination + [str(2)];";
  113. onButtonClick = "[player,""keypad_tick"",0,false] call dayz_zombieSpeak";
  114. };
  115.  
  116. class keypad_3 : main_button {
  117. idc = -1;
  118. x = 0.515957;
  119. y = 0.312845;
  120. w = 0.126596;
  121. h = 0.153191;
  122. action = "new_combination = new_combination + [str(3)];";
  123. onButtonClick = "[player,""keypad_tick"",0,false] call dayz_zombieSpeak";
  124. };
  125.  
  126. class keypad_4 : main_button {
  127. idc = -1;
  128. x = 0.178192;
  129. y = 0.50788;
  130. w = 0.126596;
  131. h = 0.153191;
  132. action = "new_combination = new_combination + [str(4)];";
  133. onButtonClick = "[player,""keypad_tick"",0,false] call dayz_zombieSpeak";
  134. };
  135.  
  136. class keypad_5 : main_button {
  137. idc = -1;
  138. x = 0.344415;
  139. y = 0.50788;
  140. w = 0.126596;
  141. h = 0.153191;
  142. action = "new_combination = new_combination + [str(5)];";
  143. onButtonClick = "[player,""keypad_tick"",0,false] call dayz_zombieSpeak";
  144. };
  145.  
  146. class keypad_6 : main_button {
  147. idc = -1;
  148. x = 0.517287;
  149. y = 0.50985;
  150. w = 0.126596;
  151. h = 0.153191;
  152. action = "new_combination = new_combination + [str(6)];";
  153. onButtonClick = "[player,""keypad_tick"",0,false] call dayz_zombieSpeak";
  154. };
  155.  
  156. class keypad_7 : main_button {
  157. idc = -1;
  158. x = 0.179521;
  159. y = 0.700946;
  160. w = 0.126596;
  161. h = 0.153191;
  162. action = "new_combination = new_combination + [str(7)];";
  163. onButtonClick = "[player,""keypad_tick"",0,false] call dayz_zombieSpeak";
  164. };
  165.  
  166. class keypad_8 : main_button {
  167. idc = -1;
  168. x = 0.344415;
  169. y = 0.700946;
  170. w = 0.126596;
  171. h = 0.153191;
  172. action = "new_combination = new_combination + [str(8)];";
  173. onButtonClick = "[player,""keypad_tick"",0,false] call dayz_zombieSpeak";
  174. };
  175.  
  176. class keypad_9 : main_button {
  177. idc = -1;
  178. x = 0.518617;
  179. y = 0.704886;
  180. w = 0.126596;
  181. h = 0.153191;
  182. action = "new_combination = new_combination + [str(9)];";
  183. onButtonClick = "[player,""keypad_tick"",0,false] call dayz_zombieSpeak";
  184. };
  185.  
  186. class keypad_0 : main_button {
  187. idc = -1;
  188. x = 0.692819;
  189. y = 0.704886;
  190. w = 0.126596;
  191. h = 0.153191;
  192. action = "new_combination = new_combination + [str(0)];";
  193. onButtonClick = "[player,""keypad_tick"",0,false] call dayz_zombieSpeak";
  194. };
  195.  
  196. class kpbcancel : main_button {
  197. idc = -1;
  198. x = 0.68617;
  199. y = 0.312845;
  200. w = 0.126596;
  201. h = 0.153191;
  202. onButtonClick = "[player,""keypad_tick"",0,false] call dayz_zombieSpeak;((ctrlParent (_this select 0)) closeDisplay 3000);";
  203. };
  204.  
  205. class kpbcancel2 : main_button {
  206. idc = -1;
  207. x = 0.69016;
  208. y = 0.50985;
  209. w = 0.126596;
  210. h = 0.153191;
  211. onButtonClick = "[player,""keypad_tick"",0,false] call dayz_zombieSpeak;((ctrlParent (_this select 0)) closeDisplay 3000);";
  212. };
  213.  
  214. class kpbenter : main_button {
  215. idc = -1;
  216. x = 0.6875;
  217. y = 0.121749;
  218. w = 0.126596;
  219. h = 0.153191;
  220. action = "[dayz_selectedVault,new_combination] spawn player_changeCode;";
  221. onButtonClick = "((ctrlParent (_this select 0)) closeDisplay 3000); [dayz_selectedVault,new_combination] spawn player_changeCode;";
  222. };
  223. };
  224. };
  225.  
  226. class SafeChangeUI {
  227. idd = -1;
  228. movingenable = 0;
  229.  
  230. class Controls {
  231. class SafeKeyPadPic : RscPicture {
  232. idc = -1;
  233. text = "\z\addons\dayz_epoch\pictures\SafeKeyPad.paa";
  234. x = "0.361701 * safezoneW + safezoneX";
  235. y = "0.255985 * safezoneH + safezoneY";
  236. w = "0.281637 * safezoneW";
  237. h = "0.470087 * safezoneH";
  238. };
  239.  
  240. class b1 : RscButton {
  241. idc = -1;
  242. x = "0.444897 * safezoneW + safezoneX";
  243. y = "0.39423 * safezoneH + safezoneY";
  244. w = "0.0283751 * safezoneW";
  245. h = "0.0490667 * safezoneH";
  246. font = "Zeppelin33";
  247. sizeEx = 0.05;
  248. text = "1";
  249. colorText[] = {0, 0.6, 1, 1};
  250. colorBackground[] = {0, 0, 0, 0};
  251. colorBackgroundActive[] = {0, 0, 0, 0};
  252. action = "new_combination = new_combination + [str(1)];";
  253. soundClick[] = {"\dayz_sfx\action\cell\dtmf_1.ogg", 0.5, 1};
  254. };
  255.  
  256. class b4 : RscButton {
  257. idc = -1;
  258. x = "0.444897 * safezoneW + safezoneX";
  259. y = "0.441239 * safezoneH + safezoneY";
  260. w = "0.0283751 * safezoneW";
  261. h = "0.0490667 * safezoneH";
  262. font = "Zeppelin33";
  263. sizeEx = 0.05;
  264. text = "4";
  265. colorText[] = {0, 0.6, 1, 1};
  266. colorBackground[] = {0, 0, 0, 0};
  267. colorBackgroundActive[] = {0, 0, 0, 0};
  268. action = "new_combination = new_combination + [str(4)];";
  269. soundClick[] = {"\dayz_sfx\action\cell\dtmf_4.ogg", 0.5, 1};
  270. };
  271.  
  272. class b7 : RscButton {
  273. idc = -1;
  274. x = "0.444897 * safezoneW + safezoneX";
  275. y = "0.488248 * safezoneH + safezoneY";
  276. w = "0.0283751 * safezoneW";
  277. h = "0.0490667 * safezoneH";
  278. font = "Zeppelin33";
  279. sizeEx = 0.05;
  280. text = "7";
  281. colorText[] = {0, 0.6, 1, 1};
  282. colorBackground[] = {0, 0, 0, 0};
  283. colorBackgroundActive[] = {0, 0, 0, 0};
  284. action = "new_combination = new_combination + [str(7)];";
  285. soundClick[] = {"\dayz_sfx\action\cell\dtmf_7.ogg", 0.5, 1};
  286. };
  287.  
  288. class b2 : RscButton {
  289. idc = -1;
  290. x = "0.487755 * safezoneW + safezoneX";
  291. y = "0.39423 * safezoneH + safezoneY";
  292. w = "0.0283751 * safezoneW";
  293. h = "0.0490667 * safezoneH";
  294. font = "Zeppelin33";
  295. sizeEx = 0.05;
  296. text = "2";
  297. colorText[] = {0, 0.6, 1, 1};
  298. colorBackground[] = {0, 0, 0, 0};
  299. colorBackgroundActive[] = {0, 0, 0, 0};
  300. action = "new_combination = new_combination + [str(2)];";
  301. soundClick[] = {"\dayz_sfx\action\cell\dtmf_2.ogg", 0.5, 1};
  302. };
  303.  
  304. class b8 : RscButton {
  305. idc = -1;
  306. x = "0.487755 * safezoneW + safezoneX";
  307. y = "0.488248 * safezoneH + safezoneY";
  308. w = "0.0283751 * safezoneW";
  309. h = "0.0490667 * safezoneH";
  310. font = "Zeppelin33";
  311. sizeEx = 0.05;
  312. text = "8";
  313. colorText[] = {0, 0.6, 1, 1};
  314. colorBackground[] = {0, 0, 0, 0};
  315. colorBackgroundActive[] = {0, 0, 0, 0};
  316. action = "new_combination = new_combination + [str(8)];";
  317. soundClick[] = {"\dayz_sfx\action\cell\dtmf_8.ogg", 0.5, 1};
  318. };
  319.  
  320. class b5 : RscButton {
  321. idc = -1;
  322. x = "0.487755 * safezoneW + safezoneX";
  323. y = "0.441239 * safezoneH + safezoneY";
  324. w = "0.0283751 * safezoneW";
  325. h = "0.0490667 * safezoneH";
  326. font = "Zeppelin33";
  327. sizeEx = 0.05;
  328. text = "5";
  329. colorText[] = {0, 0.6, 1, 1};
  330. colorBackground[] = {0, 0, 0, 0};
  331. colorBackgroundActive[] = {0, 0, 0, 0};
  332. action = "new_combination = new_combination + [str(5)];";
  333. soundClick[] = {"\dayz_sfx\action\cell\dtmf_5.ogg", 0.5, 1};
  334. };
  335.  
  336. class b3 : RscButton {
  337. idc = -1;
  338. x = "0.530613 * safezoneW + safezoneX";
  339. y = "0.39423 * safezoneH + safezoneY";
  340. w = "0.0283751 * safezoneW";
  341. h = "0.0490667 * safezoneH";
  342. font = "Zeppelin33";
  343. sizeEx = 0.05;
  344. text = "3";
  345. colorText[] = {0, 0.6, 1, 1};
  346. colorBackground[] = {0, 0, 0, 0};
  347. colorBackgroundActive[] = {0, 0, 0, 0};
  348. action = "new_combination = new_combination + [str(3)];";
  349. soundClick[] = {"\dayz_sfx\action\cell\dtmf_3.ogg", 0.5, 1};
  350. };
  351.  
  352. class b6 : RscButton {
  353. idc = -1;
  354. x = "0.530613 * safezoneW + safezoneX";
  355. y = "0.441239 * safezoneH + safezoneY";
  356. w = "0.0283751 * safezoneW";
  357. h = "0.0490667 * safezoneH";
  358. font = "Zeppelin33";
  359. sizeEx = 0.05;
  360. text = "6";
  361. colorText[] = {0, 0.6, 1, 1};
  362. colorBackground[] = {0, 0, 0, 0};
  363. colorBackgroundActive[] = {0, 0, 0, 0};
  364. action = "new_combination = new_combination + [str(6)];";
  365. soundClick[] = {"\dayz_sfx\action\cell\dtmf_6.ogg", 0.5, 1};
  366. };
  367.  
  368. class b9 : RscButton {
  369. idc = -1;
  370. x = "0.530613 * safezoneW + safezoneX";
  371. y = "0.488248 * safezoneH + safezoneY";
  372. w = "0.0283751 * safezoneW";
  373. h = "0.0490667 * safezoneH";
  374. font = "Zeppelin33";
  375. sizeEx = 0.05;
  376. text = "9";
  377. colorText[] = {0, 0.6, 1, 1};
  378. colorBackground[] = {0, 0, 0, 0};
  379. colorBackgroundActive[] = {0, 0, 0, 0};
  380. action = "new_combination = new_combination + [str(9)];";
  381. soundClick[] = {"\dayz_sfx\action\cell\dtmf_9.ogg", 0.5, 1};
  382. };
  383.  
  384. class b0 : RscButton {
  385. idc = -1;
  386. x = "0.487755 * safezoneW + safezoneX";
  387. y = "0.535257 * safezoneH + safezoneY";
  388. w = "0.0283751 * safezoneW";
  389. h = "0.0490667 * safezoneH";
  390. font = "Zeppelin33";
  391. sizeEx = 0.05;
  392. text = "0";
  393. colorText[] = {0, 0.6, 1, 1};
  394. colorBackground[] = {0, 0, 0, 0};
  395. colorBackgroundActive[] = {0, 0, 0, 0};
  396. action = "new_combination = new_combination + [str(0)];";
  397. soundClick[] = {"\dayz_sfx\action\cell\dtmf_9.ogg", 0.5, 1};
  398. };
  399.  
  400. class bcancel : RscButton {
  401. idc = -1;
  402. x = "0.444897 * safezoneW + safezoneX";
  403. y = "0.545257 * safezoneH + safezoneY";
  404. w = "0.0263751 * safezoneW";
  405. h = "0.0440667 * safezoneH";
  406. font = "Zeppelin33";
  407. sizeEx = 0.1;
  408. text = "*";
  409. colorText[] = {1, 0.1, 0.1, 1};
  410. colorBackground[] = {0, 0, 0, 0};
  411. colorBackgroundActive[] = {0, 0, 0, 0};
  412. soundClick[] = {"\dayz_sfx\action\cell\dtmf_star.ogg", 0.6, 1};
  413. onButtonClick = "((ctrlParent (_this select 0)) closeDisplay 3000);";
  414. };
  415.  
  416. class benter : RscButton {
  417. idc = -1;
  418. x = "0.530613 * safezoneW + safezoneX";
  419. y = "0.535257 * safezoneH + safezoneY";
  420. w = "0.0263751 * safezoneW";
  421. h = "0.0440667 * safezoneH";
  422. font = "Zeppelin33Italic";
  423. sizeEx = 0.1;
  424. text = "#";
  425. colorText[] = {0, 1, 0, 1};
  426. colorBackground[] = {0, 0, 0, 0};
  427. colorBackgroundActive[] = {0, 0, 0, 0};
  428. action = "[dayz_selectedVault,new_combination] spawn player_changeCode;";
  429. onButtonClick = "((ctrlParent (_this select 0)) closeDisplay 3000); [dayz_selectedVault,new_combination] spawn player_changeCode;";
  430. soundClick[] = {"\dayz_sfx\action\cell\dtmf_hash.ogg", 0.6, 1};
  431. };
  432. };
  433. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement