Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function questGirlTurnInPopUp(ok:int, cancel:int, girlTotal:int, topString:String, itemsKept:Boolean, classCheck11:String, stat11:int, classCheck12:String, stat12:int, posNeg1:Boolean, classCheck21:String, stat21:int, classCheck22:String, stat22:int, posNeg2:Boolean, classCheck31:String, stat31:int, classCheck32:String, stat32:int, posNeg3:Boolean, classCheck41:String, stat41:int, classCheck42:String, stat42:int, posNeg4:Boolean, effectType:Boolean, effect1:String, effect2:String, effect3:String, effect4:String, allorone:Boolean, special:int) {
- var eventNum:int = new int(0);//number returned to trigger next event
- var hoopX:int = new int(175);
- var hoopY:int = new int(150);
- var hoopYSpacing = new int(75);
- var hoopIndex = new int(numChildren - 1);
- var topIndex = new int(numChildren - 1);
- var nameWidth = new int(60);
- var nameHeight = new int(20);
- var cycleX:int = new int(260);
- var cycleY:int = new int(150);
- var cycleSpace:int = new int(200);
- var cycleWidth:int = new int(80);
- var questBelowButtonSpace:int = new int(60);
- hidePeople();
- cleanCharPopUpArray();
- Player.charPopUpGirlTotal = girlTotal;
- Player.charPopUpItemsKept = itemsKept;
- Player.charPopUpClassCheck11 = classCheck11;
- Player.charPopUpClassCheck12 = classCheck12;
- Player.charPopUpstat11 = stat11;
- Player.charPopUpstat12 = stat12;
- Player.charPopUpposNeg1 = posNeg1;
- Player.charPopUpClassCheck21 = classCheck21;
- Player.charPopUpClassCheck22 = classCheck22;
- Player.charPopUpstat21 = stat21;
- Player.charPopUpstat22 = stat22;
- Player.charPopUpposNeg2 = posNeg2;
- Player.charPopUpClassCheck31 = classCheck31;
- Player.charPopUpClassCheck32 = classCheck32;
- Player.charPopUpstat31 = stat31;
- Player.charPopUpstat32 = stat32;
- Player.charPopUpposNeg3 = posNeg3;
- Player.charPopUpClassCheck41 = classCheck41;
- Player.charPopUpClassCheck42 = classCheck42;
- Player.charPopUpstat41 = stat41;
- Player.charPopUpstat42 = stat42;
- Player.charPopUpposNeg4 = posNeg4;
- Player.charPopUpEffectType = effectType;//true if effect, false if items
- Player.charPopUpEffect1 = effect1;
- Player.charPopUpEffect2 = effect2;
- Player.charPopUpEffect3 = effect3;
- Player.charPopUpEffect4 = effect4;
- Player.charPopUpSpecial = special;
- Player.charPopUpallorOne = allorone;
- Player.charPopUpSpecial = special;
- Player.charPopUpOk = ok;
- Player.charPopUpCancel = cancel;
- //PU 0 add Button
- popUpArrayBuilderAddAll(QuestAddButton, cycleX, cycleY + questBelowButtonSpace, -1, -1, topIndex - 6);
- popUpArrayBuilder[popUpArrayBuilder.length - 1].addEventListener(MouseEvent.CLICK, questAddGirlButtonClick);
- //PU 1 Remove Button
- popUpArrayBuilderAddAll(QuestRemoveButton, cycleX + cycleSpace, cycleY + questBelowButtonSpace, -1, -1, topIndex - 5);
- popUpArrayBuilder[popUpArrayBuilder.length - 1].alpha = .6;
- //PU 2 Blank Background
- popUpArrayBuilderAddAll(BlankBackground, 0, 0, 800, 600, topIndex - 11);
- popUpArrayBuilder[popUpArrayBuilder.length - 1].alpha = .6;
- //PU 3 SlideShowBackground
- popUpArrayBuilderAddAll(SlideShowBackGround, 155, 100, -1, -1, topIndex - 100);
- questHoop1.x = hoopX;
- questHoop1.y = hoopY;
- questHoop1.visible = true;
- setChildIndex(questHoop1, hoopIndex);
- popUpLabel10.visible = true;
- popUpLabel10.x = hoopX;
- popUpLabel10.y = hoopY + (hoopYSpacing * 1) - 20;
- popUpLabel10.htmlText = "No Girl";
- popUpLabel10.width = nameWidth;
- popUpLabel10.height = nameHeight;
- setChildIndex(popUpLabel10, hoopIndex);
- if (girlTotal > 1) {
- questHoop2.x = hoopX;
- questHoop2.y = hoopY+ hoopYSpacing;
- questHoop2.visible = true;
- setChildIndex(questHoop2, hoopIndex);
- }
- else {
- questHoopRedLine2.x = hoopX;
- questHoopRedLine2.y = hoopY+ hoopYSpacing;
- questHoopRedLine2.visible = true;
- setChildIndex(questHoopRedLine2, hoopIndex);
- }
- popUpLabel11.visible = true;
- popUpLabel11.x = hoopX;
- popUpLabel11.y = hoopY + (hoopYSpacing * 2) - 20;
- popUpLabel11.htmlText = "No Girl";
- popUpLabel11.width = nameWidth;
- popUpLabel11.height = nameHeight;
- setChildIndex(popUpLabel11, hoopIndex);
- if (girlTotal > 2) {
- questHoop3.x = hoopX;
- questHoop3.y = hoopY + (hoopYSpacing * 2);
- questHoop3.visible = true;
- setChildIndex(questHoop3, hoopIndex);
- }
- else {
- questHoopRedLine3.x = hoopX;
- questHoopRedLine3.y = hoopY + (hoopYSpacing * 2);
- questHoopRedLine3.visible = true;
- setChildIndex(questHoopRedLine3, hoopIndex);
- }
- popUpLabel12.visible = true;
- popUpLabel12.x = hoopX;
- popUpLabel12.y = hoopY + (hoopYSpacing * 3) - 20;
- popUpLabel12.htmlText = "No Girl";
- popUpLabel12.width = nameWidth;
- popUpLabel12.height = nameHeight;
- setChildIndex(popUpLabel12, hoopIndex);
- if (girlTotal > 3) {
- questHoop4.x = hoopX;
- questHoop4.y = hoopY+ (hoopYSpacing * 3);
- questHoop4.visible = true;
- setChildIndex(questHoop4, hoopIndex);
- }
- else {
- questHoopRedLine4.x = hoopX;
- questHoopRedLine4.y = hoopY + (hoopYSpacing * 3);
- questHoopRedLine4.visible = true;
- setChildIndex(questHoopRedLine4, hoopIndex);
- }
- popUpLabel13.visible = true;
- popUpLabel13.x = hoopX;
- popUpLabel13.y = hoopY + (hoopYSpacing * 4) - 20;
- popUpLabel13.htmlText = "No Girl";
- popUpLabel13.width = nameWidth;
- popUpLabel13.height = nameHeight;
- setChildIndex(popUpLabel13, hoopIndex);
- var buttonX:int = new int(550);
- var buttonY:int = new int(350);
- var buttonYSpacing:int = new int(50);
- questOkButton.visible = true;
- setChildIndex(questOkButton, topIndex - 9);
- questOkButton.alpha = .6;
- questOkButton.x = buttonX;
- questOkButton.y = buttonY;
- questCancelButton.visible = true;
- setChildIndex(questCancelButton, topIndex - 8);
- questCancelButton.x = buttonX;
- questCancelButton.y = buttonY + buttonYSpacing;
- questCancelButton.addEventListener(MouseEvent.CLICK, cancelPopUpClick);
- popUpLabel1.visible = true;
- popUpLabel1.x = hoopX - 15;
- popUpLabel1.y = hoopY - 40;
- popUpLabel1.width = 600;
- popUpLabel1.htmlText = "<font size = '24'>" + topString;
- setChildIndex(popUpLabel1, hoopIndex);
- questCycleLeft.visible = true;
- questCycleLeft.x = cycleX;
- questCycleLeft.y = cycleY;
- questCycleLeft.width = cycleWidth;
- questCycleLeft.addEventListener(MouseEvent.CLICK, cycleLeftPopUp);
- setChildIndex(questCycleLeft, topIndex - 7);
- questCycleRight.visible = true;
- questCycleRight.x = cycleX + cycleSpace;
- questCycleRight.y = cycleY;
- questCycleRight.width = cycleWidth;
- questCycleRight.addEventListener(MouseEvent.CLICK, cycleRightPopUp);
- setChildIndex(questCycleRight, hoopIndex);
- popUpLabel2.visible = true;
- popUpLabel2.x = cycleX+ (cycleSpace /2 ) + 10;
- popUpLabel2.y = cycleY + questBelowButtonSpace;
- popUpLabel2.width = nameWidth;
- popUpLabel2.height = nameHeight;
- setChildIndex(popUpLabel2, hoopIndex);
- popUpLabel3.visible = true;
- popUpLabel3.x = cycleX;
- popUpLabel3.y = hoopY + (hoopYSpacing * 2) - 20;
- popUpLabel3.width = 290;
- popUpLabel3.height = 30;
- popUpLabel3.htmlText = "Required Check:";
- setChildIndex(popUpLabel3, hoopIndex);
- popUpLabel4.visible = true;
- popUpLabel4.x = cycleX;
- popUpLabel4.y = hoopY + (hoopYSpacing * 2);
- popUpLabel4.width = 290;
- popUpLabel4.height = 30;
- popUpLabel4.htmlText = "check text";
- setChildIndex(popUpLabel4, hoopIndex);
- popUpLabel5.visible = true;
- popUpLabel5.x = cycleX;
- popUpLabel5.y = hoopY + (hoopYSpacing * 2) + 20;
- popUpLabel5.width = 290;
- popUpLabel5.height = 30;
- popUpLabel5.htmlText = "check text";
- setChildIndex(popUpLabel5, hoopIndex);
- popUpLabel6.visible = true;
- popUpLabel6.x = cycleX;
- popUpLabel6.y = hoopY + (hoopYSpacing * 3) - 20;
- popUpLabel6.width = 290;
- popUpLabel6.height = 30;
- popUpLabel6.htmlText = "Other Requirments:";
- setChildIndex(popUpLabel6, hoopIndex);
- popUpLabel7.visible = true;
- popUpLabel7.x = cycleX;
- popUpLabel7.y = hoopY + (hoopYSpacing * 3);
- popUpLabel7.width = 290;
- popUpLabel7.height = 30;
- popUpLabel7.htmlText = "check text";
- setChildIndex(popUpLabel7, hoopIndex);
- popUpLabel8.visible = true;
- popUpLabel8.x = cycleX;
- popUpLabel8.y = hoopY + (hoopYSpacing * 3) + 20;
- popUpLabel8.width = 290;
- popUpLabel8.height = 30;
- popUpLabel8.htmlText = "check text";
- setChildIndex(popUpLabel8, hoopIndex);
- popUpLabel9.visible = true;
- popUpLabel9.x = cycleX - 30;
- popUpLabel9.y = hoopY + (hoopYSpacing * 4) - 20;
- popUpLabel9.width = 300;
- popUpLabel9.height = 30;
- setChildIndex(popUpLabel9, hoopIndex);
- if (Player.charPopUpItemsKept == true) {
- popUpLabel9.htmlText = "<font size = '18'>You will keep the girls equipped items.";
- }
- else {
- popUpLabel9.x = cycleX + 20;
- popUpLabel9.htmlText = "<font size = '18'>Items are <b>LOST</b> on turn in.";
- }
- var itemEffectWidth:int = new int(140);
- popUpLabel20.visible = true;
- popUpLabel20.x = cycleX + 150;
- popUpLabel20.y = hoopY + (hoopYSpacing * 2) - 20;
- popUpLabel20.width = 100;
- popUpLabel20.height = 30;
- setChildIndex(popUpLabel20, hoopIndex);
- if (Player.charPopUpEffectType == true) {
- popUpLabel20.htmlText = "Effect Required:";
- }
- else {
- popUpLabel20.htmlText = "Item Required:";
- }
- popUpLabel21.visible = true;
- popUpLabel21.x = cycleX + 150;
- popUpLabel21.y = hoopY + (hoopYSpacing * 2);
- popUpLabel21.width = itemEffectWidth;
- popUpLabel21.height = 30;
- if (questEffectPopUpCheck()) {
- popUpLabel21.htmlText = questPopUpTextEffectorItem(1);
- }
- else {
- popUpLabel21.htmlText = "<font color = '#FF0000'>" + questPopUpTextEffectorItem(1) + "<font color = '#00000'>";
- }
- setChildIndex(popUpLabel21, hoopIndex);
- popUpLabel22.visible = true;
- popUpLabel22.x = cycleX + 150;
- popUpLabel22.y = hoopY + (hoopYSpacing * 2) + 20;
- popUpLabel22.width = itemEffectWidth;
- popUpLabel22.height = 30;
- if (questEffectPopUpCheck()) {
- popUpLabel22.htmlText = questPopUpTextEffectorItem(2);
- }
- else {
- popUpLabel21.htmlText = "<font color = '#FF0000'>" + questPopUpTextEffectorItem(2) + "<font color = '#00000'>";
- }
- setChildIndex(popUpLabel22, hoopIndex);
- popUpLabel23.visible = true;
- popUpLabel23.x = cycleX + 150;
- popUpLabel23.y = hoopY + (hoopYSpacing * 2) + 40;
- popUpLabel23.width = itemEffectWidth;
- popUpLabel23.height = 30;
- if (questEffectPopUpCheck()) {
- popUpLabel23.htmlText = questPopUpTextEffectorItem(3);
- }
- else {
- popUpLabel21.htmlText = "<font color = '#FF0000'>" + questPopUpTextEffectorItem(3) + "<font color = '#00000'>";
- }
- setChildIndex(popUpLabel23, hoopIndex);
- popUpLabel24.visible = true;
- popUpLabel24.x = cycleX + 150;
- popUpLabel24.y = hoopY + (hoopYSpacing * 2) + 60;
- popUpLabel24.width = itemEffectWidth;
- popUpLabel24.height = 30;
- if (questEffectPopUpCheck()) {
- popUpLabel24.htmlText = questPopUpTextEffectorItem(4);
- }
- else {
- popUpLabel21.htmlText = "<font color = '#FF0000'>" + questPopUpTextEffectorItem(4) + "<font color = '#00000'>";
- }
- setChildIndex(popUpLabel24, hoopIndex);
- if(cPlayer.GameArray[whatGirl] == null) {
- return;
- }
- updatePopUp();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement