public override void receiveKeyPress(Keys key) { if (this.greyedOut || !this.Listening) { return; } if (key == Keys.Escape) { Game1.soundBank.PlayCue("bigDeSelect"); this.Listening = false; GameMenu.forcePreventClose = false; } else { switch (whichOption) { case 1000: CJBCheatsMenu.Config.OpenMenuKey = key.ToString(); CJBCheatsMenu.SaveConfig(); break; case 1001: CJBCheatsMenu.Config.FreezeTimeKey = key.ToString(); CJBCheatsMenu.SaveConfig(); break; case 1002: CJBCheatsMenu.Config.GrowTreeKey = key.ToString(); CJBCheatsMenu.SaveConfig(); break; case 1003: CJBCheatsMenu.Config.GrowCropsKey = key.ToString(); CJBCheatsMenu.SaveConfig(); break; } this.ButtonNames[0] = key.ToString(); Game1.soundBank.PlayCue("coin"); this.Listening = false; GameMenu.forcePreventClose = false; } }
public override void leftClickHeld(int x, int y) { if (this.greyedOut) { return; } base.leftClickHeld(x, y); this.Value = x >= this.bounds.X ? (x <= this.bounds.Right - 10 * Game1.pixelZoom ? (int)((x - this.bounds.X) / (this.bounds.Width - 10d * Game1.pixelZoom) * this.SliderMaxValue) : this.SliderMaxValue) : 0; switch (whichOption) { case 0: CJBCheatsMenu.Config.MoveSpeed = this.Value; CJBCheatsMenu.SaveConfig(); break; case 10: Game1.timeOfDay = this.Value * 100 + 600; break; } }
public override void receiveLeftClick(int x, int y) { if (this.greyedOut) return; Game1.soundBank.PlayCue("drumkit6"); base.receiveLeftClick(x, y); this.IsChecked = !this.IsChecked; switch (whichOption) { case 0: CJBCheatsMenu.Config.IncreasedMovement = this.IsChecked; break; case 1: CJBCheatsMenu.Config.InfiniteStamina = this.IsChecked; break; case 2: CJBCheatsMenu.Config.InfiniteHealth = this.IsChecked; break; case 3: CJBCheatsMenu.Config.InfiniteWateringCan = this.IsChecked; break; case 4: CJBCheatsMenu.Config.InstantCatch = this.IsChecked; break; case 5: CJBCheatsMenu.Config.ThrowBobberMax = this.IsChecked; break; case 6: CJBCheatsMenu.Config.OneHitKill = this.IsChecked; break; case 7: CJBCheatsMenu.Config.MaxDailyLuck = this.IsChecked; break; case 9: CJBCheatsMenu.Config.AlwaysGiveGift = this.IsChecked; break; case 10: CJBCheatsMenu.Config.FreezeTimeInside = this.IsChecked; break; case 11: CJBCheatsMenu.Config.FreezeTime = this.IsChecked; break; case 12: CJBCheatsMenu.Config.FreezeTimeCaves = this.IsChecked; break; case 13: CJBCheatsMenu.Config.DurableFences = this.IsChecked; break; case 14: CJBCheatsMenu.Config.AlwaysTreasure = this.IsChecked; break; case 15: CJBCheatsMenu.Config.OneHitBreak = this.IsChecked; break; case 16: CJBCheatsMenu.Config.InstantBite = this.IsChecked; break; case 17: CJBCheatsMenu.Config.NoFriendshipDecay = this.IsChecked; break; case 18: CJBCheatsMenu.Config.InstantBuild = this.IsChecked; break; case 19: CJBCheatsMenu.Config.AutoFeed = this.IsChecked; break; case 20: CJBCheatsMenu.Config.InfiniteHay = this.IsChecked; break; case 21: CJBCheatsMenu.Config.DurableTackles = this.IsChecked; break; case 22: CJBCheatsMenu.Config.HarvestSickle = this.IsChecked; break; case 100: CJBCheatsMenu.Config.FastFurnace = this.IsChecked; break; case 101: CJBCheatsMenu.Config.FastRecyclingMachine = this.IsChecked; break; case 102: CJBCheatsMenu.Config.FastCrystalarium = this.IsChecked; break; case 103: CJBCheatsMenu.Config.FastIncubator = this.IsChecked; break; case 104: CJBCheatsMenu.Config.FastSlimeIncubator = this.IsChecked; break; case 105: CJBCheatsMenu.Config.FastKeg = this.IsChecked; break; case 106: CJBCheatsMenu.Config.FastPreservesJar = this.IsChecked; break; case 107: CJBCheatsMenu.Config.FastCheesePress = this.IsChecked; break; case 108: CJBCheatsMenu.Config.FastMayonnaiseMachine = this.IsChecked; break; case 109: CJBCheatsMenu.Config.FastLoom = this.IsChecked; break; case 110: CJBCheatsMenu.Config.FastOilMaker = this.IsChecked; break; case 111: CJBCheatsMenu.Config.FastSeedMaker = this.IsChecked; break; case 112: CJBCheatsMenu.Config.FastCharcoalKiln = this.IsChecked; break; case 113: CJBCheatsMenu.Config.FastSlimeEggPress = this.IsChecked; break; case 114: CJBCheatsMenu.Config.FastBeeHouse = this.IsChecked; break; case 115: CJBCheatsMenu.Config.FastMushroomBox = this.IsChecked; break; case 116: CJBCheatsMenu.Config.FastTapper = this.IsChecked; break; case 117: CJBCheatsMenu.Config.FastLightningRod = this.IsChecked; break; case 118: CJBCheatsMenu.Config.FastCask = this.IsChecked; break; case 119: CJBCheatsMenu.Config.FastWormBin = this.IsChecked; break; } CJBCheatsMenu.SaveConfig(); }