//private float transitionElapsedTime; public EncounterScreen(UniverseScreen screen, Empire playerEmpire, Empire targetEmp, SolarSystem tarSys, Encounter e) { this.encounter = e; this.encounter.CurrentMessage = 0; this.encounter.SetPlayerEmpire(playerEmpire); this.encounter.SetSys(tarSys); this.encounter.SetTarEmp(targetEmp); this.screen = screen; base.IsPopup = true; base.TransitionOnTime = TimeSpan.FromSeconds(0.25); base.TransitionOffTime = TimeSpan.FromSeconds(0.25); }
public EncounterPopup(UniverseScreen s, Empire playerEmpire, Empire targetEmp, SolarSystem tarSys, Encounter e) { this.screen = s; this.encounter = e; this.encounter.CurrentMessage = 0; this.encounter.SetPlayerEmpire(playerEmpire); this.encounter.SetSys(tarSys); this.encounter.SetTarEmp(targetEmp); this.fade = true; base.IsPopup = true; this.FromGame = true; base.TransitionOnTime = TimeSpan.FromSeconds(0.25); base.TransitionOffTime = TimeSpan.FromSeconds(0); this.r = new Rectangle(0, 0, 600, 600); }