Esempio n. 1
0
 /// <summary>
 /// Реагируем на изменения в игре
 /// </summary>
 /// <param name="state">The state.</param>
 public override void ChangeState(Microsoft.Xna.Framework.Input.MouseState state)
 {
     _StartGame.ChangeState(state);
     foreach (PanelItem item in Items)
     {
         item.ChangeState(state);
     }
 }
Esempio n. 2
0
        /// <summary>
        /// Обновляемся
        /// </summary>
        /// <param name="gameTime">The game time.</param>
        public override void Update(Microsoft.Xna.Framework.GameTime gameTime)
        {
            MouseState st = Mouse.GetState();

            if (_SettingsPanel != null)
            {
                _SettingsPanel.Update(st);
            }
            _MenuButton.ChangeState(st);
            _Level.Update(st);
        }
Esempio n. 3
0
 /// <summary>Обновляем состояние кнопок</summary>
 /// <param name="state">Состояние мыши</param>
 public void Update(MouseState state)
 {
     _Ok.ChangeState(state);
     _Cancel.ChangeState(state);
 }