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); }
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 = "[UC|CSGO] Zat's Multihack v3"; windowMenu.X = 500; windowMenu.Panel.DynamicWidth = true; InitLabel(ref labelHotkeys, "[INS] Toggle mouse [HOME] Toggle menu\n[DEL] Terminate hack", false, 150, SharpDXLabel.TextAlignment.Center); tabsMenu = new SharpDXTabControl(); tabsMenu.FillParent = false; InitPanel(ref panelESPContent, "ESP", false, true, true, false); panelESPContent.ContentLayout = new TableLayout(2); 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); InitCheckBox(ref checkBoxESPAllies, "Filter: Draw allies", "espAllies", true); InitCheckBox(ref checkBoxESPEnemies, "Filter: Draw enemies", "espEnemies", true); InitPanel(ref panelAimContent, "Aim", false, true, true, false); panelAimContent.ContentLayout = TableLayout.TwoColumns; InitCheckBox(ref checkBoxAimEnabled, "Enabled", "aimEnabled", true); InitCheckBox(ref checkBoxAimDrawFov, "Draw fov", "aimDrawFov", 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); InitComboValue(ref comboValueAimBone, "Bone", "aimBone", new Tuple <string, int>("Neck", 10), new Tuple <string, int>("Chest", 4), new Tuple <string, int>("Hips", 1)); InitPanel(ref panelRCSContent, "RCS", false, true, true, false); InitCheckBox(ref checkBoxRCSEnabled, "Enabled", "rcsEnabled", true); InitTrackBar(ref trackBarRCSForce, "Force (%)", "rcsForce", 1, 100, 100, 2); InitPanel(ref panelTriggerContent, "Trigger", false, true, true, false); panelTriggerContent.ContentLayout = TableLayout.TwoColumns; InitCheckBox(ref checkBoxTriggerEnabled, "Enabled", "triggerEnabled", true); InitButtonKey(ref keyTriggerKey, "Key", "triggerKey"); InitTrackBar(ref trackBarTriggerDelayFirstShot, "Delay (ms, first shot)", "triggerDelayFirstShot", 1, 1000, 30, 0); InitTrackBar(ref trackBarTriggerDelayShots, "Delay (ms)", "triggerDelayShots", 1, 1000, 30, 0); InitRadioButton(ref radioTriggerHold, "Mode: Hold key", "triggerHold", true); InitRadioButton(ref radioTriggerToggle, "Mode: Toggle", "triggerToggle", false); InitCheckBox(ref checkBoxTriggerFilterEnemies, "Filter: Enemies", "triggerFilterEnemies", true); InitCheckBox(ref checkBoxTriggerFilterAllies, "Filter: Allies", "triggerFilterAllies", false); InitCheckBox(ref checkBoxTriggerBurstEnabled, "Burst enabled", "triggerBurstEnabled", true); InitCheckBox(ref checkBoxTriggerBurstRandomize, "Burst randomization", "triggerBurstRandomize", true); InitTrackBar(ref trackBarTriggerBurstShots, "No. of burst-fire shots", "triggerBurstShots", 1, 10, 3, 0); InitPanel(ref panelRadarContent, "Radar", false, true, true, false); panelRadarContent.ContentLayout = TableLayout.ThreeColumns; InitCheckBox(ref checkBoxRadarEnabled, "Enabled", "radarEnabled", true); InitCheckBox(ref checkBoxRadarAllies, "Filter: Draw allies", "radarAllies", true); InitCheckBox(ref checkBoxRadarEnemies, "Filter: Draw enemies", "radarEnemies", true); InitTrackBar(ref trackBarRadarScale, "Scale", "radarScale", 0, 0.25f, 0.02f, 4); InitTrackBar(ref trackBarRadarWidth, "Width (px)", "radarWidth", 16, 1024, 256, 0); InitTrackBar(ref trackBarRadarHeight, "Height (px)", "radarHeight", 16, 1024, 256, 0); InitPanel(ref panelCrosshairContent, "Crosshair", false, true, true, false); panelCrosshairContent.ContentLayout = TableLayout.TwoColumns; InitCheckBox(ref checkBoxCrosshairEnabled, "Enabled", "crosshairEnabled", true); InitTrackBar(ref trackBarCrosshairRadius, "Radius (px)", "crosshairRadius", 1, 128, 16f, 1); InitTrackBar(ref trackBarCrosshairWidth, "Width (px)", "crosshairWidth", 0.1f, 32f, 1f, 1); InitTrackBar(ref trackBarCrosshairSpreadScale, "Spread-scale", "crosshairSpreadScale", 0.01f, 1f, 1f, 2); InitCheckBox(ref checkBoxCrosshairOutline, "Outline", "crosshairOutline", true); InitComboValue(ref comboValueCrosshairType, "Type", "crosshairType", new Tuple <string, int>("Default", 0), new Tuple <string, int>("Default tilted", 1), new Tuple <string, int>("Rectangle", 2), new Tuple <string, int>("Rectangle tilted", 3), new Tuple <string, int>("Circle", 4)); InitColorControl(ref colorControlCrosshairPrimary, "Primary color", "crosshairPrimaryColor", new Color(255, 255, 255, 255)); InitColorControl(ref colorControlCrosshairSecondary, "Secondary color", "crosshairSecondaryColor", new Color(255, 255, 255, 255)); InitPanel(ref panelWindows, "Windows", true, true, true, true); InitCheckBox(ref checkBoxGraphsEnabled, "Performance-window enabled", "windowPerformanceEnabled", true); InitCheckBox(ref checkBoxSpectatorsEnabled, "Spectators-window enabled", "windowSpectatorsEnabled", true); InitCheckBox(ref checkBoxBotsEnabled, "Bots-window enabled", "windowBotsEnabled", true); InitCheckBox(ref checkBoxEnemiesEnabled, "Enemies-info enaled", "windowEnemiesEnabled", true); tabsMenu.AddChildControl(panelAimContent); tabsMenu.AddChildControl(panelESPContent); tabsMenu.AddChildControl(panelRadarContent); tabsMenu.AddChildControl(panelRCSContent); tabsMenu.AddChildControl(panelTriggerContent); tabsMenu.AddChildControl(panelCrosshairContent); tabsMenu.AddChildControl(panelWindows); windowMenu.Panel.AddChildControl(labelHotkeys); windowMenu.Panel.AddChildControl(tabsMenu); panelESPContent.AddChildControl(checkBoxESPEnabled); panelESPContent.AddChildControl(checkBoxESPBox); panelESPContent.AddChildControl(checkBoxESPSkeleton); panelESPContent.AddChildControl(checkBoxESPName); panelESPContent.AddChildControl(checkBoxESPHealth); panelESPContent.AddChildControl(checkBoxESPAllies); panelESPContent.AddChildControl(checkBoxESPEnemies); panelAimContent.AddChildControl(checkBoxAimEnabled); panelAimContent.AddChildControl(checkBoxAimSmoothEnaled); panelAimContent.AddChildControl(trackBarAimFov); panelAimContent.AddChildControl(trackBarAimSmoothValue); panelAimContent.AddChildControl(radioAimHold); panelAimContent.AddChildControl(radioAimToggle); panelAimContent.AddChildControl(checkBoxAimFilterSpotted); panelAimContent.AddChildControl(checkBoxAimFilterSpottedBy); panelAimContent.AddChildControl(checkBoxAimFilterEnemies); panelAimContent.AddChildControl(checkBoxAimFilterAllies); panelAimContent.AddChildControl(checkBoxAimDrawFov); panelAimContent.AddChildControl(comboValueAimBone); panelAimContent.AddChildControl(keyAimKey); panelRCSContent.AddChildControl(checkBoxRCSEnabled); panelRCSContent.AddChildControl(trackBarRCSForce); panelTriggerContent.AddChildControl(checkBoxTriggerEnabled); panelTriggerContent.AddChildControl(keyTriggerKey); panelTriggerContent.AddChildControl(trackBarTriggerDelayFirstShot); panelTriggerContent.AddChildControl(trackBarTriggerDelayShots); panelTriggerContent.AddChildControl(radioTriggerHold); panelTriggerContent.AddChildControl(radioTriggerToggle); panelTriggerContent.AddChildControl(checkBoxTriggerFilterEnemies); panelTriggerContent.AddChildControl(checkBoxTriggerFilterAllies); panelTriggerContent.AddChildControl(checkBoxTriggerBurstEnabled); panelTriggerContent.AddChildControl(checkBoxTriggerBurstRandomize); panelTriggerContent.AddChildControl(trackBarTriggerBurstShots); panelRadarContent.AddChildControl(checkBoxRadarEnabled); panelRadarContent.AddChildControl(checkBoxRadarAllies); panelRadarContent.AddChildControl(checkBoxRadarEnemies); panelRadarContent.AddChildControl(trackBarRadarScale); panelRadarContent.AddChildControl(trackBarRadarWidth); panelRadarContent.AddChildControl(trackBarRadarHeight); panelCrosshairContent.AddChildControl(checkBoxCrosshairEnabled); panelCrosshairContent.AddChildControl(checkBoxCrosshairOutline); panelCrosshairContent.AddChildControl(trackBarCrosshairRadius); panelCrosshairContent.AddChildControl(trackBarCrosshairWidth); panelCrosshairContent.AddChildControl(trackBarCrosshairSpreadScale); panelCrosshairContent.AddChildControl(comboValueCrosshairType); panelCrosshairContent.AddChildControl(colorControlCrosshairPrimary); panelCrosshairContent.AddChildControl(colorControlCrosshairSecondary); panelWindows.AddChildControl(checkBoxGraphsEnabled); panelWindows.AddChildControl(checkBoxSpectatorsEnabled); panelWindows.AddChildControl(checkBoxBotsEnabled); panelWindows.AddChildControl(checkBoxEnemiesEnabled); windowSpectators = new SharpDXWindow(); windowSpectators.Caption.Text = "Spectators"; windowSpectators.Y = 500; InitLabel(ref labelSpectators, "<none>", false, 200f, SharpDXLabel.TextAlignment.Left); windowSpectators.Panel.AddChildControl(labelSpectators); windowBots = new SharpDXWindow(); windowBots.Caption.Text = "Bot-status"; windowBots.Y = 300; InitLabel(ref labelAimbot, "Aimbot: -", false, 200f, SharpDXLabel.TextAlignment.Left); InitLabel(ref labelTriggerbot, "Triggerbot: -", false, 200f, SharpDXLabel.TextAlignment.Left); windowBots.Panel.AddChildControl(labelAimbot); windowBots.Panel.AddChildControl(labelTriggerbot); 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; } ctrlCrosshair = new Crosshair(); ctrlCrosshair.Radius = 16f; ctrlCrosshair.Width = 2f; }