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();
        }
Ejemplo n.º 2
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();
        }
Ejemplo n.º 3
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();
        }
Ejemplo n.º 4
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 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.evMurder0);

            popup.eventName = eResource.nameWeapOfficer;

            popup.AddItem(eResource.evMurder0Authorities, OnAuthorities);
            popup.AddItem(eResource.evMurder0Help, OnHelp);

            base.Activate();
        }
Ejemplo n.º 7
0
        public override void Activate()
        {
            EventPopup popup = base.CreatePopup(this.manager,
                                                img, eResource.evBabyYetis0);

            popup.eventName = eResource.nameNavOfficer;

            popup.AddItem(eResource.evBabyYetis0Airlock, OnAirlock);
            popup.AddItem(eResource.evBabyYetis0Declaw, OnDeclaw);

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

            popup.eventName = eResource.nameCats;

            popup.AddItem(eResource.evRuins0Help, OnHelp);
            popup.AddItem(eResource.evRuins0Turnin, OnTurnin);

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

            popup.eventName = eResource.nameCatGuns;

            popup.AddItem(eResource.evCatGuns0HideGuns, OnHideGuns);
            popup.AddItem(eResource.evCatGuns0Refuse, OnRefuse);

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

            popup.image       = img;
            popup.description = string.Format(eResource.evSpaceHulk0, Helpers.GenerateName("Adjective"), Helpers.GenerateName("Animal"));

            popup.AddItem(eResource.evSpaceHulk0Investigate, OnInvestigate);
            popup.AddItem(eResource.evSpaceHulk0Leave, OnLeave);

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

            popup.eventName = eResource.nameToucan;


            popup.AddItem(eResource.evStowaways0LetLive, OnLetLive);
            popup.AddItem(eResource.evStowaways0Shoot, OnKill);

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

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

            eventManager.UnlockEvent(new evDeerHitchhikers());

            popup.AddItem(eResource.evHitchHikers1ChatSteal, OnStealCargo);
            popup.AddItem(eResource.evHitchHikers1ChatLeave, OnNoSteal);
        }
Ejemplo n.º 13
0
        public override void Activate()
        {
            EventPopup popup = base.CreatePopup(this.manager);

            popup.image       = img;
            popup.description = string.Format(eResource.evAurora0,
                                              Helpers.GenerateName("Planet"), Helpers.GenerateName("Planet"));

            popup.AddItem(eResource.evAurora0ContinueStaring, OnStare);
            popup.AddItem(eResource.evAurora0StopStaring, OnNoStare);

            base.Activate();
        }
Ejemplo n.º 14
0
        public override void Activate()
        {
            EventPopup popup = base.CreatePopup(this.manager,
                                                img, eResource.evPigReward0);

            popup.eventName = eResource.namePigs;


            popup.AddItem(eResource.evPigReward0Ship, OnShip);
            popup.AddItem(eResource.evPigReward0Stock, OnStock);

            base.Activate();
        }
Ejemplo n.º 15
0
        public override void Activate()
        {
            EventPopup popup = base.CreatePopup(this.manager,
                                                img, eResource.evDeer0);

            popup.eventName = pilotName;


            popup.AddItem(eResource.evDeer0Pay, OnPay);
            popup.AddItem(eResource.evDeer0Refuse, OnFight);

            base.Activate();
        }
Ejemplo n.º 16
0
        public override void Activate()
        {
            EventPopup popup = base.CreatePopup(this.manager,
                                                img, eResource.evYetiStarve0);

            popup.eventName = eResource.nameYetis;


            popup.AddItem(eResource.evYetiStarve0Elderly, OnElderly);
            popup.AddItem(eResource.evYetiStarve0Young, OnYouth);

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

            popup.eventName = pilotName;


            popup.AddItem(eResource.evSlavers0Accept, OnBribe);
            popup.AddItem(eResource.evSlavers0Fight, OnFight);

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

            popup.eventName = eResource.nameDeer;



            popup.AddItem(eResource.evPrisoner0StaySilent, OnStaySilent);
            popup.AddItem(eResource.evPrisoner0GiveUp, OnGiveUp);

            base.Activate();
        }
Ejemplo n.º 19
0
        public override void Activate()
        {
            EventPopup popup = base.CreatePopup(this.manager,
                                                img,
                                                eResource.evHitchhikerRevenge0);

            popup.eventName = pilotName;


            popup.AddItem(eResource.evHitchhikerRevenge0GiveCargo, OnGiveUp);
            popup.AddItem(eResource.evHitchhikerRevenge0Fight, OnFight);

            base.Activate();
        }
Ejemplo n.º 20
0
        public override void Activate()
        {
            EventPopup popup = base.CreatePopup(this.manager,
                                                img, string.Format(eResource.evAssassinRevenge0, Helpers.GetPlayerName().ToUpper()));

            popup.eventName = pilotName;

            popup.AddItem(eResource.evAssassinRevenge0GiveToucans, OnGiveToucans);
            popup.AddItem(eResource.evAssassinRevenge0DenyToucans, OnFight);



            base.Activate();
        }
Ejemplo n.º 21
0
        public override void Activate()
        {
            EventPopup popup = base.CreatePopup(this.manager,
                                                img, eResource.evSwanPolice0);

            popup.eventName = pilotName;



            popup.AddItem(eResource.evSwanPolice0Attack, OnAttack);
            popup.AddItem(eResource.evSwanPolice0Bribe, OnBribe);

            base.Activate();
        }
Ejemplo n.º 22
0
        public override void Activate()
        {
            EventPopup popup = base.CreatePopup(this.manager,
                                                img, eResource.evPigs0);

            popup.eventName = eResource.namePigs;



            popup.AddItem(eResource.evPigs0Help, OnHelp);
            popup.AddItem(eResource.evPigs0Leave, OnBetray);

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

            popup.eventName = eResource.nameHitchhikers;


            popup.AddItem(eResource.evHitchhikers0Yes, OnYes);
            popup.AddItem(eResource.evHitchhikers0No, OnDecline);

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

            popup.eventName = eResource.nameImplementors;


            popup.AddItem(eResource.evImplementorsMurder0Authorities, OnAuthorities);
            popup.AddItem(eResource.evImplementorsMurder0Help, OnHelp);

            eventManager.AddLog(img, eResource.logImplementors);

            base.Activate();
        }
Ejemplo n.º 25
0
        public override void Activate()
        {
            EventPopup popup = base.CreatePopup(this.manager, img,
                                                eResource.evPirateHostage0);

            popup.eventName = pilotName;


            popup.AddItem(eResource.evPirateHostage0GiveCargo, OnGiveCargo);
            popup.AddItem(eResource.evPirateHostage0Attack, OnFight);

            eventManager.AddKey(typeof(evHippoPirateBuddy));

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

            popup.eventName = eResource.nameImplementors;


            popup.AddItem(eResource.evImplementors0Obey, OnObey);
            popup.AddItem(eResource.evImplementors0Defy, OnDefy);

            eventManager.AddLog(img, eResource.logImplementors);

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

            popup.eventName = pilotName;



            popup.AddItem(eResource.evSpiderTwain0AcceptBribe, OnAcceptBribe);
            popup.AddItem(eResource.evSpiderTwain0Fight, OnFight);

            base.Activate();

            Helpers.AddPointBonus();
        }
Ejemplo n.º 28
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);
            }
        }
Ejemplo n.º 29
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());
            }
        }
Ejemplo n.º 30
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);
        }