Advertisement
builderman_build

Untitled

Jul 7th, 2017
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.86 KB | None | 0 0
  1. self.menu["UI"]["Title"] thread hudMoveY(self.menu["UI"]["Title"].y-100,.3);
  2. self.menu["UI"]["Status"] thread hudMoveY(self.menu["UI"]["Status"].y+100,.3);
  3. self.menu["UI"]["Background"] thread hudScaleOverTime(.3,self.menu["width"]-18,225);
  4.  
  5. self.menu["OPT"]["Title"] = self createText(self.menu["TitleFont"],self.menu["Title & Status_Fontscale"],self.menu["Title_Alignment"],"LEFT",self.menu["UI"]["Title"].x+self.menu["title_x"],self.menu["UI"]["Title"].y,10,0,self.menu["main"]["title"],self.menu["Title & Status_Color"]);
  6. self.menu["OPT"]["Status"] = self createText(self.menu["TitleFont"],self.menu["Title & Status_Fontscale"],self.menu["Title_Alignment"],"LEFT",self.menu["OPT"]["Title"].x,self.menu["UI"]["Status"].y,10,0,"Status: ^2"+self.menu["Status"],self.menu["Title & Status_Color"]);
  7. self.menu["OPT"]["Title"] setText(level.patch);
  8. self thread KRDR(self.menu["KRDR_Color"],self.menu["OPT"]["Title"],level.patch);
  9. for(a=0;a<5;a++)
  10. {
  11. number = revaluePointer(self.menu[self getCurrentMenu()+"_POINTER"]-2+a);
  12. if(!isDefined(self buildFromMenu()["main"]["option"][number])) continue;
  13. self.menu["UI"][number] = self createRectangle("LEFT","LEFT",self.menu["UI"]["Background"].x+5,self.menu["positioning_Y"],self.menu["width"]-23,20,self.menu["Tab_Color"],self.menu["Tab_Shader"],4,self.menu["Tab_Alpha"]);
  14. self.menu["OPT"][number] = self createText(self.menu["MenuFont"],self.menu["Menu_Fontscale"],self.menu["Menu_Alignment"],"LEFT",self.menu["UI"]["Background"].x+self.menu["x"],self.menu["positioning_Y"],5,1,self buildFromMenu()[self getCurrentMenu()]["option"][number],self.menu["Menu_Color"]);
  15. if(a == 2) continue;
  16. self.menu["UI"][number] thread hudMoveY(self.menu["positioning_Y"]-70+35*a,.3);
  17. self.menu["OPT"][number] thread hudMoveY(self.menu["UI"][number].y,.3);
  18. }
  19. self.menu["UI"]["Scroller"] = self createRectangle("LEFT","LEFT",self.menu["UI"]["Background"].x+self.menu["width"]-20,self.menu["positioning_Y"],2,1,self.menu["Scroller_Color"],self.menu["Scroller_Shader"],5,1);
  20. self.menu["UI"]["Scroller"] thread hudScaleOverTime(.3,2,20);
  21. wait .25;
  22. self.menu["OPT"]["Title"] thread hudFade(self.menu["Title & Status_Alpha"],.4);
  23. self.menu["OPT"]["Status"] thread hudFade(self.menu["Title & Status_Alpha"],.4);
  24. }
  25. else
  26. {
  27. self.menu["UI"]["Title"] thread hudMoveY(self.menu["UI"]["Title"].y-101,.4);
  28. self.menu["UI"]["Status"] thread hudMoveY(self.menu["UI"]["Status"].y+101,.4);
  29. wait .45;
  30. self.menu["UI"]["Edging"] = self createRectangle("LEFT","LEFT",self.menu["UI"]["Title"].x-0,self.menu["positioning_Y"],1,236,self.menu["Edging_Color"],self.menu["Edging_Shader"],-10,self.menu["Edging_Alpha"]);
  31. self.menu["UI"]["Edging"] thread hudScaleOverTime(.4,self.menu["width"]+2,236); wait .2;
  32. self.menu["UI"]["Background"] = self createRectangle("LEFT","LEFT",self.menu["UI"]["Title"].x,self.menu["positioning_Y"],1,173,self.menu["Background_Color"],self.menu["Background_Shader"],5,self.menu["Background_Alpha"]);
  33. wait .25;
  34. self.menu["UI"]["Background"] thread hudScaleOverTime(.4,self.menu["width"],173); wait .4;
  35.  
  36. self.menu["OPT"]["Title"] = self createText(self.menu["TitleFont"],self.menu["Title & Status_Fontscale"],self.menu["Title_Alignment"],"LEFT",self.menu["UI"]["Title"].x-80,self.menu["UI"]["Title"].y,10,0,self.menu["main"]["title"],self.menu["Title & Status_Color"]);
  37. self.menu["OPT"]["Status"] = self createText(self.menu["TitleFont"],self.menu["Title & Status_Fontscale"],self.menu["Title_Alignment"],"LEFT",self.menu["OPT"]["Title"].x,self.menu["UI"]["Status"].y,10,0,"Status: ^2"+self.menu["Status"],self.menu["Title & Status_Color"]);
  38. self.menu["OPT"]["Title"] thread hudFade(self.menu["Title & Status_Alpha"],.15);
  39. self.menu["OPT"]["Status"] thread hudFade(self.menu["Title & Status_Alpha"],.15);
  40. self.menu["OPT"]["Title"] thread hudMoveX(self.menu["UI"]["Title"].x+self.menu["title_x"],.5);
  41. self.menu["OPT"]["Status"] thread hudMoveX(self.menu["UI"]["Title"].x+self.menu["title_x"],.5);
  42. wait .15;
  43. self.menu["UI"]["Scroller"] = self createRectangle("LEFT","LEFT",self.menu["UI"]["Background"].x,self.menu["positioning_Y"],2,1,self.menu["Scroller_Color"],self.menu["Scroller_Shader"],6,self.menu["Scroller_Alpha"]);
  44. self.menu["UI"]["Scroller"] thread hudScaleOverTime(.4,2,30);
  45. self thread drawText(self.menu["UI"]["Background"].x,0,true);
  46. wait .15;
  47. }
  48. }
  49. else
  50. self drawText(self.menu["UI"]["Background"].x,0);
  51. }
  52.  
  53. createFullMenu()
  54. {
  55. if(self.menu["animateMenu"])
  56. {
  57. self.menu["UI"]["Title"] = self createRectangle("LEFT","LEFT",self.menu["safeArea_X"],self.menu["positioning_Y"]-100,self.menu["width"],25,self.menu["Banner_Color"],self.menu["Banner_Shader"],8,self.menu["Banner_Alpha"]);
  58. self.menu["UI"]["Status"] = self createRectangle("LEFT","LEFT",self.menu["UI"]["Title"].x,self.menu["positioning_Y"]+100,self.menu["width"],25,self.menu["Banner_Color"],self.menu["Banner_Shader"],8,self.menu["Banner_Alpha"]);
  59. self.menu["UI"]["Background"] = self createRectangle("LEFT","LEFT",self.menu["UI"]["Title"].x+9,self.menu["positioning_Y"],self.menu["width"]-18,225,self.menu["Background_Color"],self.menu["Background_Shader"],2,self.menu["Background_Alpha"]);
  60. }
  61. else
  62. {
  63. self.menu["UI"]["Title"] = self createRectangle("LEFT","LEFT",self.menu["safeArea_X"],self.menu["positioning_Y"]-101,self.menu["width"],30,self.menu["Banner_Color"],self.menu["Banner_Shader"],8,self.menu["Banner_Alpha"]);
  64. self.menu["UI"]["Status"] = self createRectangle("LEFT","LEFT",self.menu["UI"]["Title"].x,self.menu["positioning_Y"]+101,self.menu["width"],30,self.menu["Banner_Color"],self.menu["Banner_Shader"],8,self.menu["Banner_Alpha"]);
  65. self.menu["UI"]["Edging"] = self createRectangle("LEFT","LEFT",self.menu["UI"]["Title"].x-0,self.menu["positioning_Y"],self.menu["width"]+2,236,self.menu["Edging_Color"],self.menu["Edging_Shader"],-10,self.menu["Edging_Alpha"]);
  66. self.menu["UI"]["Background"] = self createRectangle("LEFT","LEFT",self.menu["UI"]["Title"].x,self.menu["positioning_Y"],self.menu["width"],173,self.menu["Background_Color"],self.menu["Background_Shader"],5,self.menu["Background_Alpha"]);
  67. }
  68. self.menu["OPT"]["Title"] = self createText(self.menu["TitleFont"],self.menu["Title & Status_Fontscale"],self.menu["Title_Alignment"],"LEFT",self.menu["UI"]["Title"].x+self.menu["title_x"],self.menu["UI"]["Title"].y,10,self.menu["Title & Status_Alpha"],self.menu["main"]["title"],self.menu["Title & Status_Color"]);
  69. self.menu["OPT"]["Status"] = self createText(self.menu["TitleFont"],self.menu["Title & Status_Fontscale"],self.menu["Title_Alignment"],"LEFT",self.menu["OPT"]["Title"].x,self.menu["UI"]["Status"].y,10,self.menu["Title & Status_Alpha"],"Status: ^2"+self.menu["Status"],self.menu["Title & Status_Color"]);
  70. if(self.menu["animateMenu"])
  71. {
  72. self.menu["OPT"]["Title"] setText(level.patch);
  73. self thread KRDR(self.menu["KRDR_Color"],self.menu["OPT"]["Title"],level.patch);
  74. for(a=0;a<5;a++)
  75. {
  76. number = revaluePointer(self.menu[self getCurrentMenu()+"_POINTER"]-2+a);
  77. self.menu["UI"][number] = self createRectangle("LEFT","LEFT",self.menu["UI"]["Background"].x+5,self.menu["positioning_Y"]-70+35*a,self.menu["width"]-23,20,self.menu["Tab_Color"],self.menu["Tab_Shader"],4,self.menu["Tab_Alpha"]);
  78. self.menu["OPT"][number] = self createText(self.menu["MenuFont"],self.menu["Menu_Fontscale"],self.menu["Menu_Alignment"],"LEFT",self.menu["UI"]["Background"].x+self.menu["x"],self.menu["UI"][number].y,5,1,self buildFromMenu()[self getCurrentMenu()]["option"][number],self.menu["Menu_Color"]);
  79. }
  80. }
  81. if(!self.menu["animateMenu"])
  82. self.menu["UI"]["Scroller"] = self createRectangle("LEFT","LEFT",self.menu["UI"]["Background"].x,self.menu["positioning_Y"],2,30,self.menu["Scroller_Color"],self.menu["Scroller_Shader"],6,self.menu["Scroller_Alpha"]);
  83. else
  84. self.menu["UI"]["Scroller"] = self createRectangle("LEFT","LEFT",self.menu["UI"]["Background"].x+self.menu["width"]-20,self.menu["positioning_Y"],2,20,self.menu["Scroller_Color"],self.menu["Scroller_Shader"],5,1);
  85. if(!self.menu["animateMenu"])
  86. {
  87. self thread drawText(self.menu["UI"]["Background"].x,self.menu["Menu_Alpha"]);
  88. wait .15;
  89. }
  90. }
  91.  
  92. newOpen(menu)
  93. {
  94. self.menu["DISABLE_MENU_CONTROLS"] = true;
  95. if(!isDefined(self.menu["sub"]))
  96. {
  97. self thread continueKRDR();
  98. self.menu["UI"]["Title"] thread hudMoveX(self.menu["UI"]["Title"].x+(self.menu["width"]-3),.3);
  99. self.menu["UI"]["Status"] thread hudMoveX(self.menu["UI"]["Title"].x,.3);
  100. self.menu["OPT"]["Title"] thread hudMoveX(self.menu["OPT"]["Title"].x+(self.menu["width"]-3),.3);
  101. self.menu["OPT"]["Status"] thread hudMoveX(self.menu["OPT"]["Title"].x,.3);
  102.  
  103. self scrollPreLoads(100,75,4,3);
  104. self.menu["UI"]["Background"] thread hudScaleOverTime(.3,self.menu["width"]-18,20);
  105. for(a=0;a<self buildFromMenu()[self getCurrentMenu()]["option"].size;a++)
  106. {
  107. if(a == self revaluePointer(self getPointer())) continue;
  108. self.menu["UI"][a] thread hudMoveY(self.menu["positioning_Y"],.3);
  109. self.menu["OPT"][a] thread hudMoveY(self.menu["UI"][a].y,.3);
  110. self.menu["UI"][a] thread hudFadenDestroy(self.menu["UI"][a].y,1);
  111. self.menu["OPT"][a] thread hudFadenDestroy(self.menu["UI"][a].y,.3);
  112. }
  113. self.menu["UI"]["Tab"] = self.menu["UI"][self revaluePointer(self getPointer())];
  114. self.menu["OPT"][self revaluePointer(self getPointer())] destroy();
  115. self setCurrentMenu(menu);
  116. self.menu["TITLE"] = self createText(self.menu["MenuFont"],self.menu["Menu_Fontscale"],"CENTER","LEFT",self.menu["UI"]["Background"].x+((self.menu["width"]-18)/2),self.menu["positioning_Y"],5,self.menu["Menu_Alpha"],self buildFromMenu()[self getCurrentMenu()]["title"],self.menu["Menu_Color"]);
  117.  
  118. self.menu["UI"]["Scroller"] thread hudFade(self.menu["Scroller_Alpha"],1);
  119. self.menu["UI"]["Scroller"] thread hudMoveX(self.menu["UI"]["Background"].x+self.menu["width"]-12,.2); wait .2;
  120. self.menu["UI"]["Scroller"] thread hudScaleOverTime(.3,2,180); wait .34;
  121. self.menu["UI"]["Scroller"] thread hudScaleOverTime(.3,self.menu["width"],180); wait .3;
  122. self.menu["sub"] = true;
  123. self writeMenu(); wait .1;
  124. }
  125. else
  126. {
  127. self scrollPreLoads(102,70,3,2,true);
  128. self thread destroyMenu();
  129.  
  130. self.menu["UI"]["Scroller"] thread hudFade(1,1);
  131. self.menu["UI"]["Scroller"] thread hudScaleOverTime(.3,2,180); wait .34;
  132. self.menu["UI"]["Scroller"] thread hudScaleOverTime(.3,2,20); wait .2;//.3
  133. //self.menu["UI"]["Scroller"] thread hudMoveX(self.menu["UI"]["Background"].x+127,.2);
  134.  
  135. self thread continueKRDR();
  136. self.menu["UI"]["Title"] thread hudMoveX(self.menu["UI"]["Title"].x-(self.menu["width"]-3),.3);
  137. self.menu["UI"]["Status"] thread hudMoveX(self.menu["UI"]["Title"].x,.3);
  138. self.menu["OPT"]["Title"] thread hudMoveX(self.menu["OPT"]["Title"].x-(self.menu["width"]-3),.3);
  139. self.menu["OPT"]["Status"] thread hudMoveX(self.menu["OPT"]["Title"].x,.3);
  140.  
  141. self setCurrentMenu(menu);//Needed for revaluePointer() function
  142. self.menu["UI"]["Background"] thread hudScaleOverTime(.3,self.menu["width"]-18,173);
  143. for(a=0;a<5;a++)
  144. {
  145. number = revaluePointer(self.menu["main_POINTER"]-2+a);
  146. if(a == 2 || !isDefined(self buildFromMenu()["main"]["option"][number])) continue;
  147. self.menu["UI"][number] = self createRectangle("LEFT","LEFT",self.menu["UI"]["Background"].x+5,self.menu["positioning_Y"],self.menu["width"]-23,20,self.menu["Tab_Color"],self.menu["Tab_Shader"],4,self.menu["Tab_Alpha"]);
  148. self.menu["OPT"][number] = self createText(self.menu["MenuFont"],self.menu["Menu_Fontscale"],self.menu["Menu_Alignment"],"LEFT",self.menu["UI"]["Background"].x+self.menu["x"],self.menu["positioning_Y"],5,0,self buildFromMenu()["main"]["option"][number],self.menu["Menu_Color"]);
  149. self.menu["OPT"][number] thread hudFade(self.menu["Menu_Alpha"],.3);
  150. self.menu["UI"][number] thread hudMoveY(self.menu["positioning_Y"]-70+35*a,.3);
  151. self.menu["OPT"][number] thread hudMoveY(self.menu["UI"][number].y,.3);
  152. }
  153. self.menu["TITLE"] destroy();
  154. self.menu["UI"][self revaluePointer(self getPointer())] = self.menu["UI"]["Tab"];
  155. self.menu["OPT"][self revaluePointer(self getPointer())] = self createText(self.menu["MenuFont"],self.menu["Menu_Fontscale"],self.menu["Menu_Alignment"],"LEFT",self.menu["UI"]["Background"].x+self.menu["x"],self.menu["positioning_Y"],5,self.menu["Menu_Alpha"],self buildFromMenu()[self getCurrentMenu()]["option"][self revaluePointer(self getPointer())],self.menu["Menu_Color"]);
  156. self.menu["sub"] = undefined; wait .1;
  157. self.menu["UI"]["Scroller"] thread hudMoveX(self.menu["UI"]["Background"].x+(self.menu["width"]-20),.2); wait .1;
  158. }
  159. self.menu["DISABLE_MENU_CONTROLS"] = undefined;
  160. }
  161.  
  162. //USED FOR WHEN A PLAYER CHANGES ANOTHER STATUS (AND THEY ARE INSIDE OF THE ANIMATED MENU DESIGN)
  163. animatedMenuRefresh()
  164. {
  165. for(a=0;a<18;a++)
  166. {
  167. self.menu["UI"][a] destroy();
  168. self.menu["OPT"][a] destroy();
  169. }
  170. for(a=0;a<5;a++)
  171. {
  172. number = revaluePointer(self.menu["main_POINTER"]-2+a);
  173. if(!isDefined(self buildFromMenu()["main"]["option"][number])) continue;
  174. self.menu["UI"][number] = self createRectangle("LEFT","LEFT",self.menu["UI"]["Background"].x+5,self.menu["positioning_Y"]-70+35*a,self.menu["width"]-23,20,self.menu["Tab_Color"],self.menu["Tab_Shader"],4,self.menu["Tab_Alpha"]);
  175. self.menu["OPT"][number] = self createText(self.menu["MenuFont"],self.menu["Menu_Fontscale"],self.menu["Menu_Alignment"],"LEFT",self.menu["UI"]["Background"].x+self.menu["x"],self.menu["UI"][number].y,5,self.menu["Menu_Alpha"],self buildFromMenu()["main"]["option"][number],self.menu["Menu_Color"]);
  176. }
  177. }
  178.  
  179. exitMenu()
  180. {
  181. self thread forgeExit();
  182. if(!self inMenu()) return;
  183. self notify("menuExit");
  184.  
  185. if(!self.menu["hideMenu"])
  186. {
  187. if(self.menu["animateMenu"])
  188. {
  189. self.menu["UI"]["Background"] thread hudScaleOverTime(.3,self.menu["width"]-18,20);
  190. self.menu["UI"]["Scroller"] thread hudScaleOverTime(.3,2,1);
  191. self thread continueKRDR();
  192. self.menu["UI"]["Title"] thread hudMoveY(self.menu["positioning_Y"],.3);
  193. self.menu["UI"]["Status"] thread hudMoveY(self.menu["positioning_Y"],.3);
  194. self.menu["OPT"]["Title"] thread hudMoveY(self.menu["positioning_Y"],.3);
  195. self.menu["OPT"]["Status"] thread hudMoveY(self.menu["positioning_Y"],.3);
  196. self.menu["OPT"]["Title"] thread hudFadenDestroy(0,.4);
  197. self.menu["OPT"]["Status"] thread hudFadenDestroy(0,.4);
  198.  
  199. self.menu["OPT"][self getPointer()] thread hudFade(0,.25);
  200. for(a=0;a<self buildFromMenu()[self getCurrentMenu()]["option"].size;a++)
  201. {
  202. if(a == self revaluePointer(self getPointer())) continue;
  203. self.menu["UI"][a] thread hudMoveY(self.menu["positioning_Y"],.25);
  204. self.menu["OPT"][a] thread hudMoveY(self.menu["positioning_Y"],.25);
  205. self.menu["UI"][a] thread hudFadenDestroy(0,1);
  206. self.menu["OPT"][a] thread hudFadenDestroy(0,.4);
  207. }
  208. wait .34;
  209. }
  210. else
  211. {
  212. self.menu["OPT"]["Title"] thread hudMoveX(self.menu["UI"]["Title"].x-80,.35);
  213. self.menu["OPT"]["Status"] thread hudMoveX(self.menu["UI"]["Title"].x-80,.35);
  214. self.menu["OPT"]["Title"] thread hudFadenDestroy(0,.3);
  215. self.menu["OPT"]["Status"] thread hudFadenDestroy(0,.3);
  216. for(a=0;a<self buildFromMenu()[self getCurrentMenu()]["option"].size;a++)
  217. self.menu["OPT"][a] thread hudFadenDestroy(0,.3);
  218. self.menu["UI"]["Scroller"] thread hudScaleOverTime(.4,2,1);
  219. self.menu["UI"]["Scroller"] thread destroyAfter(.3);
  220. wait .35;
  221.  
  222. self.menu["UI"]["Background"] thread hudScaleOverTime(.4,1,173);
  223. self.menu["UI"]["Background"] thread destroyAfter(.45);
  224. wait .4;
  225. self.menu["UI"]["Edging"] thread hudScaleOverTime(.4,1,236);
  226. self.menu["UI"]["Edging"] thread destroyAfter(.45);
  227. wait .45;
  228.  
  229. self.menu["UI"]["Title"] thread hudMoveY(self.menu["positioning_Y"],.4);
  230. self.menu["UI"]["Status"] thread hudMoveY(self.menu["positioning_Y"],.4);
  231. wait .5;
  232. }
  233. }
  234. self.menu["IN_MENU"] = undefined;
  235. self instructions();
  236. self destroyAll(self.menu["UI"]);
  237. self destroyAll(self.menu["OPT"]);
  238. if(self.menu["hideMenu"]) wait .25;
  239. self thread startMenu();
  240. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement