Beispiel #1
0
 private void OnLeaveAndCreateSquad(object result, object cookie)
 {
     if (result != null)
     {
         ProcessingScreen.Show();
         SquadMsg message = SquadMsgUtils.CreateLeaveSquadMessage(new SquadController.ActionCallback(this.OnLeaveComplete), null);
         Service.SquadController.TakeAction(message);
     }
 }
 private void OnLeaveAndJoinSquad(object result, object cookie)
 {
     if (result != null)
     {
         ProcessingScreen.Show();
         SquadMsg message = SquadMsgUtils.CreateLeaveSquadMessage(new SquadController.ActionCallback(this.OnLeaveComplete), null);
         Service.Get <SquadController>().TakeAction(message);
         return;
     }
     this.button.Enabled = true;
 }
Beispiel #3
0
 private void OnAlertLeaveResult(object result, object cookie)
 {
     if (result != null)
     {
         SquadMsg message = SquadMsgUtils.CreateLeaveSquadMessage(new SquadController.ActionCallback(this.OnLeaveSquadComplete), null);
         Service.SquadController.TakeAction(message);
         if (Service.GameStateMachine.CurrentState is WarBoardState)
         {
             SquadWarScreen highestLevelScreen = Service.ScreenController.GetHighestLevelScreen <SquadWarScreen>();
             if (highestLevelScreen != null)
             {
                 highestLevelScreen.CloseSquadWarScreen(null);
             }
         }
     }
     else
     {
         this.screen.ShowSquadSlideButton();
     }
 }