public override void KeyPressHandle(Key k) { switch (k) { case Key.Select: InfoBar.Instance.Visible = !InfoBar.Instance.Visible; break; case Key.Square: _holdingSquare = true; break; case Key.Triangle: if (_control != null) { _turnQueue.Enqueue(_control); ClearControl(); } break; default: break; } if (_control != null) Screen.Control.ControlHandle(k); }
public override void KeyReleaseHandle(Key k) { switch (k) { case Key.Square: _holdingSquare = false; break; default: break; } }
public override void KeyPressHandle(Key k) { switch (k) { case Key.Left: _movingLeft = true; break; case Key.Right: _movingRight = true; break; case Key.Up: _movingUp = true; break; case Key.Down: _movingDown = true; break; } }
public override void KeyReleaseHandle(Key k) { switch (k) { case Key.Left: _movingLeft = false; break; case Key.Right: _movingRight = false; break; case Key.Up: _movingUp = false; break; case Key.Down: _movingDown = false; break; } }
public override void KeyReleaseHandle(Key k) { }
public override void KeyPressHandle(Key k) { }
public override void KeyPressHandle(Key k) { if (k == Key.Start) { if (!Paused) { Paused = true; if (ActiveAbility != null) { ActiveAbility.ActionTimer.Pause(); } foreach (BattleIcon icon in _battleIcons) { icon.AnimationTimer.Pause(); } Party.Clock.Pause(); CombatantClocks.PauseAllClocks(); } else { CombatantClocks.UnpauseAllClocks(); Party.Clock.Unpause(); foreach (BattleIcon icon in _battleIcons) { icon.AnimationTimer.Unpause(); } if (ActiveAbility != null) { ActiveAbility.ActionTimer.Unpause(); } Paused = false; } } if (!Paused) { switch (k) { case Key.Select: Screen.InfoBar.Visible = !Screen.InfoBar.Visible; break; case Key.Square: _holdingSquare = true; break; case Key.Triangle: if (Commanding != null) { _turnQueue.Enqueue(Commanding); ClearControl(); } break; default: break; } } if (Commanding != null && !Victory) { Screen.Control.ControlHandle(k); } }