private void SwitchToDiceRerollsPanel() { GenericSubPhase subphase = Phases.StartTemporarySubPhaseNew <DiceRerollSubphase>("Dice Reroll", DoCallback); ToggleDiceModificationsPanel(false); ToggleDiceRerollsPanel(ShowOnlyForHuman()); subphase.Start(); }
public override void NextPhase() { Selection.DeselectAllShips(); GenericSubPhase subphase = Phases.StartTemporarySubPhaseNew("Notification", typeof(NotificationSubPhase), StartPlanningPhase); (subphase as NotificationSubPhase).TextToShow = "Planning"; subphase.Start(); }
private static void StartSubPhase() { GenericSubPhase subphase = Phases.StartTemporarySubPhaseNew <ManualCollisionPredictionSubPhase>( "Manual collision prediction", Finish ); subphase.Start(); }
public override void StartPhase() { Name = "Setup Phase"; GenericSubPhase subphase = Phases.StartTemporarySubPhaseNew("Notification", typeof(NotificationSubPhase), StartSetupPhase); (subphase as NotificationSubPhase).TextToShow = "Setup"; subphase.Start(); }
public void Start() { IsExecuted = true; Combat.DiceModifications.ShowDiceModificationsUiEmpty(); GenericSubPhase subphase = Phases.StartTemporarySubPhaseNew( SubphaseType.Name, SubphaseType, Combat.DiceModifications.Next ); subphase.Start(); }
public override void StartPhase() { Name = "Combat Phase"; if (Phases.HasOnCombatPhaseStartEvents) { GenericSubPhase subphase = Phases.StartTemporarySubPhaseNew("Notification", typeof(NotificationSubPhase), StartCombatStartSubPhase); (subphase as NotificationSubPhase).TextToShow = "Start of Combat"; subphase.Start(); } else { StartCombatStartSubPhase(); } }
public override void NextPhase() { Selection.DeselectAllShips(); if (Phases.HasOnEndPhaseStartEvents) { GenericSubPhase subphase = Phases.StartTemporarySubPhaseNew("Notification", typeof(NotificationSubPhase), StartEndPhase); (subphase as NotificationSubPhase).TextToShow = "End"; subphase.Start(); } else { StartEndPhase(); } }
public override void NextPhase() { Selection.DeselectAllShips(); bool anyShipHasSystemsAbility = Roster.AllShips.Values.Any(n => n.IsSystemsAbilityCanBeActivated); if (anyShipHasSystemsAbility) { GenericSubPhase subphase = Phases.StartTemporarySubPhaseNew("Notification", typeof(NotificationSubPhase), StartSystemsPhase); (subphase as NotificationSubPhase).TextToShow = "Systems"; subphase.Start(); } else { StartSystemsPhase(); } }
public override void NextPhase() { Selection.DeselectAllShips(); if (!DebugManager.NoCinematicCamera) { CameraScript.RestoreCamera(); } if (Phases.Events.HasOnEndPhaseStartEvents) { GenericSubPhase subphase = Phases.StartTemporarySubPhaseNew("Notification", typeof(NotificationSubPhase), StartEndPhase); (subphase as NotificationSubPhase).TextToShow = "End"; subphase.Start(); } else { StartEndPhase(); } }
// TEMPORARY SUBPHASES public static void StartTemporarySubPhaseOld(string name, System.Type subPhaseType, Action callBack = null) { GenericSubPhase subphase = StartTemporarySubPhaseNew(name, subPhaseType, callBack); subphase.Start(); }