コード例 #1
0
 public Radar(CSGOTheme theme, TextFormat font, float resolution) : base(theme, font) {
     this.Width = 256f;
     this.Height = 256f;
     this.dotSize = 6f;
     this.viewX = 24f;
     this.viewY = 48f;
 }
コード例 #2
0
 public Radar(CSGOTheme theme, TextFormat font, float resolution) : base(theme, font)
 {
     this.Width   = 256f;
     this.Height  = 256f;
     this.dotSize = 6f;
     this.viewX   = 24f;
     this.viewY   = 48f;
 }
コード例 #3
0
 public CSGOControl(CSGOTheme theme, TextFormat font, float x, float y, float width, float height, bool visible, bool enabled)
     : base(theme, font, x, y, width, height, visible, enabled) { }
コード例 #4
0
 public ESP(CSGOTheme theme, TextFormat font)
     : base(theme, font)
 {
     once = true;
 }
コード例 #5
0
 public Crosshair(CSGOTheme theme, TextFormat font) : base(theme, font)
 {
 }
コード例 #6
0
 public Crosshair(CSGOTheme theme, TextFormat font) : base(theme, font) { }
コード例 #7
0
        protected override void OnInitDevice()
        {
            lastTick = DateTime.Now.Ticks;
            //Fonts
            FactoryManager.CreateFont("miniSegoe", "Segoe UI", 8.0f);
            FactoryManager.CreateFont("tinySegoe", "Segoe UI", 10.0f);
            FactoryManager.CreateFont("smallSegoe", "Segoe UI", 12.0f);
            FactoryManager.CreateFont("largeSegoe", "Segoe UI", 18.0f);
            fontMini = FactoryManager.GetFont("miniSegoe");
            fontTiny = FactoryManager.GetFont("tinySegoe");
            fontSmall = FactoryManager.GetFont("smallSegoe");
            fontLarge = FactoryManager.GetFont("largeSegoe");

            //Themes
            themeCSGO = new CSGOTheme(foreColor, panelBackColorDark, foreColor, Color.Transparent, 2f, 2f, colorCT, colorT, lifeBarForeground, panelBackColorDark, viewColor, viewColorOutline, lineColor);
            pbthemeGreenToRed = new ProgressBarTheme(foreColor, panelBackColorDark, foreColor, Color.Transparent, 2f, 2f, lifeBarForeground, colorT);
            pbthemeRedToGreen = new ProgressBarTheme(foreColor, panelBackColorDark, foreColor, Color.Transparent, 2f, 2f, colorT, lifeBarForeground);
            pbthemeGreen = new ProgressBarTheme(foreColor, panelBackColorDark, foreColor, Color.Transparent, 2f, 2f, lifeBarForeground);

            themeBasic = new Theme(foreColor, panelBackColorDark, foreColor, Color.Transparent, 0f, 0f);
            //themeBasic = new Theme(foreColor * 0.9f, panelBackColorDark * 0.9f, foreColor * 0.9f, Color.Transparent, 0f, 0f);
            themeItemSelected = new Theme(foreColor * 1.1f, panelBackColorDark * 1.1f, foreColor * 1.1f, Color.Transparent, 0f, 0f);
            /* 
             * ForeColor: BarLow
             * BackColor: Background
             * BorderColor: Border & Font
             * ShadowColor: BarHigh
             */

            //Controls
            #region CUSTOM CONTROLS
            themeGreenToRed = new Theme(lifeBarForeground, panelBackColorDark, foreColor, colorT, 0f, 0f);
            themeGreen = new Theme(lifeBarForeground, panelBackColorDark, foreColor, lifeBarForeground, 0f, 0f);

            ctrlRadar = new Radar(themeCSGO, fontSmall, 20f);
            ctrlRadar.SetPosition(4f, 4f);
            ctrlRadar.Width = 128f;
            ctrlRadar.Height = 128f;
            ctrlEsp = new ESP(themeCSGO, fontSmall);
            ctrlCrosshair = new Crosshair(themeCSGO, fontSmall);
            ctrlPlayerInformation = new PlayerInformation(
                themeCSGO,
                pbthemeGreen,
                pbthemeRedToGreen,
                pbthemeGreenToRed,
                fontSmall,
                fontTiny,
                ctrlRadar.X + ctrlRadar.Width + 4f, 
                4f, 
                256f, 
                22f
            );
            ctrlStatsKills = new KillsStats(themeBasic, fontTiny, 0, 0, 256f, 128);
            ctrlStatsDeaths = new DeathsStats(themeBasic, fontTiny, 0, 0, 256f, 128);
            ctrlStatsScore = new ScoreStats(themeBasic, fontTiny, 0, 0, 256f, 128);
            ctrlStatsKD = new KDStats(themeBasic, fontTiny, 0, 0, 256f, 128);
            #endregion

            #region MENUS
            //Menus
            aimMenu = new Menu(themeBasic, themeItemSelected, themeBasic, fontSmall, fontLarge, 0, 0, 256, 256, "[Aimbot]", 4f, 4f, 4f);
            crosshairMenu = new Menu(themeBasic, themeItemSelected, themeBasic, fontSmall, fontLarge, 0, 0, 256, 256, "[Crosshair]", 4f, 4f, 4f);
            currentConfig = new Label(themeBasic, fontSmall, 0, 0, 256, 12, "Current config: -");
            espMenu = new Menu(themeBasic, themeItemSelected, themeBasic, fontSmall, fontLarge, 0, 0, 256, 256, "[ESP]", 4f, 4f, 4f);
            espGlowMenu = new Menu(themeBasic, themeItemSelected, themeBasic, fontSmall, fontLarge, 0, 0, 256, 256, "[Outline-glow]", 4f, 4f, 4f);
            highlightPlayerMenu = new Menu(themeBasic, themeItemSelected, themeBasic, fontSmall, fontLarge, 0, 0, 256, 256, "[Highlight players]", 4f, 4f, 4f);
            mainMenu = new Menu(themeBasic, themeItemSelected, themeBasic, fontSmall, fontLarge, 4, ctrlRadar.Y + ctrlRadar.Height + 4f, 256, 100, @"[¯\_(ツ)_/¯] Zat's leaked", 4f, 4f, 4f, true);
            miscMenu = new Menu(themeBasic, themeItemSelected, themeBasic, fontSmall, fontLarge, 0, 0, 256, 256, "[Misc]", 4f, 4f, 4f);
            radarMenu = new Menu(themeBasic, themeItemSelected, themeBasic, fontSmall, fontLarge, 0, 0, 256, 256, "[Radar]", 4f, 4f, 4f);
            rcsMenu = new Menu(themeBasic, themeItemSelected, themeBasic, fontSmall, fontLarge, 0, 0, 256, 256, "[Recoil-Control]", 4f, 4f, 4f);
            settingsMenu = new Menu(themeBasic, themeItemSelected, themeBasic, fontSmall, fontLarge, 0, 0, 256, 256, "[Settings]", 4f, 4f, 4f);
            soundEspMenu = new Menu(themeBasic, themeItemSelected, themeBasic, fontSmall, fontLarge, 0, 0, 256, 256, "[SoundESP]", 4f, 4f, 4f);
            spectatorMenu = new Menu(themeBasic, themeItemSelected, themeBasic, fontSmall, fontLarge, 0, 0, 256, 256, "[Spectator]", 4f, 4f, 4f);
            statsMenu = new Menu(themeBasic, themeItemSelected, themeBasic, fontSmall, fontLarge, 0, 0, 512, 256, "[Statistics]", 4f, 4f, 4f);
            triggerMenu = new Menu(themeBasic, themeItemSelected, themeBasic, fontSmall, fontLarge, 0, 0, 256, 256, "[Triggerbot]", 4f, 4f, 4f);
            wireframeMenu = new Menu(themeBasic, themeItemSelected, themeBasic, fontSmall, fontLarge, 0, 0, 256, 256, "[Wireframe]", 4f, 4f, 4f);
            #endregion

            mainMenu.AddChildControl(currentConfig);

            #region MENU ITEMS - INIT
            //Init menuitems
            aimAllowAimJump = new ValueMenuItem(themeBasic, fontSmall, aimMenu, "Allow \"jumping\" between targets", switchYesNo, "aimAllowAimJump");
            aimAllowAimJump.OptionChanged += yesNoValChanged;
            aimbotBone = new ValueMenuItem(themeBasic, fontSmall, aimMenu, "Bone", switchAimBones, "aimbotBone");
            aimbotBone.OptionChanged += aimBoneValChanged;
            aimbotCompensateRecoil = new ValueMenuItem(themeBasic, fontSmall, aimMenu, "Compensate recoil (override)", switchOnOff, "aimbotCompensateRecoil");
            aimbotCompensateRecoil.OptionChanged += onOffValChanged;
            aimbotEnabled = new ValueMenuItem(themeBasic, fontSmall, aimMenu, "Enabled", switchYesNo, "aimbotEnabled");
            aimbotEnabled.OptionChanged += yesNoValChanged;
            aimbotKey = new KeyMenuItem(themeBasic, fontSmall, aimMenu, "Key", System.Windows.Forms.Keys.MButton, "aimbotKey");
            aimbotKey.OptionChanged += keyValChanged;
            aimbotMethod = new ValueMenuItem(themeBasic, fontSmall, aimMenu, "Method", switchAimMethods, "aimbotMethod");
            aimbotMethod.OptionChanged += aimMethodValChanged;
            aimbotRadius = new TrackbarMenuItem(themeBasic, fontSmall, aimMenu, "Radius (px)", trackBarAimbotRadiusMin, trackBarAimbotRadiusMax, trackBarAimbotRadiusStep, "aimbotRadius");
            aimbotRadius.ValueChanged += trackBar_ValueChanged;
            aimbotRagemode = new ValueMenuItem(themeBasic, fontSmall, aimMenu, "Rage mode", switchOnOff, "aimbotRagemode");
            aimbotRagemode.OptionChanged += onOffValChanged;
            aimbotSmooth = new ValueMenuItem(themeBasic, fontSmall, aimMenu, "Smooth aim", switchOnOff, "aimbotSmooth");
            aimbotSmooth.OptionChanged += onOffValChanged;
            aimbotSpeed = new TrackbarMenuItem(themeBasic, fontSmall, aimMenu, "Speed (%)", trackBarAimbotSpeedMin, trackBarAimbotSpeedMax, trackBarAimbotSpeedStep, "aimbotSpeed");
            aimbotSpeed.ValueChanged += trackBar_ValueChanged;
            aimbotTarget = new ValueMenuItem(themeBasic, fontSmall, aimMenu, "Target", switchTargets, "aimbotTarget");
            aimbotTarget.OptionChanged += targetValChanged;
            aimSpottedOnly = new ValueMenuItem(themeBasic, fontSmall, aimMenu, "Only aim at spotted players", switchYesNo, "aimSpottedOnly");
            aimSpottedOnly.OptionChanged += yesNoValChanged;

            crosshairDrawData = new ValueMenuItem(themeBasic, fontSmall, crosshairMenu, "Draw target-data", switchOnOff, "crosshairDrawData");
            crosshairDrawData.OptionChanged += onOffValChanged;
            crosshairDrawRecoil = new ValueMenuItem(themeBasic, fontSmall, crosshairMenu, "Draw recoil", switchYesNo, "crosshairDrawRecoil");
            crosshairDrawRecoil.OptionChanged += onOffValChanged;
            crosshairDrawSoundESP = new ValueMenuItem(themeBasic, fontSmall, crosshairMenu, "Draw SoundESP", switchYesNo, "crosshairDrawSoundESP");
            crosshairDrawSoundESP.OptionChanged += yesNoValChanged;
            crosshairEnabled = new ValueMenuItem(themeBasic, fontSmall, crosshairMenu, "Enabled", switchYesNo, "crosshairEnabled");
            crosshairEnabled.OptionChanged += yesNoValChanged;

            espDrawBox = new ValueMenuItem(themeBasic, fontSmall, espMenu, "Draw box", switchOnOff, "espDrawBox");
            espDrawBox.OptionChanged += onOffValChanged;
            espDrawCircle = new ValueMenuItem(themeBasic, fontSmall, espMenu, "Draw circle", switchOnOff, "espDrawCircle");
            espDrawCircle.OptionChanged += onOffValChanged;
            espDrawDetails = new ValueMenuItem(themeBasic, fontSmall, espMenu, "Draw stats", switchOnOff, "espDrawDetails");
            espDrawDetails.OptionChanged += onOffValChanged;
            espDrawDistance = new ValueMenuItem(themeBasic, fontSmall, espMenu, "Draw distance", switchOnOff, "espDrawDistance");
            espDrawDistance.OptionChanged += onOffValChanged;
            espDrawHealth = new ValueMenuItem(themeBasic, fontSmall, espMenu, "Draw health", switchOnOff, "espDrawHealth");
            espDrawHealth.OptionChanged += onOffValChanged;
            espDrawLines = new ValueMenuItem(themeBasic, fontSmall, espMenu, "Draw lines", switchOnOff, "espDrawLines");
            espDrawLines.OptionChanged += onOffValChanged;
            espDrawName = new ValueMenuItem(themeBasic, fontSmall, espMenu, "Draw name", switchOnOff, "espDrawName");
            espDrawName.OptionChanged += onOffValChanged;
            espDrawSkeleton = new ValueMenuItem(themeBasic, fontSmall, espMenu, "Draw skeleton", switchOnOff, "espDrawSkeleton");
            espDrawSkeleton.OptionChanged += onOffValChanged;
            espDrawWeapons = new ValueMenuItem(themeBasic, fontSmall, espMenu, "Draw weapons", switchOnOff, "espDrawWeapons");
            espDrawWeapons.OptionChanged += onOffValChanged;
            espEnabled = new ValueMenuItem(themeBasic, fontSmall, espMenu, "Enabled", switchYesNo, "espEnabled");
            espEnabled.OptionChanged += yesNoValChanged;
            espTarget = new ValueMenuItem(themeBasic, fontSmall, espMenu, "Draw", switchTargets, "espDrawTarget");
            espTarget.OptionChanged += targetValChanged;

            espGlowEnabled = new ValueMenuItem(themeBasic, fontSmall, espGlowMenu, "Enabled", switchYesNo, "espGlowEnabled");
            espGlowEnabled.OptionChanged += yesNoValChanged;
            espGlowFadingEnabled = new ValueMenuItem(themeBasic, fontSmall, espGlowMenu, "Fading enabled", switchYesNo, "espGlowFadingEnabled");
            espGlowFadingEnabled.OptionChanged += yesNoValChanged;
            espGlowFadingDistance = new TrackbarMenuItem(themeBasic, fontSmall, espGlowMenu, "Fading-distance", 0f, 500f, 5f, 50f, "espGlowFadingDistance");
            espGlowFadingDistance.ValueChanged += trackBar_ValueChanged;

            miscAutoPistolEnabled = new ValueMenuItem(themeBasic, fontSmall, miscMenu, "Auto-pistol enabled", switchYesNo, "miscAutoPistolEnabled");
            miscAutoPistolEnabled.OptionChanged += yesNoValChanged;
            miscBunnyHopEnabled = new ValueMenuItem(themeBasic, fontSmall, miscMenu, "Bunnyhop enabled", switchYesNo, "miscBunnyHopEnabled");
            miscBunnyHopEnabled.OptionChanged += yesNoValChanged;
            miscInfoEnabled = new ValueMenuItem(themeBasic, fontSmall, miscMenu, "Information-panel enabled", switchYesNo, "miscInfoEnabled");
            miscInfoEnabled.OptionChanged += yesNoValChanged;
            miscNoFlash = new ValueMenuItem(themeBasic, fontSmall, miscMenu, "NoFlash enabled", switchYesNo, "miscNoFlash");
            miscNoFlash.OptionChanged += yesNoValChanged;
            miscNoSmoke = new ValueMenuItem(themeBasic, fontSmall, miscMenu, "NoSmoke enabled", switchYesNo, "miscNoSmoke");
            miscNoSmoke.OptionChanged += yesNoValChanged;

            radarDrawLines = new ValueMenuItem(themeBasic, fontSmall, radarMenu, "Draw lines", switchOnOff, "radarDrawLines");
            radarDrawLines.OptionChanged += onOffValChanged;
            radarDrawView = new ValueMenuItem(themeBasic, fontSmall, radarMenu, "Draw view", switchOnOff, "radarDrawView");
            radarDrawView.OptionChanged += onOffValChanged;
            radarEnabled = new ValueMenuItem(themeBasic, fontSmall, radarMenu, "Enabled", switchYesNo, "radarEnabled");
            radarEnabled.OptionChanged += yesNoValChanged;
            radarTarget = new ValueMenuItem(themeBasic, fontSmall, radarMenu, "Draw", switchTargets, "radarDrawTarget");
            radarTarget.OptionChanged += targetValChanged;
            radarZoom = new TrackbarMenuItem(themeBasic, fontSmall, radarMenu, "Zoom-level", trackBarRadarDistMin, trackBarRadarDistMax, trackBarRadarDistStep, "radarZoom");
            radarZoom.ValueChanged += trackBar_ValueChanged;

            rcsEnabled = new ValueMenuItem(themeBasic, fontSmall, rcsMenu, "Recoil-Control enabled", switchYesNo, "rcsEnabled");
            rcsEnabled.OptionChanged += yesNoValChanged;
            rcsForce = new TrackbarMenuItem(themeBasic, fontSmall, rcsMenu, "Force", 0f, 3f, 0.1f, 1f, "rcsForce");
            rcsForce.ValueChanged += trackBar_ValueChanged;

            soundEspEnabled = new ValueMenuItem(themeBasic, fontSmall, soundEspMenu, "SoundESP enabled", switchYesNo, "soundEspEnabled");
            soundEspEnabled.OptionChanged += yesNoValChanged;
            soundEspInterval = new TrackbarMenuItem(themeBasic, fontSmall, soundEspMenu, "Interval (ms)", 250, 5000, 50, 1000, "soundEspInterval");
            soundEspInterval.ValueChanged += trackBar_ValueChanged;
            soundEspRange = new TrackbarMenuItem(themeBasic, fontSmall, soundEspMenu, "Range", 10, 500, 10, 50, "soundEspRange");
            soundEspRange.ValueChanged += trackBar_ValueChanged;
            soundEspSound = new TrackbarMenuItem(themeBasic, fontSmall, soundEspMenu, "Sound", 1, 10, 1, 1, "soundEspSound");
            soundEspSound.ValueChanged += trackBar_ValueChanged;
            soundEspVolume = new TrackbarMenuItem(themeBasic, fontSmall, soundEspMenu, "Volume (%)", 0, 100, 5, 5, "soundEspVolume");
            soundEspVolume.ValueChanged += trackBar_ValueChanged;

            spectatorDisableAim = new ValueMenuItem(themeBasic, fontSmall, radarMenu, "Disable aimbot", switchYesNo, "spectatorDisableAim");
            spectatorDisableAim.OptionChanged += yesNoValChanged;
            spectatorDisableTrigger = new ValueMenuItem(themeBasic, fontSmall, radarMenu, "Disable triggerbot", switchYesNo, "spectatorDisableTrigger");
            spectatorDisableTrigger.OptionChanged += yesNoValChanged;
            spectatorDrawWarning = new ValueMenuItem(themeBasic, fontSmall, radarMenu, "Draw warning", switchYesNo, "spectatorDrawWarning");
            spectatorDrawWarning.OptionChanged += yesNoValChanged;

            triggerbotDelay = new TrackbarMenuItem(themeBasic, fontSmall, triggerMenu, "Delay (ms)", trackBarTriggerDelayMin, trackBarTriggerDelayMax, trackBarTriggerDelayStep, "triggerbotDelay");
            triggerbotDelay.ValueChanged += trackBar_ValueChanged;
            triggerbotEnabled = new ValueMenuItem(themeBasic, fontSmall, triggerMenu, "Enabled", switchYesNo, "triggerbotEnabled");
            triggerbotEnabled.OptionChanged += yesNoValChanged;
            triggerbotRecoilThreshold = new TrackbarMenuItem(themeBasic, fontSmall, triggerMenu, "max Recoil (%)", trackBarTriggerRecoilTHMin, trackBarTriggerRecoilTHMax, trackBarTriggerRecoilTHStep, 2.75f, "triggerbotRecoilThreshold");
            triggerbotRecoilThreshold.ValueChanged += trackBar_ValueChanged;
            triggerbotSnipersOnly = new ValueMenuItem(themeBasic, fontSmall, triggerMenu, "Sniper-rifles only", switchYesNo, "triggerbotSnipersOnly");
            triggerbotSnipersOnly.OptionChanged += yesNoValChanged;
            triggerbotSpeedThreshold = new TrackbarMenuItem(themeBasic, fontSmall, triggerMenu, "max speed (km/h)", trackBarTriggerSpeedTHMin, trackBarTriggerSpeedTHMax, trackBarTriggerSpeedTHStep, 5f, "triggerbotSpeedThreshold");
            triggerbotSpeedThreshold.ValueChanged += trackBar_ValueChanged;
            triggerbotTarget = new ValueMenuItem(themeBasic, fontSmall, triggerMenu, "Target", switchTargets, "triggerbotTarget");
            triggerbotTarget.OptionChanged += targetValChanged;
            triggerKey = new KeyMenuItem(themeBasic, fontSmall, aimMenu, "Key", System.Windows.Forms.Keys.LButton, "triggerKey");
            triggerKey.OptionChanged += keyValChanged;
            
            SubMenuItem aimSubMenu = new SubMenuItem(themeBasic, fontSmall, mainMenu, "Aimbot", aimMenu);
            SubMenuItem crosshairSubMenu = new SubMenuItem(themeBasic, fontSmall, mainMenu, "Crosshair", crosshairMenu);
            SubMenuItem espSubMenu = new SubMenuItem(themeBasic, fontSmall, mainMenu, "ESP", espMenu);
            SubMenuItem espGlowSubMenu = new SubMenuItem(themeBasic, fontSmall, espMenu, "Outlineglow", espGlowMenu);
            SubMenuItem highlightPlayerSubMenu = new SubMenuItem(themeBasic, fontSmall, mainMenu, "Hightlight players", highlightPlayerMenu);
            SubMenuItem radarSubMenu = new SubMenuItem(themeBasic, fontSmall, mainMenu, "Radar", radarMenu);
            SubMenuItem rcsSubMenu = new SubMenuItem(themeBasic, fontSmall, mainMenu, "Recoil-Control", rcsMenu);
            SubMenuItem settingsSubMenu = new SubMenuItem(themeBasic, fontSmall, mainMenu, "Settings", settingsMenu);
            SubMenuItem soundEspSubMenu = new SubMenuItem(themeBasic, fontSmall, mainMenu, "SoundESP", soundEspMenu);
            SubMenuItem spectatorSubMenu = new SubMenuItem(themeBasic, fontSmall, mainMenu, "Spectator", spectatorMenu);
            SubMenuItem statsSubMenu = new SubMenuItem(themeBasic, fontSmall, mainMenu, "Statistics", statsMenu);
            SubMenuItem triggerSubMenu = new SubMenuItem(themeBasic, fontSmall, mainMenu, "Triggerbot", triggerMenu);
            SubMenuItem uiSubMenu = new SubMenuItem(themeBasic, fontSmall, mainMenu, "Misc", miscMenu);
            SubMenuItem wireframeSubMenu = new SubMenuItem(themeBasic, fontSmall, mainMenu, "Wireframe", wireframeMenu);

            string[] files = Directory.GetFiles(Environment.CurrentDirectory, "*.csgo.cfg");
            settingsLoadButtons = new LoadActionMenuItem[files.Length];
            settingsSaveButtons = new SaveActionMenuItem[files.Length];
            settingsFilesMenus = new Menu[files.Length];
            SubMenuItem[] settingsFilesSubMenus = new SubMenuItem[files.Length];

            for (int i = 0; i < files.Length; i++ )
            {
                string fileName = new FileInfo(files[i]).Name;
                settingsFilesMenus[i] = new Menu(themeBasic, themeItemSelected, themeBasic, fontSmall, fontLarge, 0, 0, 256, 256, String.Format("[{0}]", fileName), 4f, 4f, 4f);
                settingsLoadButtons[i] = new LoadActionMenuItem(themeBasic, fontSmall, settingsFilesMenus[i], String.Format("Load \"{0}\"", fileName), fileName);
                settingsSaveButtons[i] = new SaveActionMenuItem(themeBasic, fontSmall, settingsFilesMenus[i], String.Format("Save \"{0}\"", fileName), fileName);
                settingsFilesSubMenus[i] = new SubMenuItem(themeBasic, fontSmall, settingsMenu, fileName, settingsFilesMenus[i]);
            }

            highlightPlayers = new ValueMenuItem[64];
            for (int i = 0; i < highlightPlayers.Length; i++)
            {
                highlightPlayers[i] = new ValueMenuItem(themeBasic, fontSmall, highlightPlayerMenu, "Player", switchOnOff, 1);
                highlightPlayers[i].Visible = false;
                highlightPlayers[i].Text = "";
                highlightPlayers[i].OptionChanged += highlightedValChanged;
            }

            aimBack = new BackMenuItem(themeBasic, fontSmall, aimMenu);
            triggerBack = new BackMenuItem(themeBasic, fontSmall, triggerMenu);
            radarBack = new BackMenuItem(themeBasic, fontSmall, radarMenu);
            espBack = new BackMenuItem(themeBasic, fontSmall, espMenu);
            espGlowBack = new BackMenuItem(themeBasic, fontSmall, espGlowMenu);
            crosshairBack = new BackMenuItem(themeBasic, fontSmall, crosshairMenu);
            spectatorBack = new BackMenuItem(themeBasic, fontSmall, spectatorMenu);
            settingsBack = new BackMenuItem(themeBasic, fontSmall, settingsMenu);
            statsBack = new BackMenuItem(themeBasic, fontSmall, statsMenu);
            miscBack = new BackMenuItem(themeBasic, fontSmall, miscMenu);
            rcsBack = new BackMenuItem(themeBasic, fontSmall, rcsMenu);
            highlightPlayersBack = new BackMenuItem(themeBasic, fontSmall, highlightPlayerMenu);
            soundEspBack = new BackMenuItem(themeBasic, fontSmall, soundEspMenu);
            #endregion

            #region MENU ITEMS - ADD
            //Add menuitems
            menuItems = new List<MenuItem>();
            
            menuItems.Add(aimSubMenu);
            menuItems.Add(crosshairSubMenu);
            menuItems.Add(espSubMenu);
            menuItems.Add(espGlowSubMenu);
            menuItems.Add(highlightPlayerSubMenu);
            menuItems.Add(radarSubMenu);
            menuItems.Add(settingsSubMenu);
            menuItems.Add(soundEspSubMenu);
            menuItems.Add(spectatorSubMenu);
            menuItems.Add(statsSubMenu);
            menuItems.Add(uiSubMenu);
            menuItems.Add(rcsSubMenu);
            menuItems.Add(triggerSubMenu);
            menuItems.Add(wireframeSubMenu);

            menuItems.Add(radarBack);
            menuItems.Add(radarDrawLines);
            menuItems.Add(radarDrawView);
            menuItems.Add(radarEnabled);
            menuItems.Add(radarTarget);
            menuItems.Add(radarZoom);

            menuItems.Add(espBack);
            menuItems.Add(espDrawBox);
            //menuItems.Add(espDrawChickens);
            menuItems.Add(espDrawCircle);
            menuItems.Add(espDrawDetails);
            menuItems.Add(espDrawDistance);
            menuItems.Add(espDrawHealth);
            menuItems.Add(espDrawLines);
            menuItems.Add(espDrawName);
            menuItems.Add(espDrawSkeleton);
            menuItems.Add(espDrawWeapons);
            menuItems.Add(espEnabled);
            menuItems.Add(espTarget);

            menuItems.Add(espGlowBack);
            menuItems.Add(espGlowEnabled);
            menuItems.Add(espGlowFadingEnabled);
            menuItems.Add(espGlowFadingDistance);

            menuItems.Add(crosshairBack);
            menuItems.Add(crosshairEnabled);
            menuItems.Add(crosshairDrawData);
            menuItems.Add(crosshairDrawRecoil);
            menuItems.Add(crosshairDrawSoundESP);

            menuItems.Add(aimBack);
            menuItems.Add(aimAllowAimJump);
            menuItems.Add(aimbotBone);
            menuItems.Add(aimbotEnabled);
            menuItems.Add(aimbotCompensateRecoil);
            menuItems.Add(aimbotRagemode);
            menuItems.Add(aimbotKey);
            menuItems.Add(aimbotMethod);
            menuItems.Add(aimbotRadius);
            menuItems.Add(aimbotSmooth);
            menuItems.Add(aimbotSpeed);
            menuItems.Add(aimbotTarget);
            menuItems.Add(aimSpottedOnly);

            menuItems.Add(triggerBack);
            menuItems.Add(triggerbotDelay);
            menuItems.Add(triggerbotEnabled);
            menuItems.Add(triggerbotSnipersOnly);
            menuItems.Add(triggerbotRecoilThreshold);
            menuItems.Add(triggerbotSpeedThreshold);
            menuItems.Add(triggerbotTarget);
            menuItems.Add(triggerKey);

            menuItems.Add(spectatorBack);
            menuItems.Add(spectatorDrawWarning);
            menuItems.Add(spectatorDisableAim);
            menuItems.Add(spectatorDisableTrigger);

            menuItems.Add(statsBack);

            menuItems.Add(miscBack);
            menuItems.Add(miscInfoEnabled);
            menuItems.Add(miscBunnyHopEnabled);
            menuItems.Add(miscAutoPistolEnabled);
            menuItems.Add(miscNoFlash);
            menuItems.Add(miscNoSmoke);

            menuItems.Add(rcsBack);
            menuItems.Add(rcsEnabled);
            menuItems.Add(rcsForce);

            menuItems.Add(soundEspBack);
            menuItems.Add(soundEspEnabled);
            menuItems.Add(soundEspRange);
            menuItems.Add(soundEspInterval);
            menuItems.Add(soundEspSound);
            menuItems.Add(soundEspVolume);

            foreach (LoadActionMenuItem item in settingsLoadButtons)
                menuItems.Add(item);
            foreach (SaveActionMenuItem item in settingsSaveButtons)
                menuItems.Add(item);
            foreach (SubMenuItem item in settingsFilesSubMenus)
                menuItems.Add(item);
            menuItems.Add(settingsBack);

            foreach (ValueMenuItem highlight in highlightPlayers)
                menuItems.Add(highlight);
            menuItems.Add(highlightPlayersBack);

            foreach (MenuItem menuItem in menuItems)
            {
                menuItem.Width = mainMenu.Width - mainMenu.PaddingX * 2f;
                menuItem.Height = 20f;
                //menuItem.Theme = themeBasic;
            }


            highlightPlayerMenu.AddChildControl(highlightPlayersBack);
            foreach (ValueMenuItem highlight in highlightPlayers)
                highlightPlayerMenu.AddChildControl(highlight);

            settingsMenu.AddChildControl(settingsBack);
            for (int i = 0; i < settingsFilesMenus.Length; i++ )
            {
                settingsMenu.AddChildControl(settingsFilesSubMenus[i]);
                settingsFilesMenus[i].AddChildControl(settingsLoadButtons[i]);
                settingsFilesMenus[i].AddChildControl(settingsSaveButtons[i]);
            }

            rcsMenu.AddChildControl(rcsBack);
            rcsMenu.AddChildControl(rcsEnabled);
            rcsMenu.AddChildControl(rcsForce);

            miscMenu.AddChildControl(miscBack);
            miscMenu.AddChildControl(miscInfoEnabled);
            miscMenu.AddChildControl(miscAutoPistolEnabled);
            miscMenu.AddChildControl(miscBunnyHopEnabled);
            miscMenu.AddChildControl(miscNoFlash);
            //miscMenu.AddChildControl(miscNoSmoke);

            statsMenu.AddChildControl(statsBack);
            statsMenu.AddChildControl(ctrlStatsKills);
            statsMenu.AddChildControl(ctrlStatsDeaths);
            statsMenu.AddChildControl(ctrlStatsKD);
            statsMenu.AddChildControl(ctrlStatsScore);

            spectatorMenu.AddChildControl(spectatorBack);
            spectatorMenu.AddChildControl(spectatorDrawWarning);
            spectatorMenu.AddChildControl(spectatorDisableAim);
            spectatorMenu.AddChildControl(spectatorDisableTrigger);

            radarMenu.AddChildControl(radarBack);
            radarMenu.AddChildControl(radarEnabled);
            radarMenu.AddChildControl(radarTarget);
            radarMenu.AddChildControl(radarDrawLines);
            radarMenu.AddChildControl(radarZoom);

            espMenu.AddChildControl(espBack);
            espMenu.AddChildControl(espEnabled);
            espMenu.AddChildControl(espGlowSubMenu);
            espMenu.AddChildControl(espTarget);
            espMenu.AddChildControl(espDrawName);
            espMenu.AddChildControl(espDrawHealth);
            espMenu.AddChildControl(espDrawDetails);
            espMenu.AddChildControl(espDrawDistance);
            espMenu.AddChildControl(espDrawBox);
            espMenu.AddChildControl(espDrawCircle);
            espMenu.AddChildControl(espDrawLines);
            espMenu.AddChildControl(espDrawSkeleton);
            espMenu.AddChildControl(espDrawWeapons);

            espGlowMenu.AddChildControl(espGlowBack);
            espGlowMenu.AddChildControl(espGlowEnabled);
            espGlowMenu.AddChildControl(espGlowFadingEnabled);
            espGlowMenu.AddChildControl(espGlowFadingDistance);

            crosshairMenu.AddChildControl(crosshairBack);
            crosshairMenu.AddChildControl(crosshairEnabled);
            crosshairMenu.AddChildControl(crosshairDrawData);
            crosshairMenu.AddChildControl(crosshairDrawRecoil);
            crosshairMenu.AddChildControl(crosshairDrawSoundESP);

            aimMenu.AddChildControl(aimBack);
            aimMenu.AddChildControl(aimbotEnabled);
            aimMenu.AddChildControl(aimbotRagemode);
            aimMenu.AddChildControl(aimbotSmooth);
            aimMenu.AddChildControl(aimbotCompensateRecoil);
            aimMenu.AddChildControl(aimbotTarget);
            aimMenu.AddChildControl(aimbotBone);
            aimMenu.AddChildControl(aimbotMethod);
            aimMenu.AddChildControl(aimbotRadius);
            aimMenu.AddChildControl(aimbotSpeed);
            aimMenu.AddChildControl(aimbotKey);
            aimMenu.AddChildControl(aimAllowAimJump);
            aimMenu.AddChildControl(aimSpottedOnly);

            triggerMenu.AddChildControl(triggerBack);
            triggerMenu.AddChildControl(triggerbotEnabled);
            triggerMenu.AddChildControl(triggerbotTarget);
            triggerMenu.AddChildControl(triggerbotSnipersOnly);
            triggerMenu.AddChildControl(triggerbotDelay);
            triggerMenu.AddChildControl(triggerbotRecoilThreshold);
            triggerMenu.AddChildControl(triggerbotSpeedThreshold);
            triggerMenu.AddChildControl(triggerKey);

            mainMenu.AddChildControl(aimSubMenu);
            mainMenu.AddChildControl(triggerSubMenu);
            mainMenu.AddChildControl(radarSubMenu);
            mainMenu.AddChildControl(espSubMenu);
            mainMenu.AddChildControl(soundEspSubMenu);
            //mainMenu.AddChildControl(wireframeSubMenu);
            mainMenu.AddChildControl(crosshairSubMenu);
            mainMenu.AddChildControl(spectatorSubMenu);
            mainMenu.AddChildControl(highlightPlayerSubMenu);
            mainMenu.AddChildControl(uiSubMenu);
            mainMenu.AddChildControl(rcsSubMenu);
            mainMenu.AddChildControl(statsSubMenu);
            mainMenu.AddChildControl(settingsSubMenu);

            soundEspMenu.AddChildControl(soundEspBack);
            soundEspMenu.AddChildControl(soundEspEnabled);
            soundEspMenu.AddChildControl(soundEspRange);
            soundEspMenu.AddChildControl(soundEspInterval);
            soundEspMenu.AddChildControl(soundEspSound);
            soundEspMenu.AddChildControl(soundEspVolume);
            #endregion
        }
