Advertisement
Guest User

CraftingMenu.h

a guest
May 22nd, 2018
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.56 KB | None | 0 0
  1. //// Sealteamsloth ////
  2. class CraftingMenu {
  3. idd = 44000;
  4. movingEnable = false;
  5. enableSimulation = true;
  6.  
  7. class ControlsBackground {
  8. class MasterBackground: Life_RscText
  9. {
  10. idc = -1;
  11. x = 0.304062 * safezoneW + safezoneX;
  12. y = 0.291 * safezoneH + safezoneY;
  13. w = 0.391875 * safezoneW;
  14. h = 0.407 * safezoneH;
  15. colorBackground[] = {0.098,0.098,0.098,1};
  16. };
  17. class ProgressBarBackground: Life_RscText
  18. {
  19. idc = -1;
  20. x = 0.386562 * safezoneW + safezoneX;
  21. y = 0.665 * safezoneH + safezoneY;
  22. w = 0.180469 * safezoneW;
  23. h = 0.022 * safezoneH;
  24. colorBackground[] = {0.533,0,0.082,1};
  25. };
  26. class Title: Life_RscText
  27. {
  28. idc = -1;
  29. text = "Manufacturing Menu";
  30. x = 0.304062 * safezoneW + safezoneX;
  31. y = 0.269 * safezoneH + safezoneY;
  32. w = 0.0876563 * safezoneW;
  33. h = 0.022 * safezoneH;
  34. colorText[] = {1,1,1,1};
  35. colorBackground[] = {0.098,0.098,0.098,1};
  36. };
  37. class PlayerInventoryLabel: Life_RscText
  38. {
  39. idc = -1;
  40. text = "Player Inventory";
  41. x = 0.309219 * safezoneW + safezoneX;
  42. y = 0.302 * safezoneH + safezoneY;
  43. w = 0.0721875 * safezoneW;
  44. h = 0.022 * safezoneH;
  45. colorBackground[] = {0.302,0.302,0.302,1};
  46. };
  47. class FactoryStorageLabel: Life_RscText
  48. {
  49. idc = -1;
  50. text = "Factory Storage";
  51. x = 0.309219 * safezoneW + safezoneX;
  52. y = 0.5 * safezoneH + safezoneY;
  53. w = 0.0721875 * safezoneW;
  54. h = 0.022 * safezoneH;
  55. colorBackground[] = {0.302,0.302,0.302,1};
  56. };
  57. class MissingPartsLabel: Life_RscText
  58. {
  59. idc = -1;
  60. text = "Missing Parts/Materials";
  61. x = 0.572187 * safezoneW + safezoneX;
  62. y = 0.302 * safezoneH + safezoneY;
  63. w = 0.118594 * safezoneW;
  64. h = 0.022 * safezoneH;
  65. colorBackground[] = {0.486,0.306,0.204,1};
  66. };
  67. class PartListLabel: Life_RscText
  68. {
  69. idc = -1;
  70. text = "Parts";
  71. x = 0.386562 * safezoneW + safezoneX;
  72. y = 0.302 * safezoneH + safezoneY;
  73. w = 0.0309375 * safezoneW;
  74. h = 0.022 * safezoneH;
  75. colorBackground[] = {0.302,0.302,0.302,1};
  76. };
  77. class MaterialListLabel: Life_RscText
  78. {
  79. idc = -1;
  80. text = "Materials";
  81. x = 0.479375 * safezoneW + safezoneX;
  82. y = 0.302 * safezoneH + safezoneY;
  83. w = 0.04125 * safezoneW;
  84. h = 0.022 * safezoneH;
  85. colorBackground[] = {0.302,0.302,0.302,1};
  86. };
  87. class HelpParts: Life_RscText
  88. {
  89. idc = -1;
  90. text = "?";
  91. x = 0.422656 * safezoneW + safezoneX;
  92. y = 0.302 * safezoneH + safezoneY;
  93. w = 0.0154688 * safezoneW;
  94. h = 0.022 * safezoneH;
  95. colorBackground[] = {0.212,0.553,1,1};
  96. tooltip = "How many of each part is required to make the selected manufacture item.";
  97. };
  98. class HelpMaterials: Life_RscText
  99. {
  100. idc = -1;
  101. text = "?";
  102. x = 0.525781 * safezoneW + safezoneX;
  103. y = 0.302 * safezoneH + safezoneY;
  104. w = 0.0154688 * safezoneW;
  105. h = 0.022 * safezoneH;
  106. colorBackground[] = {0.212,0.553,1,1};
  107. tooltip = "How much of each material is required to make one of the selected part.";
  108. };
  109. };
  110. class Controls {
  111. class PlayerInventoryList: Life_RscListBox
  112. {
  113. idc = 44001;
  114. x = 0.309219 * safezoneW + safezoneX;
  115. y = 0.324 * safezoneH + safezoneY;
  116. w = 0.0721875 * safezoneW;
  117. h = 0.165 * safezoneH;
  118. colorBackground[] = {0.498,0.498,0.498,1};
  119. colorSelect[] = {1,1,1,1};
  120. colorSelect2[] = {1,1,1,1};
  121. colorSelectBackground[] = {0,0,0,0};
  122. colorSelectBackground2[] = {0,0,0,0};
  123. sizeEx = .03;
  124. };
  125. class FactoryStorageList: Life_RscListBox
  126. {
  127. idc = 44002;
  128. x = 0.309219 * safezoneW + safezoneX;
  129. y = 0.522 * safezoneH + safezoneY;
  130. w = 0.0721875 * safezoneW;
  131. h = 0.165 * safezoneH;
  132. colorBackground[] = {0.498,0.498,0.498,1};
  133. colorSelect[] = {1,1,1,1};
  134. colorSelect2[] = {1,1,1,1};
  135. colorSelectBackground[] = {0,0,0,0};
  136. colorSelectBackground2[] = {0,0,0,0};
  137. sizeEx = .03;
  138. };
  139. class ProgressBar: Life_RscProgress
  140. {
  141. idc = 44003;
  142. colorFrame[] = {0.533,0,0.082,1};
  143. colorBar[] = {1,0,0,1};
  144. texture = "#(argb,8,8,3)color(1,0,0,1)";
  145. x = 0.386562 * safezoneW + safezoneX;
  146. y = 0.665 * safezoneH + safezoneY;
  147. w = 0.180469 * safezoneW;
  148. h = 0.022 * safezoneH;
  149. };
  150. class TerminalItemsList: Life_RscCombo
  151. {
  152. idc = 44004;
  153. x = 0.386562 * safezoneW + safezoneX;
  154. y = 0.621 * safezoneH + safezoneY;
  155. w = 0.180469 * safezoneW;
  156. h = 0.033 * safezoneH;
  157. colorText[] = {0,0,0,1};
  158. colorBackground[] = {1,1,1,1};
  159. onLBSelChanged = "call life_fnc_termItemSelectedEvent;";
  160. };
  161. class MissingPartsList: Life_RscListBox
  162. {
  163. idc = 44005;
  164. x = 0.572187 * safezoneW + safezoneX;
  165. y = 0.324 * safezoneH + safezoneY;
  166. w = 0.118594 * safezoneW;
  167. h = 0.275 * safezoneH;
  168. colorBackground[] = {0.725,0.478,0.341,1};
  169. colorSelect[] = {1, 1, 1, 1};
  170. colorSelect2[] = {1, 1, 1, 1};
  171. colorSelectBackground[] = {0,0,0,0};
  172. colorSelectBackground2[] = {0,0,0,0};
  173. sizeEx = 0.03;
  174. };
  175. class ManufactureButton: Life_RscButton
  176. {
  177. idc = 44006;
  178. text = "Manufacture";
  179. x = 0.572187 * safezoneW + safezoneX;
  180. y = 0.621 * safezoneH + safezoneY;
  181. w = 0.118594 * safezoneW;
  182. h = 0.066 * safezoneH;
  183. colorBackground[] = {0.133,0.694,0.298,1};
  184. onButtonClick = "call life_fnc_manufactureItem";
  185. tooltip = "Manufacture the selected item.";
  186. };
  187. class ProgressBarPercent: Life_RscText
  188. {
  189. idc = 44007;
  190. text = "";
  191. x = 0.54125 * safezoneW + safezoneX;
  192. y = 0.654 * safezoneH + safezoneY;
  193. w = 0.0257812 * safezoneW;
  194. h = 0.044 * safezoneH;
  195. };
  196. class PartList: Life_RscListbox
  197. {
  198. idc = 44008;
  199. x = 0.386562 * safezoneW + safezoneX;
  200. y = 0.324 * safezoneH + safezoneY;
  201. w = 0.0876563 * safezoneW;
  202. h = 0.275 * safezoneH;
  203. colorText[] = {1, 1, 1, 1};
  204. colorSelect[] = {0, 0, 0, 1};
  205. colorSelect2[] = { 0, 0, 0, 1};
  206. colorSelectBackground[] = {0.95, 0.95, 0.95, 1};
  207. colorSelectBackground2[] = {1, 1, 1, 0.5};
  208. colorBackground[] = {0, 0, 0, 0.3};
  209. onLBSelChanged = "call life_fnc_partSelectedEvent;";
  210. sizeEx = 0.03;
  211. };
  212. class MaterialList: Life_RscListbox
  213. {
  214. idc = 44009;
  215. x = 0.479375 * safezoneW + safezoneX;
  216. y = 0.324 * safezoneH + safezoneY;
  217. w = 0.0876563 * safezoneW;
  218. h = 0.198 * safezoneH;
  219. colorBackground[] = {0, 0, 0, 0.3};
  220. colorText[] = {1, 1, 1, 1};
  221. colorSelect[] = {1,1,1,1};
  222. colorSelect2[] = {1,1,1,1};
  223. colorSelectBackground[] = {0,0,0,0};
  224. colorSelectBackground2[] = {0,0,0,0};
  225. sizeEx = 0.03;
  226. };
  227. class CraftButton: Life_RscButton
  228. {
  229. idc = 44010;
  230. x = 0.479375 * safezoneW + safezoneX;
  231. y = 0.533 * safezoneH + safezoneY;
  232. w = 0.04125 * safezoneW;
  233. h = 0.066 * safezoneH;
  234. colorText[] = {0,0,0,1};
  235. colorBackground[] = {0.764,0.764,0.764,1};
  236. text = "Make";
  237. onButtonClick = "[false] call life_fnc_makePart";
  238. shadow = 0;
  239. tooltip = "Make the selected part.";
  240. };
  241. class Craft2Button: Life_RscButton
  242. {
  243. idc = 44011;
  244. x = 0.525781 * safezoneW + safezoneX;
  245. y = 0.533 * safezoneH + safezoneY;
  246. w = 0.04125 * safezoneW;
  247. h = 0.066 * safezoneH;
  248. colorText[] = {0,0,0,1};
  249. colorBackground[] = {0.764,0.764,0.764,1};
  250. text = "Make x2";
  251. onButtonClick = "[true] call life_fnc_makePart";
  252. shadow = 0;
  253. tooltip = "Make the selected part twice.";
  254. };
  255. class CloseDialog: Life_RscButton
  256. {
  257. idc = 44012;
  258. text = "Close";
  259. x = 0.659844 * safezoneW + safezoneX;
  260. y = 0.269 * safezoneH + safezoneY;
  261. w = 0.0360937 * safezoneW;
  262. h = 0.022 * safezoneH;
  263. onButtonClick = "closeDialog 44000";
  264. colorBackground[] = {1,0,0,1};
  265. colorShadow[] = {0,0,0,0};
  266. shadow = 0;
  267. };
  268.  
  269. };
  270. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement