private void TerrariaHooks_Update(GameTime gameTime) { if (Game.IsActive) { if (InputManager.IsKeyPressed(Keys.F8)) { if (textureform == null || textureform.IsDisposed) { textureform = new TextureForm(Game.GraphicsDevice); } textureform.Show(); textureform.BringToFront(); } } }