Example #1
0
        public override void Update(MouseState Mouse, KeyboardState KeyBoard, GameTime gameTime)
        {
            if (KeyBoard.IsKeyUp(Config.Controls.ShowMenu) && PasteKeyboard.IsKeyDown(Config.Controls.ShowMenu))
            {
                W.TogglePauseGame();
            }

            if (KeyBoard.IsKeyUp(Config.Controls.ShowChat) && PasteKeyboard.IsKeyDown(Config.Controls.ShowChat))
            {
                if (cManager.CurrentContainerKey == "GameUI")
                {
                    W.Pause = true;
                    cManager.SwitchContainer("Chat");
                }
            }

            PasteKeyboard = KeyBoard;

            cManager.Update(Mouse, KeyBoard, gameTime);



            if (cManager.CurrentContainerKey == "Option")
            {
                OptionMenuManager.Update(Mouse, KeyBoard, gameTime);
            }



            base.Update(Mouse, KeyBoard, gameTime);
        }
Example #2
0
        public override void Update(MouseState Mouse, KeyboardState KeyBoard, GameTime gameTime)
        {
            Background.Update(Mouse, KeyBoard, gameTime);
            MainMenuManager.Update(Mouse, KeyBoard, gameTime);

            if (MainMenuManager.CurrentContainerKey == "Option")
            {
                OptionMenuManager.Update(Mouse, KeyBoard, gameTime);
            }

            base.Update(Mouse, KeyBoard, gameTime);
        }