Advertisement
Guest User

Untitled

a guest
Oct 3rd, 2011
656
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.58 KB | None | 0 0
  1.  
  2. //this one actually just makes the basic items and design does not deal with stuff used in actual questing!!!
  3. public static function popUpBuilder() {
  4.  
  5. var hoopX:int = new int(165);
  6. var hoopY:int = new int(150);
  7. var hoopYSpacing = new int(75);
  8. //var hoopIndex = new int(numChildren - 1);
  9. //var topIndex = new int(numChildren - 1);
  10. var nameWidth = new int(100);
  11. var nameHeight = new int(20);
  12.  
  13. var cycleX:int = new int(260);
  14. var cycleY:int = new int(150);
  15. var cycleSpace:int = new int(200);
  16. var cycleWidth:int = new int(40);
  17. var questBelowButtonSpace:int = new int(60);
  18.  
  19. //PU 0 Blank Background (to hide the stuff behind it invisibly!)
  20. var w0:ACOW = new ACOW();
  21. w0.makeLoadChange(popLoc + "/background/blank.png", 0, 0, 800, 600, popItems, popStage);
  22.  
  23. //PU 1 character back ground
  24. var wl:ACOW = new ACOW();
  25. wl.makeLoadChange(popLoc + "/background/CharacterScreenBackground.jpg", 135, 100, 500, 360, popItems, popStage);
  26.  
  27. //PU 2 add Button
  28. var w2:ACOW = new ACOW();
  29. w2.makeLoadChange(popLoc + "/button/button_add.png", cycleX, cycleY + questBelowButtonSpace, 100, 50, popItems, popStage);
  30. //popItems[popItems.length - 1].addEventListener(MouseEvent.CLICK, questAddGirlButtonClick);
  31. //DEBUG put back in after building site
  32.  
  33. //PU 3 Remove Button
  34. var w3:ACOW = new ACOW();
  35. w3.makeLoadChange(popLoc + "/button/button_remove.png", cycleX + cycleSpace, cycleY + questBelowButtonSpace, 100, 50, popItems, popStage);
  36. popItems[popItems.length - 1].alpha = .6;
  37.  
  38. var buttonX:int = new int(550);
  39. var buttonY:int = new int(350);
  40. var buttonYSpacing:int = new int(50);
  41.  
  42. //PU 4 Ok Button
  43. var w4:ACOW = new ACOW();
  44. w4.makeLoadChange(popLoc + "/button/button_ok.png", buttonX, buttonY, 100, 50, popItems, popStage);
  45. popItems[popItems.length - 1].alpha = .6;
  46.  
  47. //PU 5 Ok Button
  48. var w5:ACOW = new ACOW();
  49. w5.makeLoadChange(popLoc + "/button/button_cancel.png", buttonX, buttonY + buttonYSpacing, 100, 50, popItems, popStage);
  50. //popItems[popItems.length - 1].addEventListener(MouseEvent.CLICK, cancelPopUpClick);
  51. //DEBUG
  52.  
  53. //PU 6 prev Button
  54. var w50:ACOW = new ACOW();
  55. w50.makeLoadChange(popLoc + "/button/button_prev.png", cycleX + 50, cycleY, cycleWidth, cycleWidth, popItems, popStage);
  56. //popItems[popItems.length - 1].addEventListener(MouseEvent.CLICK, cycleLeftPopUp);
  57. //DEBUG
  58.  
  59. //PU 7 next Button
  60. var w51:ACOW = new ACOW();
  61. w51.makeLoadChange(popLoc + "/button/button_next.png", cycleX + cycleSpace, cycleY, cycleWidth, cycleWidth, popItems, popStage);
  62. //popItems[popItems.length - 1].addEventListener(MouseEvent.CLICK, cycleRightPopUp);
  63. //DEBUG
  64.  
  65.  
  66. var hoopSize:int = new int(50);
  67.  
  68. //PU 8 hoop Button
  69. var w6:ACOW = new ACOW();
  70. w6.makeLoadChange(popLoc + "/other/hoop.png", hoopX, hoopY, hoopSize, hoopSize, popItems, popStage);
  71.  
  72. //PU 9 hoop Button
  73. var w7:ACOW = new ACOW();
  74. w7.makeLoadChange(popLoc + "/other/hoop.png", hoopX, hoopY + hoopYSpacing, hoopSize, hoopSize, popItems, popStage);
  75.  
  76. //PU 10 hoop Button
  77. var w8:ACOW = new ACOW();
  78. w8.makeLoadChange(popLoc + "/other/hoop.png", hoopX, hoopY + (hoopYSpacing * 2), hoopSize, hoopSize, popItems, popStage);
  79.  
  80. //PU 11 hoop Button
  81. var w9:ACOW = new ACOW();
  82. w9.makeLoadChange(popLoc + "/other/hoop.png", hoopX, hoopY + (hoopYSpacing * 3), hoopSize, hoopSize, popItems, popStage);
  83.  
  84. //PU 12 hoop Button
  85. var w10:ACOW = new ACOW();
  86. w10.makeLoadChange(popLoc + "/other/hoopredx.png", hoopX, hoopY + hoopYSpacing, hoopSize, hoopSize, popItems, popStage);
  87.  
  88. //PU 13 hoop Button
  89. var w11:ACOW = new ACOW();
  90. w11.makeLoadChange(popLoc + "/other/hoopredx.png", hoopX, hoopY + (hoopYSpacing * 2), hoopSize, hoopSize, popItems, popStage);
  91.  
  92. //PU 14 hoop Button
  93. var w12:ACOW = new ACOW();
  94. w12.makeLoadChange(popLoc + "/other/hoopredx.png", hoopX, hoopY + (hoopYSpacing * 3), hoopSize, hoopSize, popItems, popStage);
  95.  
  96. //PU 15 Girl name 1 TEXT
  97. ACOW.makeLabel("No Girl", hoopX, hoopY + (hoopYSpacing * 1) - 20, nameWidth, nameHeight, popItems, popStage);
  98. popItems[popItems.length - 1].visible = true;
  99.  
  100. //PU 16 Girl name 2 TEXT
  101. ACOW.makeLabel("No Girl", hoopX, hoopY + (hoopYSpacing * 2) - 20, nameWidth, nameHeight, popItems, popStage);
  102. popItems[popItems.length - 1].visible = true;
  103.  
  104. //PU 17 Girl name 3 TEXT
  105. ACOW.makeLabel("No Girl", hoopX, hoopY + (hoopYSpacing * 3) - 20, nameWidth, nameHeight, popItems, popStage);
  106. popItems[popItems.length - 1].visible = true;
  107.  
  108. //PU 18 Girl name 4 TEXT
  109. ACOW.makeLabel("No Girl", hoopX, hoopY + (hoopYSpacing * 4) - 20, nameWidth, nameHeight, popItems, popStage);
  110. popItems[popItems.length - 1].visible = true;
  111.  
  112. //PU 19 Top TEXT
  113. ACOW.makeLabel("<font size='18'>This is the top string giving the quest information", hoopX - 15, hoopY - 40, 600, nameHeight + 15, popItems, popStage);
  114. popItems[popItems.length - 1].visible = true;
  115.  
  116. ACOW.makeLabel("<font size='12'>Some Text",cycleX+ (cycleSpace /2 ) + 10, cycleY + questBelowButtonSpace, nameWidth, nameHeight, popItems, popStage);
  117. popItems[popItems.length - 1].visible = true;
  118.  
  119.  
  120. ACOW.makeLabel("<font size='12'>Required Check:",cycleX, hoopY + (hoopYSpacing * 2) - 20, nameWidth, nameHeight, popItems, popStage);
  121. popItems[popItems.length - 1].visible = true;
  122.  
  123. ACOW.makeLabel("<font size='12'>check text",cycleX, hoopY + (hoopYSpacing * 2), nameWidth, nameHeight, popItems, popStage);
  124. popItems[popItems.length - 1].visible = true;
  125.  
  126. ACOW.makeLabel("<font size='12'>check text",cycleX, hoopY + (hoopYSpacing * 2) + 20, nameWidth, nameHeight, popItems, popStage);
  127. popItems[popItems.length - 1].visible = true;
  128.  
  129. ACOW.makeLabel("<font size='12'>Other Requirments:",cycleX, hoopY + (hoopYSpacing * 3) - 20, nameWidth, nameHeight, popItems, popStage);
  130. popItems[popItems.length - 1].visible = true;
  131.  
  132. ACOW.makeLabel("<font size='12'>check text",cycleX, hoopY + (hoopYSpacing * 3), nameWidth, nameHeight, popItems, popStage);
  133. popItems[popItems.length - 1].visible = true;
  134.  
  135. ACOW.makeLabel("<font size='12'>check text",cycleX, hoopY + (hoopYSpacing * 3) + 20, nameWidth, nameHeight, popItems, popStage);
  136. popItems[popItems.length - 1].visible = true;
  137.  
  138. ACOW.makeLabel("<font size = '18'>You will keep the girls equipped items.",cycleX - 30, hoopY + (hoopYSpacing * 4) - 20, 300, nameHeight, popItems, popStage);
  139. popItems[popItems.length - 1].visible = true;
  140.  
  141. ACOW.makeLabel("<font size='12'>Effect or Item Required",cycleX + 150, hoopY + (hoopYSpacing * 2) - 20, nameWidth, nameHeight, popItems, popStage);
  142. popItems[popItems.length - 1].visible = true;
  143.  
  144. ACOW.makeLabel("<font size='12'>Effect or Item Checked",cycleX + 150, hoopY + (hoopYSpacing * 2), nameWidth, nameHeight, popItems, popStage);
  145. popItems[popItems.length - 1].visible = true;
  146.  
  147. ACOW.makeLabel("<font size='12'>Effect or Item Checked",cycleX + 150, hoopY + (hoopYSpacing * 2) + 20, nameWidth, nameHeight, popItems, popStage);
  148. popItems[popItems.length - 1].visible = true;
  149.  
  150. ACOW.makeLabel("<font size='12'>Effect or Item Checked",cycleX + 150, hoopY + (hoopYSpacing * 2) + 40, nameWidth, nameHeight, popItems, popStage);
  151. popItems[popItems.length - 1].visible = true;
  152.  
  153. ACOW.makeLabel("<font size='12'>Effect or Item Checked",cycleX + 150, hoopY + (hoopYSpacing * 2) + 60, nameWidth, nameHeight, popItems, popStage);
  154. popItems[popItems.length - 1].visible = true;
  155.  
  156. }
  157.  
  158.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement