Пример #1
0
 private static void InitializeComponents()
 {
     windowMenu = new SharpDXWindow();
     windowMenu.Caption.Text = "Overlay sample";
     windowMenu.X = 0;
     windowMenu.Panel.DynamicWidth = true;
     windowMenu.Panel.Width = 200;
     windowMenu.Panel.Height = 200;
     InitPanel(ref panelContent);
     InitLabel(ref label,"EXAMPLE",true,200);
     InitCheckBox(ref checkBox,"Checkbox","lel",true);
     InitTrackBar(ref track,"Trackbar","");
     panelContent.AddChildControl(label);
     panelContent.InsertSpacer();
     panelContent.AddChildControl(checkBox);
     panelContent.InsertSpacer();
     panelContent.AddChildControl(track);
     windowMenu.Panel.AddChildControl(panelContent);
 }
Пример #2
0
        private static void InitializeComponent()
        {
            pnlPanel = new SharpDXPanel();
            pnlPanel.X = 2;
            pnlPanel.Y = 2;

            lblCaption = new SharpDXLabel();
            lblCaption.Text = "SteamMonsterGame";
            lblDescription = new SharpDXLabel();
            lblDescription.Text = "A sample of ExternalUtilsCSharp";

            btnToggleMenu = new SharpDXButton();
            btnToggleMenu.Text = "Toggle configuration-window";
            btnToggleMenu.MouseClickEventUp += btnToggleMenu_MouseClickEventUp;

            wndWindow = new SharpDXWindow();
            wndWindow.Text = "Configuration";
            wndWindow.Width = 400;
            wndWindow.Height = 200;
            wndWindow.X = 500;
            wndWindow.Y = 500;
            wndWindow.Visible = false;

            lblAutomation = new SharpDXLabel();
            lblAutomation.Text = "~ Automation ~";
            lblAutomation.FixedWidth = true;
            lblAutomation.Width = 150;
            lblAutomation.TextAlign = SharpDXLabel.TextAlignment.Center;
            chbAutoClicker = new SharpDXCheckBox();
            chbAutoClicker.Text = "[INS] Auto clicker";
            chbMoveMouse = new SharpDXCheckBox();
            chbMoveMouse.Text = "[DEL] Move mouse";
            rdbUsePost = new SharpDXRadioButton();
            rdbUsePost.Text = "[Use PostMessage]";
            rdbUsePost.Checked = true;
            rdbUseSend = new SharpDXRadioButton();
            rdbUseSend.Text = "[Use SendMessage]";
            rdbUseSend.Checked = false;

            lblVisuals = new SharpDXLabel();
            lblVisuals.Text = "~ Visuals ~";
            lblVisuals.FixedWidth = true;
            lblVisuals.Width = 150;
            lblVisuals.TextAlign = SharpDXLabel.TextAlignment.Center;
            chbVisDrawClicker = new SharpDXCheckBox();
            chbVisDrawClicker.Text = "Draw auto-clicker";
            lblPerformance = new SharpDXLabel();
            lblPerformance.Text = "~ Performance ~";
            lblPerformance.FixedWidth = true;
            lblPerformance.Width = 150;
            lblPerformance.TextAlign = SharpDXLabel.TextAlignment.Center;
            lblFpsLogic = new SharpDXLabel();
            lblFpsLogic.Text = "FPS logic: 0";
            pgbFpsLogic = new SharpDXProgressBar();
            pgbFpsLogic.Maximum = 60;
            lblFpsLogicAverage = new SharpDXLabel();
            lblFpsLogicAverage.Text = "Average FPS: 0 (0 ticks total)";
            lblFpsDraw = new SharpDXLabel();
            lblFpsDraw.Text = "FPS logic: 0";
            pgbFpsDraw = new SharpDXProgressBar();
            pgbFpsDraw.Maximum = 60;
            lblFpsDrawAverage = new SharpDXLabel();
            lblFpsDrawAverage.Text = "Average FPS: 0 (0 ticks total)";

            clkWindow = new ClickerWindow();
            clkWindow.X = 500;
            clkWindow.Y = 500;
            clkWindow.Width = 500;
            clkWindow.Height = 500;
        }
Пример #3
0
        private static void InitializeComponents()
        {
            PrintInfo("> Initializing controls");

            cursor = new SharpDXCursor();

            windowGraphs = new SharpDXWindow();
            windowGraphs.Caption.Text = "Performance";

            graphMemRead = new SharpDXGraph();
            graphMemRead.DynamicMaximum = true;
            graphMemRead.Width = 256;
            graphMemRead.Height = 48;
            graphMemRead.Text = "RPM data/s";
            graphMemWrite = new SharpDXGraph();
            graphMemWrite.DynamicMaximum = true;
            graphMemWrite.Width = 256;
            graphMemWrite.Height = 48;
            graphMemWrite.Text = "WPM data/s";

            windowGraphs.Panel.AddChildControl(graphMemRead);
            windowGraphs.Panel.AddChildControl(graphMemWrite);

            windowMenu = new SharpDXWindow();
            windowMenu.Caption.Text = "[CSGO] Multihack";
            windowMenu.X = 500;
            windowMenu.Panel.DynamicWidth = false;
            windowMenu.Panel.Width = 200;

            InitLabel(ref labelHotkeys, "[INS] Toggle mouse\n[DEL] Terminate hack", false, 150, SharpDXLabel.TextAlignment.Center);

            InitLabel(ref labelBoxESPCaption, "~~~ ESP ~~~", true, 150, SharpDXLabel.TextAlignment.Center);
            InitPanel(ref panelESPContent, false, true, true, true);
            InitToggleButton(ref buttonESPToggle, "[Toggle ESP-menu]", panelESPContent);
            InitCheckBox(ref checkBoxESPEnabled, "Enabled", "espEnabled", true);
            InitCheckBox(ref checkBoxESPBox, "Draw box", "espBox", false);
            InitCheckBox(ref checkBoxESPSkeleton, "Draw skeleton", "espSkeleton", true);
            InitCheckBox(ref checkBoxESPName, "Draw name", "espName", false);
            InitCheckBox(ref checkBoxESPHealth, "Draw health", "espHealth", true);

            InitLabel(ref labelBoxAimCaption, "~~~ Aim ~~~", true, 150, SharpDXLabel.TextAlignment.Center);
            InitPanel(ref panelAimContent, false, true, true, true);
            InitToggleButton(ref buttonAimToggle, "[Toggle aim-menu]", panelAimContent);
            InitCheckBox(ref checkBoxAimEnabled, "Enabled", "aimEnabled", true);
            InitButtonKey(ref keyAimKey, "Key", "aimKey");
            InitTrackBar(ref trackBarAimFov, "Aimbot FOV", "aimFov", 1, 180, 20, 0);
            InitRadioButton(ref radioAimHold, "Mode: Hold key", "aimHold", true);
            InitRadioButton(ref radioAimToggle, "Mode: Toggle", "aimToggle", false);
            InitCheckBox(ref checkBoxAimSmoothEnaled, "Smoothing", "aimSmoothEnabled", true);
            InitTrackBar(ref trackBarAimSmoothValue, "Smooth-factor", "aimSmoothValue", 0, 1, 0.2f, 4);
            InitCheckBox(ref checkBoxAimFilterSpotted, "Filter: Spotted by me", "aimFilterSpotted", false);
            InitCheckBox(ref checkBoxAimFilterSpottedBy, "Filter: Spotted me", "aimFilterSpottedBy", false);
            InitCheckBox(ref checkBoxAimFilterEnemies, "Filter: Enemies", "aimFilterEnemies", true);
            InitCheckBox(ref checkBoxAimFilterAllies, "Filter: Allies", "aimFilterAllies", false);

            InitLabel(ref labelBoxRCSCaption, "~~~ RCS ~~~", true, 150, SharpDXLabel.TextAlignment.Center);
            InitPanel(ref panelRCSContent, false, true, true, true);
            InitToggleButton(ref buttonRCSToggle, "[Toggle RCS-menu]", panelRCSContent);
            InitCheckBox(ref checkBoxRCSEnabled, "Enabled", "rcsEnabled", true);
            InitTrackBar(ref trackBarRCSForce, "Force (%)", "rcsForce", 1, 100, 100, 2);

            windowMenu.Panel.AddChildControl(labelHotkeys);
            windowMenu.Panel.AddChildControl(buttonESPToggle);
            windowMenu.Panel.AddChildControl(panelESPContent);
            windowMenu.Panel.AddChildControl(buttonAimToggle);
            windowMenu.Panel.AddChildControl(panelAimContent);
            windowMenu.Panel.AddChildControl(buttonRCSToggle);
            windowMenu.Panel.AddChildControl(panelRCSContent);

            panelESPContent.AddChildControl(labelBoxESPCaption);
            panelESPContent.AddChildControl(checkBoxESPEnabled);
            panelESPContent.AddChildControl(checkBoxESPBox);
            panelESPContent.AddChildControl(checkBoxESPSkeleton);
            panelESPContent.AddChildControl(checkBoxESPName);
            panelESPContent.AddChildControl(checkBoxESPHealth);

            panelAimContent.AddChildControl(labelBoxAimCaption);
            panelAimContent.AddChildControl(checkBoxAimEnabled);
            panelAimContent.AddChildControl(keyAimKey);
            panelAimContent.AddChildControl(trackBarAimFov);
            panelAimContent.AddChildControl(radioAimHold);
            panelAimContent.AddChildControl(radioAimToggle);
            panelAimContent.AddChildControl(checkBoxAimSmoothEnaled);
            panelAimContent.AddChildControl(trackBarAimSmoothValue);
            panelAimContent.AddChildControl(checkBoxAimFilterSpotted);
            panelAimContent.AddChildControl(checkBoxAimFilterSpottedBy);
            panelAimContent.AddChildControl(checkBoxAimFilterEnemies);
            panelAimContent.AddChildControl(checkBoxAimFilterAllies);

            panelRCSContent.AddChildControl(labelBoxRCSCaption);
            panelRCSContent.AddChildControl(checkBoxRCSEnabled);
            panelRCSContent.AddChildControl(trackBarRCSForce);

            windowSpectators = new SharpDXWindow();
            windowSpectators.Caption.Text = "Spectators";
            windowSpectators.Y = 500;
            InitLabel(ref labelSpectators, "<none>", false, 200f, SharpDXLabel.TextAlignment.Left);
            windowSpectators.Panel.AddChildControl(labelSpectators);

            ctrlRadar = new PlayerRadar();
            ctrlRadar.Width = 128;
            ctrlRadar.Height = 128;
            ctrlRadar.Scaling = 0.02f;
            ctrlRadar.DotRadius = 2f;
            ctrlRadar.Rotating = true;

            ctrlPlayerESP = new PlayerESP[64];
            for (int i = 0; i < ctrlPlayerESP.Length;i++)
            {
                ctrlPlayerESP[i] = new PlayerESP();
                ctrlPlayerESP[i].Visible = false;
            }
        }