Exemple #1
0
        public void GameHooks_Update(GameTime gameTime)
        {
            if (Game.IsActive && helper != null)
            {
                if (InputManager.IsKeyDown(Keys.F1))
                {
                    helper.TeleportToLastPlayer();
                }
                else if (InputManager.IsKeyDown(Keys.F2))
                {
                    helper.TeleportToLastLocation();
                }
                else if (InputManager.IsKeyPressed(Keys.F3))
                {
                    helper.TeleportToCursor();
                }
                else if (InputManager.IsKeyPressed(Keys.F4))
                {
                    if (teleportForm == null || teleportForm.IsDisposed)
                    {
                        teleportForm = new TeleportForm(helper);
                    }

                    UpdateForm();
                    teleportForm.Show();
                    teleportForm.BringToFront();
                }
            }
        }
Exemple #2
0
        public void GameHooks_Update(GameTime gameTime)
        {
            if (Game.IsActive && helper != null)
            {
                if (InputManager.IsKeyDown(Keys.F1))
                {
                    helper.TeleportToLastPlayer();
                }
                else if (InputManager.IsKeyDown(Keys.F2))
                {
                    helper.TeleportToLastLocation();
                }
                else if (InputManager.IsKeyPressed(Keys.F3))
                {
                    helper.TeleportToCursor();
                }
                else if (InputManager.IsKeyPressed(Keys.F4))
                {
                    if (teleportForm == null || teleportForm.IsDisposed)
                    {
                        teleportForm = new TeleportForm(helper);
                    }

                    UpdateForm();
                    teleportForm.Show();
                    teleportForm.BringToFront();
                }
            }
        }