Exemplo n.º 1
0
        private void OnInvestigate(object sender, InputArgs e)
        {
            Helpers.CloseThisMenu(sender);

            int rand = FrameworkCore.r.Next(2);

            if (rand == 0)
            {
                EventPopup popup = base.CreatePopup(this.manager);
                popup.image       = img;
                popup.description = eResource.evSpaceHulk1BrujaLost;

                popup.AddItem(Resource.MenuOK, base.OnClose);

                eventManager.AddLog(img, eResource.logSpacehulkBruja);
            }
            else
            {
                //GET CARGO.
                EventPopup popup = base.CreatePopup(this.manager);
                popup.image       = img;
                popup.description = eResource.evSpaceHulk1Cargo;

                popup.AddItem(Resource.MenuOK, base.OnGetCargo);

                eventManager.AddLog(img, eResource.logSpacehulkCargo);

                eventManager.UnlockEvent(new evBruja());
            }
        }
Exemplo n.º 2
0
        protected EventPopup CreatePopup(SysMenuManager manager)
        {
            EventPopup popup = new EventPopup(manager);

            manager.AddMenu(popup);
            return(popup);
        }
Exemplo n.º 3
0
        private void OnGiveCargo(object sender, InputArgs e)
        {
            Helpers.CloseThisMenu(sender);

            string cargo1, cargo2, cargo3, desc1, desc2, desc3;
            bool   hasCargo = eventManager.LoseRandomCargo(out cargo1, out desc1);

            eventManager.LoseRandomCargo(out cargo2, out desc2);
            eventManager.LoseRandomCargo(out cargo3, out desc3);

            string popupText = "";

            if (hasCargo)
            {
                popupText = string.Format(eResource.evPirateHostage1GiveCargo,
                                          cargo1 + "\n" + desc1,
                                          cargo2 + "\n" + desc2,
                                          cargo3 + "\n" + desc3);
                EventPopup popup = base.CreatePopup(this.manager, img,
                                                    popupText);

                popup.AddItem(Resource.MenuOK, base.OnClose);

                eventManager.AddLog(img, eResource.logPirateHostageCargo);
            }
            else
            {
                popupText = eResource.evPirateHostage1NoCargo;
                EventPopup popup = base.CreatePopup(this.manager, img,
                                                    popupText);

                popup.AddItem(eResource.startBattle, OnFightNoCargo);
            }
        }
Exemplo n.º 4
0
        private void OnPay(object sender, InputArgs e)
        {
            Helpers.CloseThisMenu(sender);

            string itemName    = "";
            string itemDesc    = "";
            string description = "";

            if (eventManager.LoseRandomCargo(out itemName, out itemDesc))
            {
                description = string.Format(eResource.evDeer1Pay, itemName + "\n" + itemDesc);
            }
            else
            {
                //you don't have any cargo you bum
                description = eResource.evDeer1PayNoCargo;
            }

            EventPopup popup = base.CreatePopup(this.manager,
                                                img, description);

            popup.AddItem(Resource.MenuOK, base.OnClose);

            eventManager.AddKey(typeof(evCatCharity));

            eventManager.AddLog(img, eResource.logDeerPay);
        }
Exemplo n.º 5
0
        public override void Activate()
        {
            EventPopup popup = base.CreatePopup(this.manager,
                                                img, eResource.evTerminalDeath0);

            popup.AddItem(eResource.evTerminalDeath0TheEnd, OnEnd);

            base.Activate();
        }
Exemplo n.º 6
0
        public override void Activate()
        {
            EventPopup popup = base.CreatePopup(this.manager);

            popup.image       = sprite.eventSprites.cats;
            popup.description = "+1 SHIP";

            popup.AddItem(Resource.MenuOK, OnEnd);
        }
Exemplo n.º 7
0
        protected EventPopup CreatePopup(SysMenuManager manager, Rectangle img, string txt)
        {
            EventPopup popup = new EventPopup(manager);

            popup.image       = img;
            popup.description = txt;
            manager.AddMenu(popup);
            return(popup);
        }
