Advertisement
Guest User

Untitled

a guest
Jul 19th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.45 KB | None | 0 0
  1. #include "player_sys.sqf"
  2.  
  3. /*
  4.  
  5. Fichier: player_inv.hpp
  6.  
  7. Auteur: Armacos
  8.  
  9. Description:
  10.  
  11. Menu "Y"
  12.  
  13. */
  14.  
  15. class playerSettings {
  16.  
  17. idd = playersys_DIALOG;
  18.  
  19. movingEnable = true;
  20.  
  21. enableSimulation = true;
  22.  
  23. class controlsBackground {
  24.  
  25. class fondtablet: Life_RscPicture {
  26.  
  27. idc = 9090909;
  28.  
  29. text = "textures\tel\menuY_byArmacos.paa";
  30.  
  31. x = 0;
  32.  
  33. y = -0.12;
  34.  
  35. w = 1;
  36.  
  37. h = 1.28;
  38.  
  39. };
  40.  
  41. class life_RscTitleBackground:life_RscText {
  42.  
  43. };
  44.  
  45. class MainBackground:life_RscText {
  46.  
  47. };
  48.  
  49. class Title : life_RscTitle {
  50.  
  51. };
  52.  
  53. class moneyStatusInfo : Life_RscStructuredText //a modifier
  54.  
  55. {
  56.  
  57. idc = 2015;
  58.  
  59. sizeEx = 0.020;
  60.  
  61. text = "";
  62.  
  63. x = 0.225;
  64.  
  65. y = 0.36;
  66.  
  67. w = 0.32;
  68.  
  69. h = 0.16;
  70.  
  71. };
  72.  
  73. class PlayersName : Title {
  74.  
  75. idc = carry_weight;
  76.  
  77. style = 1;
  78.  
  79. text = "";
  80.  
  81. };
  82.  
  83. };
  84.  
  85. class controls {
  86.  
  87. class itemList : life_RscListBox
  88.  
  89. {
  90.  
  91. idc = item_list;
  92.  
  93. colorBackground[] = {0,0,0,0};
  94.  
  95. sizeEx = 0.030;
  96.  
  97. x = 0.599975;
  98.  
  99. y = 0.34;
  100.  
  101. w = 0.224944;
  102.  
  103. h = 0.218182;
  104.  
  105. };
  106.  
  107. class moneyEdit : Life_RscEdit
  108.  
  109. {
  110.  
  111. idc = 2018;
  112.  
  113. text = "1";
  114.  
  115. sizeEx = 0.030;
  116.  
  117. x = 0.250063;
  118.  
  119. y = 0.464;
  120.  
  121. w = 0.124969;
  122.  
  123. h = 0.03;
  124.  
  125. };
  126.  
  127. class NearPlayers : Life_RscCombo
  128.  
  129. {
  130.  
  131. idc = 2022;
  132.  
  133. x = 0.250063;
  134.  
  135. y = 0.5;
  136.  
  137. w = 0.124969;
  138.  
  139. h = 0.03;
  140.  
  141. };
  142.  
  143. class Life_RscButtonInvisible1 : Life_RscButtonMenu { //donner argent
  144.  
  145. animTextureNormal = "#(argb,8,8,3)color(1,1,1,0)";
  146.  
  147. animTextureDisabled = "#(argb,8,8,3)color(1,1,1,0)";
  148.  
  149. animTextureOver = "#(argb,8,8,3)color(1,1,1,0)";
  150.  
  151. animTextureFocused = "#(argb,8,8,3)color(1,1,1,0)";
  152.  
  153. animTexturePressed = "#(argb,8,8,3)color(1,1,1,0)";
  154.  
  155. animTextureDefault = "#(argb,8,8,3)color(1,1,1,0)";
  156.  
  157. colorBackground[] = {0, 0, 0, 0};
  158.  
  159. colorBackground2[] = {1, 1, 1, 0};
  160.  
  161. color[] = {1, 1, 1, 0};
  162.  
  163. color2[] = {1, 1, 1, 0};
  164.  
  165. colorText[] = {1, 1, 1, 0};
  166.  
  167. colorDisabled[] = {1, 1, 1, 0};
  168.  
  169. idc = 2001;
  170.  
  171. text = "";
  172.  
  173. onButtonClick = "[] call life_fnc_giveMoney;";
  174.  
  175. x = 0.387529;
  176.  
  177. y = 0.5;
  178.  
  179. w = 0.07998;
  180.  
  181. h = 0.028;
  182.  
  183. };
  184.  
  185. class itemEdit : Life_RscEdit { //
  186.  
  187. idc = item_edit;
  188.  
  189. text = "1";
  190.  
  191. sizeEx = 0.030;
  192.  
  193. x = 0.612471;
  194.  
  195. y = 0.56;
  196.  
  197. w = 0.212447;
  198.  
  199. h = 0.03;
  200.  
  201. };
  202.  
  203. class iNearPlayers : Life_RscCombo
  204.  
  205. {
  206.  
  207. idc = 2023;
  208.  
  209. x = 0.612471;
  210.  
  211. y = 0.6;
  212.  
  213. w = 0.131217;
  214.  
  215. h = 0.03;
  216.  
  217. };
  218.  
  219. /*
  220.  
  221. Disabled till it can be redone
  222.  
  223. class moneyInput: life_RscCombo {
  224.  
  225. idc = money_value;
  226.  
  227. x = 0.02; y = 0.402;
  228.  
  229. w = .1; h = .030;
  230.  
  231. };
  232.  
  233. */
  234.  
  235. class Life_RscButtonInvisible2 : Life_RscButtonMenu { //doner item
  236.  
  237. animTextureNormal = "#(argb,8,8,3)color(1,1,1,0)";
  238.  
  239. animTextureDisabled = "#(argb,8,8,3)color(1,1,1,0)";
  240.  
  241. animTextureOver = "#(argb,8,8,3)color(1,1,1,0)";
  242.  
  243. animTextureFocused = "#(argb,8,8,3)color(1,1,1,0)";
  244.  
  245. animTexturePressed = "#(argb,8,8,3)color(1,1,1,0)";
  246.  
  247. animTextureDefault = "#(argb,8,8,3)color(1,1,1,0)";
  248.  
  249. colorBackground[] = {0, 0, 0, 0};
  250.  
  251. colorBackground2[] = {1, 1, 1, 0};
  252.  
  253. color[] = {1, 1, 1, 0};
  254.  
  255. color2[] = {1, 1, 1, 0};
  256.  
  257. colorText[] = {1, 1, 1, 0};
  258.  
  259. colorDisabled[] = {1, 1, 1, 0};
  260.  
  261. idc = 2002;
  262.  
  263. text = "";
  264.  
  265. onButtonClick = "[] call life_fnc_giveItem;";
  266.  
  267. x = 0.749937;
  268.  
  269. y = 0.6;
  270.  
  271. w = 0.0949762;
  272.  
  273. h = 0.032;
  274.  
  275. };
  276.  
  277. class Life_RscButtonInvisible3 : Life_RscButtonMenu { //utiliser item
  278.  
  279. animTextureNormal = "#(argb,8,8,3)color(1,1,1,0)";
  280.  
  281. animTextureDisabled = "#(argb,8,8,3)color(1,1,1,0)";
  282.  
  283. animTextureOver = "#(argb,8,8,3)color(1,1,1,0)";
  284.  
  285. animTextureFocused = "#(argb,8,8,3)color(1,1,1,0)";
  286.  
  287. animTexturePressed = "#(argb,8,8,3)color(1,1,1,0)";
  288.  
  289. animTextureDefault = "#(argb,8,8,3)color(1,1,1,0)";
  290.  
  291. colorBackground[] = {0, 0, 0, 0};
  292.  
  293. colorBackground2[] = {1, 1, 1, 0};
  294.  
  295. color[] = {1, 1, 1, 0};
  296.  
  297. color2[] = {1, 1, 1, 0};
  298.  
  299. colorText[] = {1, 1, 1, 0};
  300.  
  301. colorDisabled[] = {1, 1, 1, 0};
  302.  
  303. idc = -1;
  304.  
  305. text = "";
  306.  
  307. onButtonClick = "[] call life_fnc_useItem;";
  308.  
  309. x = 0.724943;
  310.  
  311. y = 0.65;
  312.  
  313. w = 0.11872;
  314.  
  315. h = 0.028;
  316.  
  317. };
  318.  
  319. class Life_RscButtonInvisible5 : Life_RscButtonMenu { //suprimer item
  320.  
  321. animTextureNormal = "#(argb,8,8,3)color(1,1,1,0)";
  322.  
  323. animTextureDisabled = "#(argb,8,8,3)color(1,1,1,0)";
  324.  
  325. animTextureOver = "#(argb,8,8,3)color(1,1,1,0)";
  326.  
  327. animTextureFocused = "#(argb,8,8,3)color(1,1,1,0)";
  328.  
  329. animTexturePressed = "#(argb,8,8,3)color(1,1,1,0)";
  330.  
  331. animTextureDefault = "#(argb,8,8,3)color(1,1,1,0)";
  332.  
  333. colorBackground[] = {0, 0, 0, 0};
  334.  
  335. colorBackground2[] = {1, 1, 1, 0};
  336.  
  337. color[] = {1, 1, 1, 0};
  338.  
  339. color2[] = {1, 1, 1, 0};
  340.  
  341. colorText[] = {1, 1, 1, 0};
  342.  
  343. colorDisabled[] = {1, 1, 1, 0};
  344.  
  345. idc = -1;
  346.  
  347. text = "";
  348.  
  349. onButtonClick = "[] call life_fnc_removeItem;";
  350.  
  351. x = 0.612471;
  352.  
  353. y = 0.65;
  354.  
  355. w = 0.102474;
  356.  
  357. h = 0.028;
  358.  
  359. };
  360.  
  361. /*
  362.  
  363. Disabled till it can be redone
  364.  
  365. class DropcButton : life_RscButtonMenu {
  366.  
  367. text = "Drop Money";
  368.  
  369. onButtonClick = "[] execVM 'player_system\money_fnc.sqf'";
  370.  
  371. x = 0.13; y = 0.4;
  372.  
  373. w = 0.135; h = 0.05;
  374.  
  375. };
  376.  
  377. */
  378.  
  379. class Life_RscButtonInvisible6 : Life_RscButtonMenu {
  380.  
  381. animTextureNormal = "#(argb,8,8,3)color(1,1,1,0)";
  382.  
  383. animTextureDisabled = "#(argb,8,8,3)color(1,1,1,0)";
  384.  
  385. animTextureOver = "#(argb,8,8,3)color(1,1,1,0)";
  386.  
  387. animTextureFocused = "#(argb,8,8,3)color(1,1,1,0)";
  388.  
  389. animTexturePressed = "#(argb,8,8,3)color(1,1,1,0)";
  390.  
  391. animTextureDefault = "#(argb,8,8,3)color(1,1,1,0)";
  392.  
  393. colorBackground[] = {0, 0, 0, 0};
  394.  
  395. colorBackground2[] = {1, 1, 1, 0};
  396.  
  397. color[] = {1, 1, 1, 0};
  398.  
  399. color2[] = {1, 1, 1, 0};
  400.  
  401. colorText[] = {1, 1, 1, 0};
  402.  
  403. colorDisabled[] = {1, 1, 1, 0};
  404.  
  405. idc = -1;
  406.  
  407. //shortcuts[] = {0x00050000 + 2};
  408.  
  409. onButtonClick = "closeDialog 0;";
  410.  
  411. x = 0.1;
  412.  
  413. y = 0.8 - (1 / 25);
  414.  
  415. w = (6.25 / 40);
  416.  
  417. h = (1 / 25);
  418.  
  419. };
  420.  
  421. class Life_RscButtonInvisible7 : Life_RscButtonMenu { //setings
  422.  
  423. animTextureNormal = "#(argb,8,8,3)color(1,1,1,0)";
  424.  
  425. animTextureDisabled = "#(argb,8,8,3)color(1,1,1,0)";
  426.  
  427. animTextureOver = "#(argb,8,8,3)color(1,1,1,0)";
  428.  
  429. animTextureFocused = "#(argb,8,8,3)color(1,1,1,0)";
  430.  
  431. animTexturePressed = "#(argb,8,8,3)color(1,1,1,0)";
  432.  
  433. animTextureDefault = "#(argb,8,8,3)color(1,1,1,0)";
  434.  
  435. colorBackground[] = {0, 0, 0, 0};
  436.  
  437. colorBackground2[] = {1, 1, 1, 0};
  438.  
  439. color[] = {1, 1, 1, 0};
  440.  
  441. color2[] = {1, 1, 1, 0};
  442.  
  443. colorText[] = {1, 1, 1, 0};
  444.  
  445. colorDisabled[] = {1, 1, 1, 0};
  446.  
  447. idc = -1;
  448.  
  449. onButtonClick = "[] call life_fnc_settingsMenu;";
  450.  
  451. x = 0.325;
  452.  
  453. y = 0.16;
  454.  
  455. w = 0.0625;
  456.  
  457. h = 0.08;
  458.  
  459. };
  460.  
  461. class Life_RscButtonInvisible8 : Life_RscButtonMenu { //gang
  462.  
  463. animTextureNormal = "#(argb,8,8,3)color(1,1,1,0)";
  464.  
  465. animTextureDisabled = "#(argb,8,8,3)color(1,1,1,0)";
  466.  
  467. animTextureOver = "#(argb,8,8,3)color(1,1,1,0)";
  468.  
  469. animTextureFocused = "#(argb,8,8,3)color(1,1,1,0)";
  470.  
  471. animTexturePressed = "#(argb,8,8,3)color(1,1,1,0)";
  472.  
  473. animTextureDefault = "#(argb,8,8,3)color(1,1,1,0)";
  474.  
  475. colorBackground[] = {0, 0, 0, 7};
  476.  
  477. colorBackground2[] = {1, 1, 1, 0};
  478.  
  479. color[] = {1, 1, 1, 0};
  480.  
  481. color2[] = {1, 1, 1, 0};
  482.  
  483. colorText[] = {1, 1, 1, 0};
  484.  
  485. colorDisabled[] = {1, 1, 1, 0};
  486.  
  487. idc = 2011;
  488.  
  489. onButtonClick = "if(isNil ""life_action_gangInUse"") then {if(isNil {(group player) getVariable ""gang_owner""}) then {createDialog ""Life_Create_Gang_Diag"";} else {[] spawn life_fnc_gangMenu;};};";
  490.  
  491. x = 0.525;
  492.  
  493. y = 0.16;
  494.  
  495. w = 0.0625;
  496.  
  497. h = 0.08;
  498.  
  499. };
  500.  
  501. class Licenses_Menu : Life_RscControlsGroup //a modifier
  502.  
  503. {
  504.  
  505. idc = -1;
  506.  
  507. x = 0.3;
  508.  
  509. y = 0.6;
  510.  
  511. w = 0.2325;
  512.  
  513. h = 0.288;
  514.  
  515. class Controls
  516.  
  517. {
  518.  
  519. class Life_Licenses : Life_RscStructuredText
  520.  
  521. {
  522.  
  523. idc = 2014;
  524.  
  525. sizeEx = 0.020;
  526.  
  527. text = "";
  528.  
  529. x = 0;
  530.  
  531. y = 0;
  532.  
  533. w = 0.27; h = 0.65;
  534.  
  535. };
  536.  
  537. };
  538.  
  539. };
  540.  
  541. class Life_RscButtonInvisible9 : Life_RscButtonMenu { //interpole
  542.  
  543. animTextureNormal = "#(argb,8,8,3)color(1,1,1,0)";
  544.  
  545. animTextureDisabled = "#(argb,8,8,3)color(1,1,1,0)";
  546.  
  547. animTextureOver = "#(argb,8,8,3)color(1,1,1,0)";
  548.  
  549. animTextureFocused = "#(argb,8,8,3)color(1,1,1,0)";
  550.  
  551. animTexturePressed = "#(argb,8,8,3)color(1,1,1,0)";
  552.  
  553. animTextureDefault = "#(argb,8,8,3)color(1,1,1,0)";
  554.  
  555. colorBackground[] = {0, 0, 0, 0};
  556.  
  557. colorBackground2[] = {1, 1, 1, 0};
  558.  
  559. color[] = {1, 1, 1, 0};
  560.  
  561. color2[] = {1, 1, 1, 0};
  562.  
  563. colorText[] = {1, 1, 1, 0};
  564.  
  565. colorDisabled[] = {1, 1, 1, 0};
  566.  
  567. idc = 2012;
  568.  
  569. onButtonClick = "[] call life_fnc_wantedMenu";
  570.  
  571. x = 0.7125;
  572.  
  573. y = 0.16;
  574.  
  575. w = 0.0625;
  576.  
  577. h = 0.08;
  578.  
  579. };
  580.  
  581. class Life_RscButtonInvisible10 : Life_RscButtonMenu { //menu clés
  582.  
  583. animTextureNormal = "#(argb,8,8,3)color(1,1,1,0)";
  584.  
  585. animTextureDisabled = "#(argb,8,8,3)color(1,1,1,0)";
  586.  
  587. animTextureOver = "#(argb,8,8,3)color(1,1,1,0)";
  588.  
  589. animTextureFocused = "#(argb,8,8,3)color(1,1,1,0)";
  590.  
  591. animTexturePressed = "#(argb,8,8,3)color(1,1,1,0)";
  592.  
  593. animTextureDefault = "#(argb,8,8,3)color(1,1,1,0)";
  594.  
  595. colorBackground[] = {0, 0, 0, 0};
  596.  
  597. colorBackground2[] = {1, 1, 1, 0};
  598.  
  599. color[] = {1, 1, 1, 0};
  600.  
  601. color2[] = {1, 1, 1, 0};
  602.  
  603. colorText[] = {1, 1, 1, 0};
  604.  
  605. colorDisabled[] = {1, 1, 1, 0};
  606.  
  607. idc = 2013;
  608.  
  609. onButtonClick = "createDialog ""Life_key_management"";";
  610.  
  611. x = 0.8;
  612.  
  613. y = 0.16;
  614.  
  615. w = 0.0625;
  616.  
  617. h = 0.08;
  618.  
  619. };
  620.  
  621. class Life_RscButtonInvisible11 : Life_RscButtonMenu { //Téléphone
  622.  
  623. animTextureNormal = "#(argb,8,8,3)color(1,1,1,0)";
  624.  
  625. animTextureDisabled = "#(argb,8,8,3)color(1,1,1,0)";
  626.  
  627. animTextureOver = "#(argb,8,8,3)color(1,1,1,0)";
  628.  
  629. animTextureFocused = "#(argb,8,8,3)color(1,1,1,0)";
  630.  
  631. animTexturePressed = "#(argb,8,8,3)color(1,1,1,0)";
  632.  
  633. animTextureDefault = "#(argb,8,8,3)color(1,1,1,0)";
  634.  
  635. colorBackground[] = {0, 0, 0, 0};
  636.  
  637. colorBackground2[] = {1, 1, 1, 0};
  638.  
  639. color[] = {1, 1, 1, 0};
  640.  
  641. color2[] = {1, 1, 1, 0};
  642.  
  643. colorText[] = {1, 1, 1, 0};
  644.  
  645. colorDisabled[] = {1, 1, 1, 0};
  646.  
  647. idc = 2014;
  648.  
  649. onButtonClick = "createDialog ""Life_cell_phone"";";
  650.  
  651. x = 0.425;
  652.  
  653. y = 0.16;
  654.  
  655. w = 0.0625;
  656.  
  657. h = 0.08;
  658.  
  659. };
  660.  
  661. class adminmenu : Life_RscButtonMenu {
  662.  
  663. idc = 2021;
  664.  
  665. text = "Admin";
  666.  
  667. onButtonClick = "createDialog ""life_admin_menu"";";
  668.  
  669. x = 0.724943;
  670.  
  671. y = 0.76;
  672.  
  673. w = 0.0674832;
  674.  
  675. h = 0.1;
  676.  
  677. };
  678.  
  679. class Life_RscButtonInvisible13 : Life_RscButtonMenu { //sauvegarder
  680.  
  681. animTextureNormal = "#(argb,8,8,3)color(1,1,1,0)";
  682.  
  683. animTextureDisabled = "#(argb,8,8,3)color(1,1,1,0)";
  684.  
  685. animTextureOver = "#(argb,8,8,3)color(1,1,1,0)";
  686.  
  687. animTextureFocused = "#(argb,8,8,3)color(1,1,1,0)";
  688.  
  689. animTexturePressed = "#(argb,8,8,3)color(1,1,1,0)";
  690.  
  691. animTextureDefault = "#(argb,8,8,3)color(1,1,1,0)";
  692.  
  693. colorBackground[] = {0, 0, 0, 0};
  694.  
  695. colorBackground2[] = {1, 1, 1, 0};
  696.  
  697. color[] = {1, 1, 1, 0};
  698.  
  699. color2[] = {1, 1, 1, 0};
  700.  
  701. colorText[] = {1, 1, 1, 0};
  702.  
  703. colorDisabled[] = {1, 1, 1, 0};
  704.  
  705. idc = -1;
  706.  
  707. //shortcuts[] = {0x00050000 + 2};
  708.  
  709. onButtonClick = "[] call SOCK_fnc_syncData;";
  710.  
  711. x = 0.6125;
  712.  
  713. y = 0.16;
  714.  
  715. w = 0.0625;
  716.  
  717. h = 0.08;
  718.  
  719. };
  720. class Life_RscButtonInvisible14 : Life_RscButtonMenu {
  721. animTextureNormal = "#(argb,8,8,3)color(1,1,1,0)";
  722. animTextureDisabled = "#(argb,8,8,3)color(1,1,1,0)";
  723. animTextureOver = "#(argb,8,8,3)color(1,1,1,0)";
  724. animTextureFocused = "#(argb,8,8,3)color(1,1,1,0)";
  725. animTexturePressed = "#(argb,8,8,3)color(1,1,1,0)";
  726. animTextureDefault = "#(argb,8,8,3)color(1,1,1,0)";
  727. colorBackground[] = {0, 0, 0, 0};
  728. colorBackground2[] = {1, 1, 1, 0};
  729. color[] = {1, 1, 1, 0};
  730. color2[] = {1, 1, 1, 0};
  731. colorText[] = {1, 1, 1, 0};
  732. colorDisabled[] = {1, 1, 1, 0};
  733. idc = -1;
  734. onButtonClick = "createDialog ""life_dynmarket_prices"";";
  735. x = 0.225;
  736. y = 0.16;
  737. w = 0.0625;
  738. h = 0.08;
  739. };
  740.  
  741. };
  742.  
  743. class Life_RscButtonInvisible15 : Life_RscButtonMenu {
  744. idc = -1;
  745. text = "Refresh";
  746. onButtonClick = "[] spawn life_fnc_playerSkins; closeDialog 0;"
  747. x = 0.1;
  748. y = 0.70;
  749. w = (6.25 / 40);
  750. h = (1 / 25);
  751. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement