Advertisement
Guest User

Untitled

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