예제 #1
0
        public void createMyExternalTool()
        {
            AdjustSettings changeGame = new AdjustSettings();
            while(changeGame.Enabled == true)
            {
                changeGame.ShowDialog();
                //changeGame.Focus();
                //changeGame.Update();

                //changeGame.Invoke(changeGame.Update);
            }
        }
예제 #2
0
        public void createMyExternalTool()
        {
            AdjustSettings changeGame = new AdjustSettings();

            while (changeGame.Enabled == true)
            {
                changeGame.ShowDialog();
                //changeGame.Focus();
                //changeGame.Update();

                //changeGame.Invoke(changeGame.Update);
            }
        }
예제 #3
0
        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;
        }
예제 #4
0
        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;
        }