Exemplo n.º 8
0
        public void OnGiveToucans(object sender, InputArgs e)
        {
            Helpers.CloseThisMenu(sender);

            EventPopup popup = base.CreatePopup(this.manager,
                                                img, eResource.evAssassinRevenge1GiveToucans);

            popup.AddItem(Resource.MenuOK, OnGiveToucansDone);
        }
Exemplo n.º 9
0
        public override void Activate()
        {
            EventPopup popup = base.CreatePopup(this.manager,
                                                img, eResource.evKaraoke0);


            popup.AddItem(eResource.evKaraoke0Great, OnPrize);

            base.Activate();
        }
        public override void Activate()
        {
            EventPopup popup = base.CreatePopup(this.manager, img, eResource.evOwl0);

            popup.eventName = pilotName;

            popup.AddItem(eResource.startBattle, OnFight);

            base.Activate();
        }
Exemplo n.º 11
0
        public override void Activate()
        {
            EventPopup popup = base.CreatePopup(this.manager,
                                                img, eResource.evTutorial0);

            popup.AddItem(eResource.evTutorial1RunTutorial, OnDoTutorial);
            popup.AddItem(eResource.evTutorial1SkipTutorial, OnSkipTutorial);

            base.Activate();
        }
Exemplo n.º 12
0
        public override void Activate()
        {
            EventPopup popup = base.CreatePopup(this.manager,
                                                img, eResource.evAbandoned0);

            popup.AddItem(eResource.evAbandoned0CleanShip, OnClean);
            popup.AddItem(eResource.evAbandoned0Leave, OnLeave);

            base.Activate();
        }
Exemplo n.º 13
0
        public override void Activate()
        {
            EventPopup popup = base.CreatePopup(this.manager,
                                                img, eResource.evKatanaShip0);

            popup.AddItem(eResource.evKatanaShip0Leave, OnDestroy);
            popup.AddItem(eResource.evKatanaShip0Salvage, OnSalvage);

            base.Activate();
        }
        public override void Activate()
        {
            EventPopup popup = base.CreatePopup(this.manager,
                                                img, eResource.evDemoEnd0);

            popup.AddItem(Resource.MenuUnlockFullGame, OnBuy);
            popup.AddItem(Resource.MenuDemoPlanetMaybeLater, OnLater);

            base.Activate();
        }
        public void OnDescription(object sender, InputArgs e)
        {
            Helpers.CloseThisMenu(sender);

            EventPopup popup = base.CreatePopup(this.manager,
                                                img, eResource.evCasino1);

            popup.AddItem(eResource.evCasino1Agree, OnAgree);
            popup.AddItem(eResource.evCasino1Disagree, OnDisagree);
        }
        public override void Activate()
        {
            EventPopup popup = base.CreatePopup(this.manager, img,
                                                eResource.evCasino0);

            popup.eventName = Resource.FactionCasino;

            popup.AddItem(eResource.evCasino0UhOh, OnDescription);

            base.Activate();
        }
        public override void Activate()
        {
            EventPopup popup = base.CreatePopup(this.manager,
                                                img, eResource.evDogBoots0);

            popup.eventName = eResource.nameDogs;

            popup.AddItem(eResource.evDogs0OK, onOk);

            base.Activate();
        }
Exemplo n.º 18
0
        private void OnBribe(object sender, InputArgs e)
        {
            Helpers.CloseThisMenu(sender);

            EventPopup popup = base.CreatePopup(this.manager,
                                                img, eResource.evSwanPolice1Bribe);

            popup.AddItem(eResource.startBattle, OnStartCombat);

            eventManager.AddLog(img, eResource.logSwanPoliceBribe);
        }
