public void createMyExternalTool() { AdjustSettings changeGame = new AdjustSettings(); while(changeGame.Enabled == true) { changeGame.ShowDialog(); //changeGame.Focus(); //changeGame.Update(); //changeGame.Invoke(changeGame.Update); } }
public void createMyExternalTool() { AdjustSettings changeGame = new AdjustSettings(); while (changeGame.Enabled == true) { changeGame.ShowDialog(); //changeGame.Focus(); //changeGame.Update(); //changeGame.Invoke(changeGame.Update); } }
public void checkButton() { MouseState newState = Mouse.GetState(); if (newState.LeftButton == ButtonState.Pressed && oldState.LeftButton == ButtonState.Released) { //checks if click is within boundaries of the button if ((newState.X >= ((Vars.screenWidth * 78) / 100) && newState.X <= (Vars.screenWidth) && (newState.Y >= ((Vars.screenHeight * 78) / 100) && newState.Y <= Vars.screenHeight))) { this.clicked = true; } else if ((newState.X >= ((Vars.screenWidth * 0) / 100) && newState.X <= (Vars.screenWidth * 22) / 100 && newState.Y >= ((Vars.screenHeight * 78) / 100) && newState.Y <= (Vars.screenHeight))) { AdjustSettings changeGame = new AdjustSettings(); changeGame.ShowDialog(); //Thread myThread = new Thread(new ThreadStart(this.createMyExternalTool)); //myThread.Start(); } } oldState = newState; }