Beispiel #1
0
        public override void HandleInput(InputState input)
        {
            PlayerIndex playerIndex;

            if (input.IsMenuSelect(this.ControllingPlayer, out playerIndex))
            {
                if (this.Accepted != null)
                {
                    this.Accepted((object)this, new PlayerIndexEventArgs(playerIndex));
                }
                if (this.AcceptedClicked != null)
                {
                    this.AcceptedClicked();
                }
                this.ExitScreen();
            }
            else if (input.IsMenuCancel(this.ControllingPlayer, out playerIndex))
            {
                if (this.Cancelled != null)
                {
                    this.Cancelled((object)this, new PlayerIndexEventArgs(playerIndex));
                }
                if (this.CancelClicked != null)
                {
                    this.CancelClicked();
                }
                this.ExitScreen();
            }
            GuiData.doInput(input);
        }
 public override void HandleInput(InputState input)
 {
     PlayerIndex playerIndex;
     if (input.IsMenuSelect(ControllingPlayer, out playerIndex))
     {
         if (Accepted != null)
             Accepted(this, new PlayerIndexEventArgs(playerIndex));
         ExitScreen();
     }
     else if (input.IsMenuCancel(ControllingPlayer, out playerIndex))
     {
         if (Cancelled != null)
             Cancelled(this, new PlayerIndexEventArgs(playerIndex));
         ExitScreen();
     }
     GuiData.doInput(input);
 }
Beispiel #3
0
        public override void HandleInput(InputState input)
        {
            PlayerIndex playerIndex;

            if (input.IsMenuSelect(ControllingPlayer, out playerIndex))
            {
                if (Accepted != null)
                {
                    Accepted(this, new PlayerIndexEventArgs(playerIndex));
                }
                ExitScreen();
            }
            else if (input.IsMenuCancel(ControllingPlayer, out playerIndex))
            {
                if (Cancelled != null)
                {
                    Cancelled(this, new PlayerIndexEventArgs(playerIndex));
                }
                ExitScreen();
            }
            GuiData.doInput(input);
        }