Пример #1
0
        private void handleInput()
        {
            Direct2DRenderer pDevice = overlay.Graphics;

            if (justToggled)
            {
                if (mousePos.X > 5 + Xshift && mousePos.X < 175 + Xshift)
                {
                    if (mousePos.Y > 5 + Yshift && mousePos.Y < 25 + Yshift)
                    {
                        move = true;

                        Xoffset = mousePos.X - Xshift;
                        Yoffset = mousePos.Y - Yshift;
                    }
                }
                if (mousePos.X > 15 + Xshift && mousePos.X < 30 + Xshift)
                {
                    if (mousePos.Y > 50 + Yshift && mousePos.Y < 65 + Yshift)
                    {
                        Master.ToggleEnabled();
                    }
                }
                if (mousePos.X > 15 + Xshift && mousePos.X < 30 + Xshift)
                {
                    if (mousePos.Y > 70 + Yshift && mousePos.Y < 85 + Yshift)
                    {
                        Master.ToggleMode();
                    }
                }
                if (mousePos.X > 15 + Xshift && mousePos.X < 30 + Xshift)
                {
                    if (mousePos.Y > 90 + Yshift && mousePos.Y < 105 + Yshift)
                    {
                        Master.ToggleEsp();
                    }
                }
                if (mousePos.X > 15 + Xshift && mousePos.X < 30 + Xshift)
                {
                    if (mousePos.Y > 110 + Yshift && mousePos.Y < 125 + Yshift)
                    {
                        Master.ToggleBHop();
                    }
                }

                Yshift += 25;

                if (distance(mousePos.X, mousePos.Y, 22 + Xshift, 117 + Yshift) <= 8)
                {
                    Master.SetDelay(0);
                }
                if (distance(mousePos.X, mousePos.Y, 22 + Xshift, 137 + Yshift) <= 8)
                {
                    Master.SetDelay(20);
                }
                if (distance(mousePos.X, mousePos.Y, 22 + Xshift, 157 + Yshift) <= 8)
                {
                    Master.SetDelay(80);
                }

                Yshift -= 25;
            }
            if (move)
            {
                if (mouseDown)
                {
                    Xshift = mousePos.X - Xoffset;
                    Yshift = mousePos.Y - Yoffset;
                }
                else
                {
                    move = false;
                }
            }
        }