Advertisement
djhonga2001

Untitled

Dec 24th, 2016
377
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 25.74 KB | None | 0 0
  1. using GTA;
  2. using GTA.Native;
  3. using NativeUI;
  4. using System;
  5. using System.Windows.Forms;
  6.  
  7. internal class ParticleManController : Script
  8. {
  9. private MenuPool _menuPool;
  10. private UIMenu mainMenu;
  11. private UIMenu OtherOptionsSubMenu;
  12. private bool ParticleHandsActive;
  13. private UIMenuCheckboxItem ParticleHandsCheckbox;
  14. private bool ParticleFeetActive;
  15. private UIMenuCheckboxItem ParticleFeetCheckbox;
  16. private bool ParticleHeadActive;
  17. private UIMenuCheckboxItem ParticleHeadCheckbox;
  18. private bool FullBodyActive;
  19. private UIMenuCheckboxItem FullBodyCheckbox;
  20. private bool SuperPunchActive;
  21. private UIMenuCheckboxItem SuperPunchCheckbox;
  22. private bool SuperJumpActive;
  23. private UIMenuCheckboxItem SuperJumpCheckbox;
  24. private ScriptSettings Config;
  25. private Keys openMenu;
  26.  
  27. public ParticleManController()
  28. {
  29. base.\u002Ector();
  30. this.add_KeyUp(new KeyEventHandler(this.OnKeyUp));
  31. this.add_Tick(new EventHandler(this.OnTick));
  32. this._menuPool = new MenuPool();
  33. this.LoadIniFile("scripts//ParticleMan.ini");
  34. }
  35.  
  36. private void LoadIniFile(string iniName)
  37. {
  38. try
  39. {
  40. this.Config = ScriptSettings.Load(iniName);
  41. this.openMenu = (Keys) this.Config.GetValue<Keys>("Configurations", "OpenMenu", (M0) 120);
  42. }
  43. catch (Exception ex)
  44. {
  45. UI.Notify("~r~Error~w~: Config.ini Failed To Load.");
  46. }
  47. }
  48.  
  49. private void OnListChange(UIMenu sender, UIMenuListItem list, int index)
  50. {
  51. }
  52.  
  53. public void OnCheckboxChange(UIMenu sender, UIMenuCheckboxItem checkbox, bool Checked)
  54. {
  55. if (sender == this.mainMenu && checkbox == this.ParticleHandsCheckbox)
  56. {
  57. if (Checked)
  58. {
  59. if (Checked)
  60. {
  61. this.ParticleHandsActive = true;
  62. UI.Notify("Particle Hands: ~g~ON");
  63. }
  64. }
  65. else
  66. {
  67. this.ParticleHandsActive = false;
  68. UI.Notify("Particle Hands: ~r~OFF");
  69. }
  70. }
  71. if (sender == this.mainMenu && checkbox == this.ParticleFeetCheckbox)
  72. {
  73. if (Checked)
  74. {
  75. if (Checked)
  76. {
  77. this.ParticleFeetActive = true;
  78. UI.Notify("Particle Feet: ~g~ON");
  79. }
  80. }
  81. else
  82. {
  83. this.ParticleFeetActive = false;
  84. UI.Notify("Particle Feet: ~r~OFF");
  85. }
  86. }
  87. if (sender == this.mainMenu && checkbox == this.ParticleHeadCheckbox)
  88. {
  89. if (Checked)
  90. {
  91. if (Checked)
  92. {
  93. this.ParticleHeadActive = true;
  94. UI.Notify("Particle Head: ~g~ON");
  95. }
  96. }
  97. else
  98. {
  99. this.ParticleHeadActive = false;
  100. UI.Notify("Particle Head: ~r~OFF");
  101. }
  102. }
  103. if (sender == this.mainMenu && checkbox == this.FullBodyCheckbox)
  104. {
  105. if (Checked)
  106. {
  107. if (Checked)
  108. {
  109. this.FullBodyActive = true;
  110. UI.Notify("Particle On Full Body: ~g~ON");
  111. }
  112. }
  113. else
  114. {
  115. this.FullBodyActive = false;
  116. UI.Notify("Particle On Full Body: ~r~OFF");
  117. }
  118. }
  119. if (sender == this.OtherOptionsSubMenu && checkbox == this.SuperPunchCheckbox)
  120. {
  121. if (Checked)
  122. {
  123. if (Checked)
  124. {
  125. this.SuperPunchActive = true;
  126. UI.Notify("Super Punch: ~g~ON");
  127. }
  128. }
  129. else
  130. {
  131. this.SuperPunchActive = false;
  132. UI.Notify("Super Punch: ~r~OFF");
  133. }
  134. }
  135. if (sender != this.OtherOptionsSubMenu || checkbox != this.SuperJumpCheckbox)
  136. return;
  137. if (Checked)
  138. {
  139. if (!Checked)
  140. return;
  141. this.SuperJumpActive = true;
  142. UI.Notify("Super Jump: ~g~ON");
  143. }
  144. else
  145. {
  146. this.SuperJumpActive = false;
  147. UI.Notify("Super Jump: ~r~OFF");
  148. }
  149. }
  150.  
  151. private void OnKeyUp(object sender, KeyEventArgs e)
  152. {
  153. if (e.KeyCode != this.openMenu)
  154. return;
  155. this.StartUpMenu();
  156. }
  157.  
  158. private void OnTick(object sender, EventArgs e)
  159. {
  160. this._menuPool.ProcessMenus();
  161. if (this.ParticleHandsActive)
  162. {
  163. Function.Call((Hash) -5184338789570016586L, new InputArgument[1]
  164. {
  165. InputArgument.op_Implicit("scr_rcbarry2")
  166. });
  167. Function.Call((Hash) 7798175403732277905L, new InputArgument[1]
  168. {
  169. InputArgument.op_Implicit("scr_rcbarry2")
  170. });
  171. Function.Call((Hash) 1044398152630765081L, new InputArgument[13]
  172. {
  173. InputArgument.op_Implicit("scr_clown_appears"),
  174. InputArgument.op_Implicit(Game.get_Player().get_Character()),
  175. InputArgument.op_Implicit(0.0f),
  176. InputArgument.op_Implicit(0.0f),
  177. InputArgument.op_Implicit(0.0f),
  178. InputArgument.op_Implicit(0.0f),
  179. InputArgument.op_Implicit(0.0f),
  180. InputArgument.op_Implicit(0.0f),
  181. InputArgument.op_Implicit(36029),
  182. InputArgument.op_Implicit(0.05f),
  183. InputArgument.op_Implicit(false),
  184. InputArgument.op_Implicit(false),
  185. InputArgument.op_Implicit(false)
  186. });
  187. Function.Call((Hash) -5184338789570016586L, new InputArgument[1]
  188. {
  189. InputArgument.op_Implicit("scr_rcbarry2")
  190. });
  191. Function.Call((Hash) 7798175403732277905L, new InputArgument[1]
  192. {
  193. InputArgument.op_Implicit("scr_rcbarry2")
  194. });
  195. Function.Call((Hash) 1044398152630765081L, new InputArgument[13]
  196. {
  197. InputArgument.op_Implicit("scr_clown_appears"),
  198. InputArgument.op_Implicit(Game.get_Player().get_Character()),
  199. InputArgument.op_Implicit(0.0f),
  200. InputArgument.op_Implicit(0.0f),
  201. InputArgument.op_Implicit(0.0f),
  202. InputArgument.op_Implicit(0.0f),
  203. InputArgument.op_Implicit(0.0f),
  204. InputArgument.op_Implicit(0.0f),
  205. InputArgument.op_Implicit(6286),
  206. InputArgument.op_Implicit(0.05f),
  207. InputArgument.op_Implicit(false),
  208. InputArgument.op_Implicit(false),
  209. InputArgument.op_Implicit(false)
  210. });
  211. }
  212. if (this.ParticleFeetActive)
  213. {
  214. Function.Call((Hash) -5184338789570016586L, new InputArgument[1]
  215. {
  216. InputArgument.op_Implicit("scr_rcbarry2")
  217. });
  218. Function.Call((Hash) 7798175403732277905L, new InputArgument[1]
  219. {
  220. InputArgument.op_Implicit("scr_rcbarry2")
  221. });
  222. Function.Call((Hash) 1044398152630765081L, new InputArgument[13]
  223. {
  224. InputArgument.op_Implicit("scr_clown_appears"),
  225. InputArgument.op_Implicit(Game.get_Player().get_Character()),
  226. InputArgument.op_Implicit(0.0f),
  227. InputArgument.op_Implicit(0.0f),
  228. InputArgument.op_Implicit(0.0f),
  229. InputArgument.op_Implicit(0.0f),
  230. InputArgument.op_Implicit(0.0f),
  231. InputArgument.op_Implicit(0.0f),
  232. InputArgument.op_Implicit(65245),
  233. InputArgument.op_Implicit(0.05f),
  234. InputArgument.op_Implicit(false),
  235. InputArgument.op_Implicit(false),
  236. InputArgument.op_Implicit(false)
  237. });
  238. Function.Call((Hash) -5184338789570016586L, new InputArgument[1]
  239. {
  240. InputArgument.op_Implicit("scr_rcbarry2")
  241. });
  242. Function.Call((Hash) 7798175403732277905L, new InputArgument[1]
  243. {
  244. InputArgument.op_Implicit("scr_rcbarry2")
  245. });
  246. Function.Call((Hash) 1044398152630765081L, new InputArgument[13]
  247. {
  248. InputArgument.op_Implicit("scr_clown_appears"),
  249. InputArgument.op_Implicit(Game.get_Player().get_Character()),
  250. InputArgument.op_Implicit(0.0f),
  251. InputArgument.op_Implicit(0.0f),
  252. InputArgument.op_Implicit(0.0f),
  253. InputArgument.op_Implicit(0.0f),
  254. InputArgument.op_Implicit(0.0f),
  255. InputArgument.op_Implicit(0.0f),
  256. InputArgument.op_Implicit(35502),
  257. InputArgument.op_Implicit(0.05f),
  258. InputArgument.op_Implicit(false),
  259. InputArgument.op_Implicit(false),
  260. InputArgument.op_Implicit(false)
  261. });
  262. }
  263. if (this.ParticleHeadActive)
  264. {
  265. Function.Call((Hash) -5184338789570016586L, new InputArgument[1]
  266. {
  267. InputArgument.op_Implicit("scr_rcbarry2")
  268. });
  269. Function.Call((Hash) 7798175403732277905L, new InputArgument[1]
  270. {
  271. InputArgument.op_Implicit("scr_rcbarry2")
  272. });
  273. Function.Call((Hash) 1044398152630765081L, new InputArgument[13]
  274. {
  275. InputArgument.op_Implicit("scr_clown_appears"),
  276. InputArgument.op_Implicit(Game.get_Player().get_Character()),
  277. InputArgument.op_Implicit(0.0f),
  278. InputArgument.op_Implicit(0.0f),
  279. InputArgument.op_Implicit(0.0f),
  280. InputArgument.op_Implicit(0.0f),
  281. InputArgument.op_Implicit(0.0f),
  282. InputArgument.op_Implicit(0.0f),
  283. InputArgument.op_Implicit(12844),
  284. InputArgument.op_Implicit(0.08f),
  285. InputArgument.op_Implicit(false),
  286. InputArgument.op_Implicit(false),
  287. InputArgument.op_Implicit(false)
  288. });
  289. }
  290. if (this.FullBodyActive)
  291. {
  292. Function.Call((Hash) -5184338789570016586L, new InputArgument[1]
  293. {
  294. InputArgument.op_Implicit("scr_rcbarry2")
  295. });
  296. Function.Call((Hash) 7798175403732277905L, new InputArgument[1]
  297. {
  298. InputArgument.op_Implicit("scr_rcbarry2")
  299. });
  300. Function.Call((Hash) 1044398152630765081L, new InputArgument[13]
  301. {
  302. InputArgument.op_Implicit("scr_clown_appears"),
  303. InputArgument.op_Implicit(Game.get_Player().get_Character()),
  304. InputArgument.op_Implicit(0.0f),
  305. InputArgument.op_Implicit(0.0f),
  306. InputArgument.op_Implicit(0.0f),
  307. InputArgument.op_Implicit(0.0f),
  308. InputArgument.op_Implicit(0.0f),
  309. InputArgument.op_Implicit(0.0f),
  310. InputArgument.op_Implicit(36029),
  311. InputArgument.op_Implicit(0.05f),
  312. InputArgument.op_Implicit(false),
  313. InputArgument.op_Implicit(false),
  314. InputArgument.op_Implicit(false)
  315. });
  316. Function.Call((Hash) -5184338789570016586L, new InputArgument[1]
  317. {
  318. InputArgument.op_Implicit("scr_rcbarry2")
  319. });
  320. Function.Call((Hash) 7798175403732277905L, new InputArgument[1]
  321. {
  322. InputArgument.op_Implicit("scr_rcbarry2")
  323. });
  324. Function.Call((Hash) 1044398152630765081L, new InputArgument[13]
  325. {
  326. InputArgument.op_Implicit("scr_clown_appears"),
  327. InputArgument.op_Implicit(Game.get_Player().get_Character()),
  328. InputArgument.op_Implicit(0.0f),
  329. InputArgument.op_Implicit(0.0f),
  330. InputArgument.op_Implicit(0.0f),
  331. InputArgument.op_Implicit(0.0f),
  332. InputArgument.op_Implicit(0.0f),
  333. InputArgument.op_Implicit(0.0f),
  334. InputArgument.op_Implicit(6286),
  335. InputArgument.op_Implicit(0.05f),
  336. InputArgument.op_Implicit(false),
  337. InputArgument.op_Implicit(false),
  338. InputArgument.op_Implicit(false)
  339. });
  340. Function.Call((Hash) -5184338789570016586L, new InputArgument[1]
  341. {
  342. InputArgument.op_Implicit("scr_rcbarry2")
  343. });
  344. Function.Call((Hash) 7798175403732277905L, new InputArgument[1]
  345. {
  346. InputArgument.op_Implicit("scr_rcbarry2")
  347. });
  348. Function.Call((Hash) 1044398152630765081L, new InputArgument[13]
  349. {
  350. InputArgument.op_Implicit("scr_clown_appears"),
  351. InputArgument.op_Implicit(Game.get_Player().get_Character()),
  352. InputArgument.op_Implicit(0.0f),
  353. InputArgument.op_Implicit(0.0f),
  354. InputArgument.op_Implicit(0.0f),
  355. InputArgument.op_Implicit(0.0f),
  356. InputArgument.op_Implicit(0.0f),
  357. InputArgument.op_Implicit(0.0f),
  358. InputArgument.op_Implicit(65245),
  359. InputArgument.op_Implicit(0.05f),
  360. InputArgument.op_Implicit(false),
  361. InputArgument.op_Implicit(false),
  362. InputArgument.op_Implicit(false)
  363. });
  364. Function.Call((Hash) -5184338789570016586L, new InputArgument[1]
  365. {
  366. InputArgument.op_Implicit("scr_rcbarry2")
  367. });
  368. Function.Call((Hash) 7798175403732277905L, new InputArgument[1]
  369. {
  370. InputArgument.op_Implicit("scr_rcbarry2")
  371. });
  372. Function.Call((Hash) 1044398152630765081L, new InputArgument[13]
  373. {
  374. InputArgument.op_Implicit("scr_clown_appears"),
  375. InputArgument.op_Implicit(Game.get_Player().get_Character()),
  376. InputArgument.op_Implicit(0.0f),
  377. InputArgument.op_Implicit(0.0f),
  378. InputArgument.op_Implicit(0.0f),
  379. InputArgument.op_Implicit(0.0f),
  380. InputArgument.op_Implicit(0.0f),
  381. InputArgument.op_Implicit(0.0f),
  382. InputArgument.op_Implicit(35502),
  383. InputArgument.op_Implicit(0.05f),
  384. InputArgument.op_Implicit(false),
  385. InputArgument.op_Implicit(false),
  386. InputArgument.op_Implicit(false)
  387. });
  388. Function.Call((Hash) -5184338789570016586L, new InputArgument[1]
  389. {
  390. InputArgument.op_Implicit("scr_rcbarry2")
  391. });
  392. Function.Call((Hash) 7798175403732277905L, new InputArgument[1]
  393. {
  394. InputArgument.op_Implicit("scr_rcbarry2")
  395. });
  396. Function.Call((Hash) 1044398152630765081L, new InputArgument[13]
  397. {
  398. InputArgument.op_Implicit("scr_clown_appears"),
  399. InputArgument.op_Implicit(Game.get_Player().get_Character()),
  400. InputArgument.op_Implicit(0.0f),
  401. InputArgument.op_Implicit(0.0f),
  402. InputArgument.op_Implicit(0.0f),
  403. InputArgument.op_Implicit(0.0f),
  404. InputArgument.op_Implicit(0.0f),
  405. InputArgument.op_Implicit(0.0f),
  406. InputArgument.op_Implicit(12844),
  407. InputArgument.op_Implicit(0.08f),
  408. InputArgument.op_Implicit(false),
  409. InputArgument.op_Implicit(false),
  410. InputArgument.op_Implicit(false)
  411. });
  412. Function.Call((Hash) -5184338789570016586L, new InputArgument[1]
  413. {
  414. InputArgument.op_Implicit("scr_rcbarry2")
  415. });
  416. Function.Call((Hash) 7798175403732277905L, new InputArgument[1]
  417. {
  418. InputArgument.op_Implicit("scr_rcbarry2")
  419. });
  420. Function.Call((Hash) 1044398152630765081L, new InputArgument[13]
  421. {
  422. InputArgument.op_Implicit("scr_clown_appears"),
  423. InputArgument.op_Implicit(Game.get_Player().get_Character()),
  424. InputArgument.op_Implicit(0.0f),
  425. InputArgument.op_Implicit(0.0f),
  426. InputArgument.op_Implicit(0.0f),
  427. InputArgument.op_Implicit(0.0f),
  428. InputArgument.op_Implicit(0.0f),
  429. InputArgument.op_Implicit(0.0f),
  430. InputArgument.op_Implicit(46078),
  431. InputArgument.op_Implicit(0.05f),
  432. InputArgument.op_Implicit(false),
  433. InputArgument.op_Implicit(false),
  434. InputArgument.op_Implicit(false)
  435. });
  436. Function.Call((Hash) -5184338789570016586L, new InputArgument[1]
  437. {
  438. InputArgument.op_Implicit("scr_rcbarry2")
  439. });
  440. Function.Call((Hash) 7798175403732277905L, new InputArgument[1]
  441. {
  442. InputArgument.op_Implicit("scr_rcbarry2")
  443. });
  444. Function.Call((Hash) 1044398152630765081L, new InputArgument[13]
  445. {
  446. InputArgument.op_Implicit("scr_clown_appears"),
  447. InputArgument.op_Implicit(Game.get_Player().get_Character()),
  448. InputArgument.op_Implicit(0.0f),
  449. InputArgument.op_Implicit(0.0f),
  450. InputArgument.op_Implicit(0.0f),
  451. InputArgument.op_Implicit(0.0f),
  452. InputArgument.op_Implicit(0.0f),
  453. InputArgument.op_Implicit(0.0f),
  454. InputArgument.op_Implicit(16335),
  455. InputArgument.op_Implicit(0.05f),
  456. InputArgument.op_Implicit(false),
  457. InputArgument.op_Implicit(false),
  458. InputArgument.op_Implicit(false)
  459. });
  460. Function.Call((Hash) -5184338789570016586L, new InputArgument[1]
  461. {
  462. InputArgument.op_Implicit("scr_rcbarry2")
  463. });
  464. Function.Call((Hash) 7798175403732277905L, new InputArgument[1]
  465. {
  466. InputArgument.op_Implicit("scr_rcbarry2")
  467. });
  468. Function.Call((Hash) 1044398152630765081L, new InputArgument[13]
  469. {
  470. InputArgument.op_Implicit("scr_clown_appears"),
  471. InputArgument.op_Implicit(Game.get_Player().get_Character()),
  472. InputArgument.op_Implicit(0.0f),
  473. InputArgument.op_Implicit(0.0f),
  474. InputArgument.op_Implicit(0.0f),
  475. InputArgument.op_Implicit(0.0f),
  476. InputArgument.op_Implicit(0.0f),
  477. InputArgument.op_Implicit(0.0f),
  478. InputArgument.op_Implicit(22711),
  479. InputArgument.op_Implicit(0.05f),
  480. InputArgument.op_Implicit(false),
  481. InputArgument.op_Implicit(false),
  482. InputArgument.op_Implicit(false)
  483. });
  484. Function.Call((Hash) -5184338789570016586L, new InputArgument[1]
  485. {
  486. InputArgument.op_Implicit("scr_rcbarry2")
  487. });
  488. Function.Call((Hash) 7798175403732277905L, new InputArgument[1]
  489. {
  490. InputArgument.op_Implicit("scr_rcbarry2")
  491. });
  492. Function.Call((Hash) 1044398152630765081L, new InputArgument[13]
  493. {
  494. InputArgument.op_Implicit("scr_clown_appears"),
  495. InputArgument.op_Implicit(Game.get_Player().get_Character()),
  496. InputArgument.op_Implicit(0.0f),
  497. InputArgument.op_Implicit(0.0f),
  498. InputArgument.op_Implicit(0.0f),
  499. InputArgument.op_Implicit(0.0f),
  500. InputArgument.op_Implicit(0.0f),
  501. InputArgument.op_Implicit(0.0f),
  502. InputArgument.op_Implicit(2992),
  503. InputArgument.op_Implicit(0.05f),
  504. InputArgument.op_Implicit(false),
  505. InputArgument.op_Implicit(false),
  506. InputArgument.op_Implicit(false)
  507. });
  508. Function.Call((Hash) -5184338789570016586L, new InputArgument[1]
  509. {
  510. InputArgument.op_Implicit("scr_rcbarry2")
  511. });
  512. Function.Call((Hash) 7798175403732277905L, new InputArgument[1]
  513. {
  514. InputArgument.op_Implicit("scr_rcbarry2")
  515. });
  516. Function.Call((Hash) 1044398152630765081L, new InputArgument[13]
  517. {
  518. InputArgument.op_Implicit("scr_clown_appears"),
  519. InputArgument.op_Implicit(Game.get_Player().get_Character()),
  520. InputArgument.op_Implicit(0.0f),
  521. InputArgument.op_Implicit(0.0f),
  522. InputArgument.op_Implicit(0.0f),
  523. InputArgument.op_Implicit(0.0f),
  524. InputArgument.op_Implicit(0.0f),
  525. InputArgument.op_Implicit(0.0f),
  526. InputArgument.op_Implicit(45509),
  527. InputArgument.op_Implicit(0.05f),
  528. InputArgument.op_Implicit(false),
  529. InputArgument.op_Implicit(false),
  530. InputArgument.op_Implicit(false)
  531. });
  532. Function.Call((Hash) -5184338789570016586L, new InputArgument[1]
  533. {
  534. InputArgument.op_Implicit("scr_rcbarry2")
  535. });
  536. Function.Call((Hash) 7798175403732277905L, new InputArgument[1]
  537. {
  538. InputArgument.op_Implicit("scr_rcbarry2")
  539. });
  540. Function.Call((Hash) 1044398152630765081L, new InputArgument[13]
  541. {
  542. InputArgument.op_Implicit("scr_clown_appears"),
  543. InputArgument.op_Implicit(Game.get_Player().get_Character()),
  544. InputArgument.op_Implicit(0.0f),
  545. InputArgument.op_Implicit(0.0f),
  546. InputArgument.op_Implicit(0.0f),
  547. InputArgument.op_Implicit(0.0f),
  548. InputArgument.op_Implicit(0.0f),
  549. InputArgument.op_Implicit(0.0f),
  550. InputArgument.op_Implicit(40269),
  551. InputArgument.op_Implicit(0.05f),
  552. InputArgument.op_Implicit(false),
  553. InputArgument.op_Implicit(false),
  554. InputArgument.op_Implicit(false)
  555. });
  556. Function.Call((Hash) -5184338789570016586L, new InputArgument[1]
  557. {
  558. InputArgument.op_Implicit("scr_rcbarry2")
  559. });
  560. Function.Call((Hash) 7798175403732277905L, new InputArgument[1]
  561. {
  562. InputArgument.op_Implicit("scr_rcbarry2")
  563. });
  564. Function.Call((Hash) 1044398152630765081L, new InputArgument[13]
  565. {
  566. InputArgument.op_Implicit("scr_clown_appears"),
  567. InputArgument.op_Implicit(Game.get_Player().get_Character()),
  568. InputArgument.op_Implicit(0.0f),
  569. InputArgument.op_Implicit(0.0f),
  570. InputArgument.op_Implicit(0.0f),
  571. InputArgument.op_Implicit(0.0f),
  572. InputArgument.op_Implicit(0.0f),
  573. InputArgument.op_Implicit(0.0f),
  574. InputArgument.op_Implicit(23553),
  575. InputArgument.op_Implicit(0.05f),
  576. InputArgument.op_Implicit(false),
  577. InputArgument.op_Implicit(false),
  578. InputArgument.op_Implicit(false)
  579. });
  580. Function.Call((Hash) -5184338789570016586L, new InputArgument[1]
  581. {
  582. InputArgument.op_Implicit("scr_rcbarry2")
  583. });
  584. Function.Call((Hash) 7798175403732277905L, new InputArgument[1]
  585. {
  586. InputArgument.op_Implicit("scr_rcbarry2")
  587. });
  588. Function.Call((Hash) 1044398152630765081L, new InputArgument[13]
  589. {
  590. InputArgument.op_Implicit("scr_clown_appears"),
  591. InputArgument.op_Implicit(Game.get_Player().get_Character()),
  592. InputArgument.op_Implicit(0.0f),
  593. InputArgument.op_Implicit(0.0f),
  594. InputArgument.op_Implicit(0.0f),
  595. InputArgument.op_Implicit(0.0f),
  596. InputArgument.op_Implicit(0.0f),
  597. InputArgument.op_Implicit(0.0f),
  598. InputArgument.op_Implicit(24816),
  599. InputArgument.op_Implicit(0.05f),
  600. InputArgument.op_Implicit(false),
  601. InputArgument.op_Implicit(false),
  602. InputArgument.op_Implicit(false)
  603. });
  604. Function.Call((Hash) -5184338789570016586L, new InputArgument[1]
  605. {
  606. InputArgument.op_Implicit("scr_rcbarry2")
  607. });
  608. Function.Call((Hash) 7798175403732277905L, new InputArgument[1]
  609. {
  610. InputArgument.op_Implicit("scr_rcbarry2")
  611. });
  612. Function.Call((Hash) 1044398152630765081L, new InputArgument[13]
  613. {
  614. InputArgument.op_Implicit("scr_clown_appears"),
  615. InputArgument.op_Implicit(Game.get_Player().get_Character()),
  616. InputArgument.op_Implicit(0.0f),
  617. InputArgument.op_Implicit(0.0f),
  618. InputArgument.op_Implicit(0.0f),
  619. InputArgument.op_Implicit(0.0f),
  620. InputArgument.op_Implicit(0.0f),
  621. InputArgument.op_Implicit(0.0f),
  622. InputArgument.op_Implicit(24817),
  623. InputArgument.op_Implicit(0.05f),
  624. InputArgument.op_Implicit(false),
  625. InputArgument.op_Implicit(false),
  626. InputArgument.op_Implicit(false)
  627. });
  628. Function.Call((Hash) -5184338789570016586L, new InputArgument[1]
  629. {
  630. InputArgument.op_Implicit("scr_rcbarry2")
  631. });
  632. Function.Call((Hash) 7798175403732277905L, new InputArgument[1]
  633. {
  634. InputArgument.op_Implicit("scr_rcbarry2")
  635. });
  636. Function.Call((Hash) 1044398152630765081L, new InputArgument[13]
  637. {
  638. InputArgument.op_Implicit("scr_clown_appears"),
  639. InputArgument.op_Implicit(Game.get_Player().get_Character()),
  640. InputArgument.op_Implicit(0.0f),
  641. InputArgument.op_Implicit(0.0f),
  642. InputArgument.op_Implicit(0.0f),
  643. InputArgument.op_Implicit(0.0f),
  644. InputArgument.op_Implicit(0.0f),
  645. InputArgument.op_Implicit(0.0f),
  646. InputArgument.op_Implicit(24818),
  647. InputArgument.op_Implicit(0.05f),
  648. InputArgument.op_Implicit(false),
  649. InputArgument.op_Implicit(false),
  650. InputArgument.op_Implicit(false)
  651. });
  652. }
  653. if (this.SuperPunchActive)
  654. Function.Call((Hash) -64196628141305888L, new InputArgument[1]
  655. {
  656. InputArgument.op_Implicit(Game.get_Player())
  657. });
  658. if (!this.SuperJumpActive)
  659. return;
  660. Function.Call((Hash) 6341050950550703115L, new InputArgument[1]
  661. {
  662. InputArgument.op_Implicit(Game.get_Player())
  663. });
  664. }
  665.  
  666. private void OnItemSelect(UIMenu sender, UIMenuItem selectedItem, int index)
  667. {
  668. }
  669.  
  670. private UIMenu StartUpMenu()
  671. {
  672. this.mainMenu = new UIMenu("Particle Man", "~b~PARTICLE MAN: MAIN MENU");
  673. this._menuPool.Add(this.mainMenu);
  674. this.mainMenu.AddItem((UIMenuItem) (this.ParticleHandsCheckbox = new UIMenuCheckboxItem("Particle Hands", false, "Enable/Disable Particle Hands.")));
  675. this.mainMenu.AddItem((UIMenuItem) (this.ParticleFeetCheckbox = new UIMenuCheckboxItem("Particle Feet", false, "Enable/Disable Particle Feet.")));
  676. this.mainMenu.AddItem((UIMenuItem) (this.ParticleHeadCheckbox = new UIMenuCheckboxItem("Particle Head", false, "Enable/Disable Particle Head.")));
  677. this.mainMenu.AddItem((UIMenuItem) (this.FullBodyCheckbox = new UIMenuCheckboxItem("Full Body", false, "Enable/Disable Particle On Full Body.")));
  678. UIMenuItem uiMenuItem = new UIMenuItem("Other Options");
  679. this.mainMenu.AddItem(uiMenuItem);
  680. // ISSUE: method pointer
  681. this.mainMenu.add_OnItemSelect(new ItemSelectEvent((object) this, __methodptr(OnItemSelect)));
  682. // ISSUE: method pointer
  683. this.mainMenu.add_OnCheckboxChange(new CheckboxChangeEvent((object) this, __methodptr(OnCheckboxChange)));
  684. this.mainMenu.RefreshIndex();
  685. this.mainMenu.BindMenuToItem(this.OtherOptions(), uiMenuItem);
  686. this.mainMenu.set_Visible(!this.mainMenu.get_Visible());
  687. return this.mainMenu;
  688. }
  689.  
  690. private UIMenu OtherOptions()
  691. {
  692. this.OtherOptionsSubMenu = new UIMenu("Particle Man", "~b~PARTICLE MAN: OTHER OPTIONS");
  693. this._menuPool.Add(this.OtherOptionsSubMenu);
  694. this.OtherOptionsSubMenu.AddItem((UIMenuItem) (this.SuperPunchCheckbox = new UIMenuCheckboxItem("Super Punch", false, "Enable/Disable Super Punch.")));
  695. this.OtherOptionsSubMenu.AddItem((UIMenuItem) (this.SuperJumpCheckbox = new UIMenuCheckboxItem("Super Jump", false, "Enable/Disable Super Jump.")));
  696. // ISSUE: method pointer
  697. this.OtherOptionsSubMenu.add_OnItemSelect(new ItemSelectEvent((object) this, __methodptr(OnItemSelect)));
  698. // ISSUE: method pointer
  699. this.OtherOptionsSubMenu.add_OnCheckboxChange(new CheckboxChangeEvent((object) this, __methodptr(OnCheckboxChange)));
  700. this.OtherOptionsSubMenu.RefreshIndex();
  701. return this.OtherOptionsSubMenu;
  702. }
  703. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement