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()); } }
protected EventPopup CreatePopup(SysMenuManager manager) { EventPopup popup = new EventPopup(manager); manager.AddMenu(popup); return(popup); }
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); } }
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); }
public override void Activate() { EventPopup popup = base.CreatePopup(this.manager, img, eResource.evTerminalDeath0); popup.AddItem(eResource.evTerminalDeath0TheEnd, OnEnd); base.Activate(); }
public override void Activate() { EventPopup popup = base.CreatePopup(this.manager); popup.image = sprite.eventSprites.cats; popup.description = "+1 SHIP"; popup.AddItem(Resource.MenuOK, OnEnd); }
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); }
public void OnGiveToucans(object sender, InputArgs e) { Helpers.CloseThisMenu(sender); EventPopup popup = base.CreatePopup(this.manager, img, eResource.evAssassinRevenge1GiveToucans); popup.AddItem(Resource.MenuOK, OnGiveToucansDone); }
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(); }
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(); }
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(); }
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(); }
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); }
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(); }
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(); }
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); }
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); }
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(); }
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()); }