Exemplo n.º 19
0
        private void OnFight(object sender, InputArgs e)
        {
            Helpers.CloseThisMenu(sender);

            EventPopup popup = base.CreatePopup(this.manager,
                                                img, eResource.evDeer1Fight);

            popup.AddItem(eResource.startBattle, StartBattle);

            eventManager.AddKey(typeof(evOwl));
        }
        private void OnGiveUp(object sender, InputArgs e)
        {
            Helpers.CloseThisMenu(sender);

            EventPopup popup = base.CreatePopup(this.manager,
                                                img, eResource.evPrisoner1GiveUp);

            popup.AddItem(Resource.MenuOK, base.OnClose);

            eventManager.AddLog(img, eResource.logPrisonerGiveUp);
        }
        public override void Activate()
        {
            EventPopup popup = base.CreatePopup(this.manager,
                                                img, eResource.evStorm0);

            popup.eventName = eResource.nameCats;

            popup.AddItem(eResource.evStorm0Thanks, OnOk);

            base.Activate();
        }
        public override void Activate()
        {
            EventPopup popup = base.CreatePopup(this.manager,
                                                img, eResource.evBitterMelon0);

            popup.eventName = eResource.nameBitterMelon;

            popup.AddItem(eResource.evHippoBuddy0Welcome, bitterBuddies);

            base.Activate();
        }
Exemplo n.º 23
0
        public override void Activate()
        {
            EventPopup popup = base.CreatePopup(this.manager,
                                                img, eResource.evAbandonZombies0);

            popup.AddItem(Resource.MenuOK, base.OnClose);

            eventManager.AddLog(img, eResource.logAbandonZombies);

            base.Activate();
        }
Exemplo n.º 24
0
        private void OnYouth(object sender, InputArgs e)
        {
            Helpers.CloseThisMenu(sender);

            EventPopup popup = base.CreatePopup(this.manager,
                                                img, eResource.evYetiStarve1Young);

            popup.AddItem(Resource.MenuOK, base.OnClose);

            eventManager.AddLog(img, eResource.logYetiStarveYouth);
        }
Exemplo n.º 25
0
        public override void Activate()
        {
            EventPopup popup = base.CreatePopup(this.manager,
                                                img, eResource.evPenguinHitman0);

            popup.eventName = pilotName;

            popup.AddItem(eResource.startBattle, StartBattle);

            base.Activate();
        }
        private void OnOk(object sender, InputArgs e)
        {
            Helpers.CloseThisMenu(sender);

            EventPopup popup = base.CreatePopup(this.manager,
                                                img, eResource.evStorm1);

            popup.AddItem(eResource.evStorm1Thanks, base.OnGetCargo);

            eventManager.AddLog(img, eResource.logStorm);
        }
Exemplo n.º 27
0
        private void OnBetray(object sender, InputArgs e)
        {
            Helpers.CloseThisMenu(sender);

            EventPopup popup = base.CreatePopup(this.manager,
                                                img, eResource.evPigs1Betray);

            popup.AddItem(Resource.MenuOK, OnKilledPigs);

            Helpers.EventRumble();
        }
        public override void Activate()
        {
            string popupTxt = string.Format(eResource.evWine0, Helpers.GetPlayerName().ToUpper());

            EventPopup popup = base.CreatePopup(this.manager,
                                                img, popupTxt);

            popup.AddItem(eResource.evKaraoke0Great, OnPrize);

            base.Activate();
        }
Exemplo n.º 29
0
        private void OnDone(object sender, InputArgs e)
        {
            Helpers.CloseThisMenu(sender);

            EventPopup popup = base.CreatePopup(this.manager,
                                                img, eResource.evAuroraResearchGood1Study);

            popup.AddItem(Resource.MenuOK, base.OnGetCargo);

            eventManager.AddLog(img, eResource.logAuroraResearchGood);
        }
        private void OnAgree(object sender, InputArgs e)
        {
            Helpers.CloseThisMenu(sender);

            EventPopup popup = base.CreatePopup(this.manager,
                                                img, eResource.evCasino2Agree);

            popup.AddItem(Resource.MenuOK, base.OnClose);
            WorkForCasino();

            eventManager.UnlockEvent(new evCasinoJob());
        }