private void IsWarrantApproved() { _cData = LtFlash.Common.Serialization.Serializer.LoadItemFromXML <CaseData>(Main.CDataPath); if (!_cData.WarrantAccess) { return; } if (!_cData.WarrantHeard) { return; } if (_cData.WarrantApproved) { "Warrant Approved".AddLog(); "Sexual Assault Case Update".DisplayNotification("Warrant ~g~approved", _cData.Number); SetScriptFinished(); } else { "Warrant Not Approved".AddLog(); Attributes.NextScripts.Clear(); GameFiber.StartNew(delegate { var failedScreen = new MissionFailedScreen("Warrant denied"); failedScreen.Show(); while (!Game.IsKeyDown(Keys.Enter)) { failedScreen.Draw(); GameFiber.Yield(); } }); "Sexual Assault Case Update".DisplayNotification("Warrant ~r~denied~w~. \nCase has gone cold, better luck next time.", _cData.Number); SetScriptFinished(); } }
private void CaseLost() { MissionFailedScreen failed = new MissionFailedScreen("Violated suspect rights"); failed.Show(); while (!Game.IsKeyDown(Keys.Enter)) { failed.Draw(); GameFiber.Yield(); } this.Attributes.NextScripts.Clear(); }
public void FailMission(bool death = false, string reason = "") { if (!death) { var screen = new MissionFailedScreen(reason); screen.Show(); while (!screen.HasPressedContinue) { screen.Draw(); GameFiber.Yield(); } } AbortMission(death); }