コード例 #8
0
 public Radar(CSGOTheme theme, TextFormat font) 
     : this(theme, font, 10f) { }
コード例 #9
0
 public CSGOControl(CSGOTheme theme, TextFormat font)
     : this(theme, font, 0f, 0f) { }
コード例 #10
0
 public CSGOControl(CSGOTheme theme, TextFormat font)
     : this(theme, font, 0f, 0f)
 {
 }
コード例 #11
0
 public CSGOControl(CSGOTheme theme, TextFormat font, float x, float y)
     : this(theme, font, x, y, 100f, 100f)
 {
 }
コード例 #12
0
 public CSGOControl(CSGOTheme theme, TextFormat font, float x, float y, float width, float height)
     : this(theme, font, x, y, width, height, true)
 {
 }
コード例 #13
0
 public CSGOControl(CSGOTheme theme, TextFormat font, float x, float y, float width, float height, bool visible, bool enabled)
     : base(theme, font, x, y, width, height, visible, enabled)
 {
 }
コード例 #14
0
 public ESP(CSGOTheme theme, TextFormat font)
     : base(theme, font)
 {
     once = true;
 }
コード例 #15
0
 public CSGOControl(CSGOTheme theme, TextFormat font, float x, float y, float width, float height)
     : this(theme, font, x, y, width, height, true) { }
コード例 #16
0
 public CSGOControl(CSGOTheme theme, TextFormat font, float x, float y)
     : this(theme, font, x, y, 100f, 100f) { }
コード例 #17
0
 public Radar(CSGOTheme theme, TextFormat font)
     : this(theme, font, 10f)
 {
 }
コード例 #18
0
        public PlayerInformation(CSGOTheme theme, ProgressBarTheme pbthemeGreen, ProgressBarTheme pbthemeRedToGreen, ProgressBarTheme pbthemeGreenToRed, TextFormat font, TextFormat fontPerfIndicators, float x, float y, float width, float height)
            : base(theme, font, x, y, width, height)
        {
            //Theme themeRedToGreen = new Objects.UI.Theme(themeGreenToRed.ShadowColor, themeGreenToRed.BackColor, themeGreenToRed.BorderColor, themeGreenToRed.ForeColor, themeGreenToRed.ShadowOffsetX, themeGreenToRed.ShadowOffsetY);

            barSpeed  = new ProgressBar(pbthemeGreen, this.Font, this.X, this.Y, this.Width, 20f, 0f, 100f, false);
            barRecoil = new ProgressBar(pbthemeGreenToRed, this.Font, this.X, this.Y + 22f, this.Width, 20f, 0f, 100f);
            barSpread = new ProgressBar(pbthemeGreenToRed, this.Font, this.X, this.Y + 44f, this.Width, 20f, 0f, 100f);
            barKD     = new ProgressBar(pbthemeGreenToRed, this.Font, this.X, this.Y + 66f, this.Width, 20f, 0f, 10f);

            barMem = new ProgressBar(pbthemeRedToGreen, fontPerfIndicators, this.X, this.Y + 88f, this.Width / PERFBARS, 20f, 0, 60);
            barInp = new ProgressBar(pbthemeRedToGreen, fontPerfIndicators, this.X + this.Width / PERFBARS * 1, this.Y + 88f, this.Width / PERFBARS, 20f, 0, 60);
            barAim = new ProgressBar(pbthemeRedToGreen, fontPerfIndicators, this.X + this.Width / PERFBARS * 2, this.Y + 88f, this.Width / PERFBARS, 20f, 0, 60);
            barTrg = new ProgressBar(pbthemeRedToGreen, fontPerfIndicators, this.X + this.Width / PERFBARS * 3, this.Y + 88f, this.Width / PERFBARS, 20f, 0, 60);

            barRcs  = new ProgressBar(pbthemeRedToGreen, fontPerfIndicators, this.X, this.Y + 110f, this.Width / PERFBARS, 20f, 0, 60);
            barCPU  = new ProgressBar(pbthemeGreenToRed, fontPerfIndicators, this.X + this.Width / PERFBARS * 1, this.Y + 110f, this.Width / PERFBARS, 20f, 0, 100);
            barDrw  = new ProgressBar(pbthemeRedToGreen, fontPerfIndicators, this.X + this.Width / PERFBARS * 2, this.Y + 110f, this.Width / PERFBARS, 20f, 0, 60);
            barTick = new ProgressBar(pbthemeRedToGreen, fontPerfIndicators, this.X + this.Width / PERFBARS * 3, this.Y + 110f, this.Width / PERFBARS, 20f, 0, 60);

            lblWeaponInfo  = new Label(theme, font, this.X + 4, this.Y + 132f, this.Width, 20f, "");
            lblServerData  = new Label(theme, font, this.X + 4, this.Y + 154f, this.Width, 20f, "");
            lblServerIP    = new Label(theme, font, this.X + 4, this.Y + 176f, this.Width, 20f, "");
            lblMapName     = new Label(theme, font, this.X + 4, this.Y + 198f, this.Width, 20f, "");
            lblState       = new Label(theme, font, this.X + 4, this.Y + 220f, this.Width, 20f, "");
            lblDataRead    = new Label(theme, font, this.X + 4, this.Y + 242f, this.Width / 2f, 20f, "");
            lblDataWritten = new Label(theme, font, this.X + 4 + this.Width / 2f, this.Y + 242f, this.Width / 2f, 20f, "");

            //1
            this.AddChildControl(barSpeed);
            //2
            this.AddChildControl(barRecoil);
            //3
            this.AddChildControl(barSpread);
            //4
            this.AddChildControl(barKD);

            //5
            this.AddChildControl(barCPU);
            this.AddChildControl(barMem);
            this.AddChildControl(barInp);
            this.AddChildControl(barAim);
            //6
            this.AddChildControl(barTrg);
            this.AddChildControl(barDrw);
            this.AddChildControl(barTick);
            this.AddChildControl(barRcs);

            //7
            this.AddChildControl(lblWeaponInfo);
            //8
            this.AddChildControl(lblServerData);
            //9
            this.AddChildControl(lblServerIP);
            //10
            this.AddChildControl(lblMapName);
            //11
            this.AddChildControl(lblState);
            //12
            this.AddChildControl(lblDataRead);
            this.AddChildControl(lblDataWritten);

            this.Height = 22f * 12f;
        }
コード例 #19
0
        public PlayerInformation(CSGOTheme theme, ProgressBarTheme pbthemeGreen, ProgressBarTheme pbthemeRedToGreen, ProgressBarTheme pbthemeGreenToRed, TextFormat font, TextFormat fontPerfIndicators, float x, float y, float width, float height)
            : base(theme, font, x, y, width, height)
        {
            //Theme themeRedToGreen = new Objects.UI.Theme(themeGreenToRed.ShadowColor, themeGreenToRed.BackColor, themeGreenToRed.BorderColor, themeGreenToRed.ForeColor, themeGreenToRed.ShadowOffsetX, themeGreenToRed.ShadowOffsetY);
           
            barSpeed = new ProgressBar(pbthemeGreen, this.Font, this.X, this.Y, this.Width, 20f, 0f, 100f, false);
            barRecoil = new ProgressBar(pbthemeGreenToRed, this.Font, this.X, this.Y + 22f, this.Width, 20f, 0f, 100f);
            barSpread = new ProgressBar(pbthemeGreenToRed, this.Font, this.X, this.Y + 44f, this.Width, 20f, 0f, 100f);
            barKD = new ProgressBar(pbthemeGreenToRed, this.Font, this.X, this.Y + 66f, this.Width, 20f, 0f, 10f);

            barMem = new ProgressBar(pbthemeRedToGreen, fontPerfIndicators, this.X, this.Y + 88f, this.Width / PERFBARS, 20f, 0, 60);
            barInp = new ProgressBar(pbthemeRedToGreen, fontPerfIndicators, this.X + this.Width / PERFBARS * 1, this.Y + 88f, this.Width / PERFBARS, 20f, 0, 60);
            barAim = new ProgressBar(pbthemeRedToGreen, fontPerfIndicators, this.X + this.Width / PERFBARS * 2, this.Y + 88f, this.Width / PERFBARS, 20f, 0, 60);
            barTrg = new ProgressBar(pbthemeRedToGreen, fontPerfIndicators, this.X + this.Width / PERFBARS * 3, this.Y + 88f, this.Width / PERFBARS, 20f, 0, 60);
            
            barRcs = new ProgressBar(pbthemeRedToGreen, fontPerfIndicators, this.X, this.Y + 110f, this.Width / PERFBARS, 20f, 0, 60);
            barCPU = new ProgressBar(pbthemeGreenToRed, fontPerfIndicators, this.X + this.Width / PERFBARS * 1, this.Y + 110f, this.Width / PERFBARS, 20f, 0, 100);
            barDrw = new ProgressBar(pbthemeRedToGreen, fontPerfIndicators, this.X + this.Width / PERFBARS * 2, this.Y + 110f, this.Width / PERFBARS, 20f, 0, 60);
            barTick = new ProgressBar(pbthemeRedToGreen, fontPerfIndicators, this.X + this.Width / PERFBARS * 3, this.Y + 110f, this.Width / PERFBARS, 20f, 0, 60);

            lblWeaponInfo = new Label(theme, font, this.X + 4, this.Y + 132f, this.Width, 20f, "");
            lblServerData = new Label(theme, font, this.X + 4, this.Y + 154f, this.Width, 20f, "");
            lblServerIP = new Label(theme, font, this.X + 4, this.Y + 176f, this.Width, 20f, "");
            lblMapName = new Label(theme, font, this.X + 4, this.Y + 198f, this.Width, 20f, "");
            lblState = new Label(theme, font, this.X + 4, this.Y + 220f, this.Width, 20f, "");
            lblDataRead = new Label(theme, font, this.X + 4, this.Y + 242f, this.Width / 2f, 20f, "");
            lblDataWritten = new Label(theme, font, this.X + 4 + this.Width / 2f, this.Y + 242f, this.Width / 2f, 20f, "");
            
            //1
            this.AddChildControl(barSpeed);
            //2
            this.AddChildControl(barRecoil);
            //3
            this.AddChildControl(barSpread);
            //4
            this.AddChildControl(barKD);

            //5
            this.AddChildControl(barCPU);
            this.AddChildControl(barMem);
            this.AddChildControl(barInp);
            this.AddChildControl(barAim);
            //6
            this.AddChildControl(barTrg);
            this.AddChildControl(barDrw);
            this.AddChildControl(barTick);
            this.AddChildControl(barRcs);

            //7
            this.AddChildControl(lblWeaponInfo);
            //8
            this.AddChildControl(lblServerData);
            //9
            this.AddChildControl(lblServerIP);
            //10
            this.AddChildControl(lblMapName);
            //11
            this.AddChildControl(lblState);
            //12
            this.AddChildControl(lblDataRead);
            this.AddChildControl(lblDataWritten);

            this.Height = 22f * 12f;
        }