static Config() { Menu = MainMenu.AddMenu(MenuName, MenuName.ToLower()); Modes.InitializeModes(); GapcloserMenu.Initializer(); AutoHarass.Initializer(); Drawings.Initializer(); ExtrasMenu.Initializer(); MiscMenu.Initializer(); }
private static void Loading_OnLoadingComplete(EventArgs args) { if (ObjectManager.Player.BaseSkinName != "Leblanc") { return; } Q = new Spell.Targeted(SpellSlot.Q, 720); W = new Spell.Skillshot(SpellSlot.W, 760, SkillShotType.Circular, int.MaxValue, 1450, 220); E = new Spell.Skillshot(SpellSlot.E, 900, SkillShotType.Linear, 0, 1650, 55); R = new Spell.Targeted(SpellSlot.R, 720); IgniteSlot = ObjectManager.Player.GetSpellSlotFromName("summonerdot"); LeblancMenu = MainMenu.AddMenu("Lebranku", "Lebranku"); ComboMenu = LeblancMenu.AddSubMenu("Combo", "Combo"); ComboMenu.Add("showcomboinfo", new CheckBox("Show Combo Info")); ComboMenu.AddSeparator(); StringList(ComboMenu, "ComboSetOption", "Combo", new[] { "Auto", "Q-R Combo", "W-R Combo", "E-R Combo" }, 1); StringList(ComboMenu, "ComboSetEHitCh", "E Hit", new[] { "Low", "Medium", "High", "Dashing", "Immobile" }, 0); ComboMenu.Add("ComboDblStun", new KeyBind("Double Stun", false, KeyBind.BindTypes.HoldActive, "T".ToCharArray()[0])); HarassMenu = LeblancMenu.AddSubMenu("Harass", "harass"); HarassMenu.Add("harassshowinfo", new CheckBox("Show Harass info")); HarassMenu.AddSeparator(); HarassMenu.Add("useqharass", new CheckBox("Use Q")); HarassMenu.Add("HarassUseTQ", new KeyBind("Use Q (toggle)", false, KeyBind.BindTypes.PressToggle, "J".ToCharArray()[0])); HarassMenu.Add("HarassManaQ", new Slider("Q Min. Mana Percent", 50, 100, 0)); HarassMenu.Add("usewharass", new CheckBox("Use W")); HarassMenu.Add("HarassUseTW", new KeyBind("Use W (toggle)", false, KeyBind.BindTypes.PressToggle, "K".ToCharArray()[0])); HarassMenu.Add("HarassManaW", new Slider("W Min. Mana Percent", 50, 100, 0)); HarassMenu.Add("useeharass", new CheckBox("Use E")); HarassMenu.Add("HarassUseTE", new KeyBind("Use E (toggle)", false, KeyBind.BindTypes.PressToggle, "L".ToCharArray()[0])); HarassMenu.Add("HarassManaE", new Slider("E Min. Mana Percent", 50, 100, 0)); KillStealMenu = LeblancMenu.AddSubMenu("Kill Steal", "killsteal"); KillStealMenu.AddSeparator(); KillStealMenu.Add("KUse_q", new CheckBox("Use Q", false)); KillStealMenu.Add("KUse_w", new CheckBox("Use W", false)); KillStealMenu.Add("KUse_e", new CheckBox("Use E", false)); KillStealMenu.AddSeparator(); KillStealMenu.Add("KUse_q2", new CheckBox("Use RQ", false)); KillStealMenu.Add("KUse_w2", new CheckBox("Use RW", false)); KillStealMenu.Add("KUse_wr", new CheckBox("Use WR", false)); KillStealMenu.Add("KUse_e2", new CheckBox("Use RE", false)); DrawingsMenu = LeblancMenu.AddSubMenu("Drawings", "drawings"); DrawingsMenu.Add("drawq", new CheckBox("Draw Q")); DrawingsMenu.Add("draww", new CheckBox("Draw W")); DrawingsMenu.Add("drawe", new CheckBox("Draw E")); DrawingsMenu.Add("drawdamagebar", new CheckBox("Draw Damage Bar indicator")); DrawingsMenu.Add("activeerange", new CheckBox("Draw Active E range")); DrawingsMenu.Add("wqrange", new CheckBox("W+Q Range")); RunMenu = LeblancMenu.AddSubMenu("Run", "Runmenu"); RunMenu.Add("RunUseW", new CheckBox("Use W")); RunMenu.Add("RunUseR", new CheckBox("Use R")); ExtrasMenu = LeblancMenu.AddSubMenu("Extras", "Extras"); ExtrasMenu.Add("interruptspells", new CheckBox("Interrupt Spells")); Game.OnTick += Game_OnTick; Game.OnUpdate += Game_OnUpdate; Drawing.OnEndScene += OnEndScene.Drawing_OnEndScene; Drawing.OnDraw += Drawing_OnDraw; GameObject.OnCreate += GameObject_OnCreate; GameObject.OnDelete += GameObject_OnDelete; Interrupter.OnInterruptableSpell += Interrupter_OnPosibleToInterrupt; }
// Update is called once per frame void Update() { switch (MenuRightNow) { case MenuLocation.Main: MainMenuItself.SetActive(true); LevelSelectMenu.SetActive(false); SettingMenu.SetActive(false); ExtrasMenu.SetActive(false); UnknownMenu.SetActive(false); GameplayMenu.SetActive(false); break; case MenuLocation.LevelSelect: MainMenuItself.SetActive(false); LevelSelectMenu.SetActive(true); SettingMenu.SetActive(false); ExtrasMenu.SetActive(false); UnknownMenu.SetActive(false); GameplayMenu.SetActive(false); break; case MenuLocation.Setting: MainMenuItself.SetActive(false); LevelSelectMenu.SetActive(false); SettingMenu.SetActive(true); ExtrasMenu.SetActive(false); UnknownMenu.SetActive(false); GameplayMenu.SetActive(false); break; case MenuLocation.Extras: MainMenuItself.SetActive(false); LevelSelectMenu.SetActive(false); SettingMenu.SetActive(false); ExtrasMenu.SetActive(true); UnknownMenu.SetActive(false); GameplayMenu.SetActive(false); break; case MenuLocation.Unknown: MainMenuItself.SetActive(false); LevelSelectMenu.SetActive(false); SettingMenu.SetActive(false); ExtrasMenu.SetActive(false); UnknownMenu.SetActive(true); GameplayMenu.SetActive(false); break; case MenuLocation.Gameplay: MainMenuItself.SetActive(false); LevelSelectMenu.SetActive(false); SettingMenu.SetActive(false); ExtrasMenu.SetActive(false); UnknownMenu.SetActive(false); GameplayMenu.SetActive(true); break; } if (OnGoingLoading) { if (rawProgress >= 90f) { OnGoingLoading = false; } if (loadingScreen) { loadingScreen.SetActive(true); } } else { if (loadingScreen) { loadingScreen.SetActive(false); } } if (!cameraing) { GameObject go = GameObject.FindGameObjectWithTag("MainCamera"); if (go) { cameraing = go.GetComponent <PersonCamera2D>(); } } if (isPlayingGame) { //Titler.SetActive(false); Titler.transform.position = new Vector3(cameraing.transform.position.x, cameraing.transform.position.y, 0f); LoopingArea.SetActive(false); LoopingArea.transform.position = new Vector3(cameraing.transform.position.x, cameraing.transform.position.y, 0f); MainMenuItself.GetComponent <MenuArea>().pauseMenuMode = true; } else { Titler.transform.position = Vector3.zero; LoopingArea.SetActive(true); LoopingArea.transform.position = Vector3.zero; MainMenuItself.GetComponent <MenuArea>().pauseMenuMode = false; cameraing.ZeroCamera(); } if (MenuRightNow != MenuLocation.Main) { Titler.SetActive(false); } else { Titler.SetActive(true); } }