public void Start() { miniMapTexture = new Texture2D(2, 2); var finalMap = Properties.Resources.FinalFinalMap_Clipped; ImageConversion.LoadImage(miniMapTexture, finalMap); patchWindow = new Window(); patchWindow.Text = "Patches"; patchWindow.Size = new Vector2(300, 300); patchWindow.Position = mainWindowRect.position + mainWindowRect.size; patchWindow.DragSize = patchWindow.Size; var layout = new LinearLayout(); layout.SizeMode = Control.eSizeMode.Manual; layout.Position = new Vector2(4, 20); layout.Size = patchWindow.Size - layout.Position; layout.AddChild(CreatePatchButton("NoShake", NoShake.Active, () => NoShake.Active, (v) => NoShake.Active = NoShake2.Active = NoShake3.Active = v)); layout.AddChild(CreatePatchButton("NoStun", NoStun.Active, () => NoStun.Active, (v) => NoStun.Active = v)); layout.AddChild(CreatePatchButton("NoRecoil", NoRecoil.Active, () => NoRecoil.Active, (v) => NoRecoil.Active = v)); layout.AddChild(CreatePatchButton("NoSpread", ShootPatch.NoSpread, () => ShootPatch.NoSpread, (v) => ShootPatch.NoSpread = v)); layout.AddChild(CreatePatchButton("InfiniteAmmo", ShootPatch.InfiniteAmmo, () => ShootPatch.InfiniteAmmo, (v) => ShootPatch.InfiniteAmmo = v)); layout.AddChild(CreatePatchButton("InstantFire", ShootPatch.InstantFire, () => ShootPatch.InstantFire, (v) => ShootPatch.InstantFire = v)); layout.AddChild(CreatePatchButton("FullAuto", ShootPatch.AutoFire, () => ShootPatch.AutoFire, (v) => ShootPatch.AutoFire = v)); layout.AddChild(CreatePatchButton("InstantMelee", AttackPatch.Active, () => AttackPatch.Active, (v) => AttackPatch.Active = v)); layout.AddChild(CreatePatchButton("TazeArea", false, () => Loader.HaxInstance.TazeAllAroundMe, (v) => Loader.HaxInstance.TazeAllAroundMe = v)); layout.AddChild(CreatePatchButton("TazeLooking", false, () => Loader.HaxInstance.TazeAllLookingAtMe, (v) => Loader.HaxInstance.TazeAllLookingAtMe = v)); patchWindow.AddChild(layout); layout.ReorderChildren(); }