Advertisement
Guest User

code thing

a guest
Jun 28th, 2016
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.92 KB | None | 0 0
  1. #include "player_sys.sqf"
  2.  
  3. class playerSettings {
  4.  
  5. idd = playersys_DIALOG;
  6. movingEnable = true;
  7. enableSimulation = true;
  8.  
  9. class controlsBackground {
  10.  
  11. class InvTablet: unit_RscPicture {
  12. idc = 9090909;
  13. text = "textures\menu.paa";
  14. x = 0;
  15. y = -0.12;
  16. w = 1;
  17. h = 1.28;
  18. };
  19.  
  20. class life_RscTitleBackground:uniy_RscText {
  21. 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])"};
  22. idc = -1;
  23. x = 0.1;
  24. y = 0.2;
  25. w = 0.8;
  26. h = (1 / 25);
  27. };
  28.  
  29. class MainBackground:unit_RscText {
  30. colorBackground[] = {0, 0, 0, 0.7};
  31. idc = -1;
  32. x = 0.1;
  33. y = 0.2 + (11 / 250);
  34. w = 0.8;
  35. h = 0.6 - (22 / 250);
  36. };
  37.  
  38. class Title : unit_RscTitle {
  39. colorBackground[] = {0, 0, 0, 0};
  40. idc = -1;
  41. text = "$STR_PM_Title";
  42. x = 0.1;
  43. y = 0.2;
  44. w = 0.8;
  45. h = (1 / 25);
  46. };
  47.  
  48. class moneyStatusInfo : unit_RscStructuredText
  49. {
  50. idc = 2015;
  51. sizeEx = 0.020;
  52. text = "";
  53. x = 0.105;
  54. y = 0.30;
  55. w = 0.3; h = 0.6;
  56. };
  57.  
  58. class PlayersName : Title {
  59. idc = carry_weight;
  60. style = 1;
  61. text = "";
  62. };
  63. };
  64.  
  65. class controls {
  66.  
  67. class itemHeader : unit_RscText
  68. {
  69. idc = -1;
  70. 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])", 0.5};
  71. text = "$STR_PM_cItems";
  72. sizeEx = 0.04;
  73.  
  74. x = 0.62; y = 0.26;
  75. w = 0.275; h = 0.04;
  76. };
  77.  
  78. class licenseHeader : unit_RscText
  79. {
  80. idc = -1;
  81. 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])", 0.5};
  82. text = "$STR_PM_Licenses";
  83. sizeEx = 0.04;
  84.  
  85. x = 0.336; y = 0.26;
  86. w = 0.275; h = 0.04;
  87. };
  88.  
  89. class moneySHeader : unit_RscText
  90. {
  91. idc = -1;
  92. 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])", 0.5};
  93. text = "$STR_PM_MoneyStats";
  94. sizeEx = 0.04;
  95.  
  96. x = 0.11; y = 0.26;
  97. w = 0.219; h = 0.04;
  98. };
  99.  
  100. class itemList : unit_RscListBox
  101. {
  102. idc = item_list;
  103. sizeEx = 0.030;
  104.  
  105. x = 0.62; y = 0.30;
  106. w = 0.275; h = 0.3;
  107. };
  108.  
  109. class moneyEdit : unit_RscEdit
  110. {
  111. idc = 2018;
  112.  
  113. text = "1";
  114. sizeEx = 0.030;
  115. x = 0.12; y = 0.42;
  116. w = 0.18; h = 0.03;
  117. };
  118.  
  119. class NearPlayers : unit_RscCombo
  120. {
  121. idc = 2022;
  122.  
  123. x = 0.12; y = 0.46;
  124. w = 0.18; h = 0.03;
  125. };
  126.  
  127. class moneyDrop : unit_RscButtonMenu
  128. {
  129. idc = 2001;
  130. text = "$STR_Global_Give";
  131. 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])", 0.5};
  132. onButtonClick = "[] call life_fnc_giveMoney";
  133. sizeEx = 0.025;
  134. x = 0.135; y = 0.50;
  135. w = 0.13; h = 0.036;
  136. };
  137.  
  138. class itemEdit : unit_RscEdit {
  139.  
  140. idc = item_edit;
  141.  
  142. text = "1";
  143. sizeEx = 0.030;
  144. x = 0.62; y = 0.61;
  145. w = 0.275; h = 0.03;
  146.  
  147. };
  148. class iNearPlayers : unit_RscCombo
  149. {
  150. idc = 2023;
  151.  
  152. x = 0.62; y = 0.65;
  153. w = 0.275; h = 0.03;
  154. };
  155. /*
  156. Disabled till it can be redone
  157. class moneyInput: unit_RscCombo {
  158.  
  159. idc = money_value;
  160.  
  161. x = 0.02; y = 0.402;
  162. w = .1; h = .030;
  163. };
  164. */
  165.  
  166. class DropButton : unit_RscButtonMenu {
  167.  
  168. idc = 2002;
  169. text = "$STR_Global_Give";
  170. 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])", 0.5};
  171. onButtonClick = "[] call life_fnc_giveItem;";
  172.  
  173. x = 0.765;
  174. y = 0.70;
  175. w = (5.25 / 40);
  176. h = (1 / 25);
  177.  
  178. };
  179.  
  180. class UseButton : unit_RscButtonMenu {
  181.  
  182. text = "$STR_Global_Use";
  183. 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])", 0.5};
  184. onButtonClick = "[] call life_fnc_useItem;";
  185.  
  186. x = 0.62;
  187. y = 0.70;
  188. w = (5.25 / 40);
  189. h = (1 / 25);
  190.  
  191. };
  192.  
  193. class RemoveButton : unit_RscButtonMenu {
  194.  
  195. text = "$STR_Global_Remove";
  196. 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])", 0.5};
  197. onButtonClick = "[] call life_fnc_removeItem;";
  198.  
  199. x = 0.475;
  200. y = 0.70;
  201. w = (5.25 / 40);
  202. h = (1 / 25);
  203.  
  204. };
  205.  
  206. class ButtonClose : unit_RscButtonMenu {
  207. idc = -1;
  208. //shortcuts[] = {0x00050000 + 2};
  209. text = "$STR_Global_Close";
  210. onButtonClick = "closeDialog 0;";
  211. x = 0.1;
  212. y = 0.8 - (1 / 25);
  213. w = (6.25 / 40);
  214. h = (1 / 25);
  215. };
  216.  
  217. class ButtonSettings : unit_RscButtonMenu {
  218. idc = -1;
  219. text = "$STR_Global_Settings";
  220. onButtonClick = "[] call life_fnc_settingsMenu;";
  221. x = 0.1 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
  222. y = 0.8 - (1 / 25);
  223. w = (6.25 / 40);
  224. h = (1 / 25);
  225. };
  226.  
  227. class ButtonMyGang : unit_RscButtonMenu {
  228. idc = 2011;
  229. text = "$STR_PM_MyGang";
  230. 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;};};";
  231. x = 0.1 + (6.25 / 19.8) + (1 / 250 / (safezoneW / safezoneH));
  232. y = 0.8 - (1 / 25);
  233. w = (6.25 / 40);
  234. h = (1 / 25);
  235. };
  236.  
  237. class Licenses_Menu : unit_RscControlsGroup
  238. {
  239. idc = -1;
  240. w = 0.28;
  241. h = 0.38;
  242. x = 0.34;
  243. y = 0.30;
  244.  
  245. class Controls
  246. {
  247. class Life_Licenses : unit_RscStructuredText
  248. {
  249. idc = 2014;
  250. sizeEx = 0.020;
  251. text = "";
  252. x = 0;
  253. y = 0;
  254. w = 0.27; h = 0.65;
  255. };
  256. };
  257. };
  258.  
  259. class ButtonGangList : unit_RscButtonMenu {
  260. idc = 2012;
  261. text = "$STR_PM_WantedList";
  262. onButtonClick = "[] call life_fnc_wantedMenu";
  263. x = 0.1 + (6.25 / 19.8) + (1 / 250 / (safezoneW / safezoneH));
  264. y = 0.8 - (1 / 25);
  265. w = (6.25 / 40);
  266. h = (1 / 25);
  267. };
  268.  
  269. class ButtonKeys : unit_RscButtonMenu {
  270. idc = 2013;
  271. text = "$STR_PM_KeyChain";
  272. onButtonClick = "createDialog ""Life_key_management"";";
  273. x = 0.26 + (6.25 / 19.8) + (1 / 250 / (safezoneW / safezoneH));
  274. y = 0.8 - (1 / 25);
  275. w = (6.25 / 40);
  276. h = (1 / 25);
  277. };
  278.  
  279. class ButtonCell : unit_RscButtonMenu {
  280. idc = 2014;
  281. text = "$STR_PM_CellPhone";
  282. onButtonClick = "createDialog ""unit_cell_phone"";";
  283. x = 0.42 + (6.25 / 19.8) + (1 / 250 / (safezoneW / safezoneH));
  284. y = 0.8 - (1 / 25);
  285. w = (6.25 / 40);
  286. h = (1 / 25);
  287. };
  288.  
  289. class ButtonAdminMenu : unit_RscButtonMenu {
  290. idc = 2021;
  291. text = "$STR_PM_AdminMenu";
  292. onButtonClick = "createDialog ""life_admin_menu"";";
  293. x = 0.1 + (6.25 / 40) + (1 / 250 / (safezoneW / safezoneH));
  294. y = 0.805;
  295. w = (6.25 / 40);
  296. h = (1 / 25);
  297. };
  298.  
  299. class ButtonSyncData : unit_RscButtonMenu {
  300. idc = -1;
  301. //shortcuts[] = {0x00050000 + 2};
  302. text = "$STR_PM_SyncData";
  303. onButtonClick = "[] call SOCK_fnc_syncData;";
  304. x = 0.1;
  305. y = 0.805;
  306. w = (6.25 / 40);
  307. h = (1 / 25);
  308. };
  309.  
  310. class ButtonStocks : unit_RscButtonMenu {
  311. idc = 2069;
  312. text = "$STR_PM_Stocks";
  313. onButtonClick = "[] call stock_dialog";
  314. x = 0.1 + (6.25 / 19.8) + (1 / 250 / (safezoneW / safezoneH));
  315. y = 0.805;
  316. w = (6.25 / 40);
  317. h = (1 / 25);
  318. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement