Exemplo n.º 1
0
 static Combo()
 {
     MenuCombo.AddGroupLabel("Combo");
     _useQ        = MenuCombo.Add("comboUseQ", new CheckBox("Use Q"));
     _useW        = MenuCombo.Add("comboUseW", new CheckBox("Use W"));
     _useE        = MenuCombo.Add("comboUseE", new CheckBox("Use E", false));
     _useRSeveral = MenuCombo.Add("comboUseRSeveral", new CheckBox("Use R to damage several enemies"));
     _numberR     = MenuCombo.Add("combonumberR", new Slider("Min enemy to use R", 3, 1, 5));
     MenuCombo.AddSeparator();
     _useYoumuu = MenuCombo.Add("useYoumuu", new CheckBox("Use Youmuu's Ghostblade"));
     _useBotrk  = MenuCombo.Add("useBotrk", new CheckBox("Use Blade of the ruined king"));
 }
Exemplo n.º 2
0
 static Combo()
 {
     MenuCombo.AddGroupLabel("Combo");
     _useQ    = MenuCombo.Add("comboUseQ", new CheckBox("Kullan Q"));
     _useW    = MenuCombo.Add("comboUseW", new CheckBox("Kullan W"));
     _useWUlt = MenuCombo.Add("comboUseWUlt", new CheckBox("Use W during ult", false));
     _useE    = MenuCombo.Add("comboUseE", new CheckBox("Ölecek biri varsa E"));
     _useR    = MenuCombo.Add("comboUseR", new CheckBox("Menzilden şu kadar düşman varsa R", false));
     _numberR = MenuCombo.Add("numberR", new Slider("R için düşman sayısı ({0})", 3, 1, 5));
     MenuCombo.AddSeparator();
     MenuCombo.AddGroupLabel("Item usage");
     _useYoumuu       = MenuCombo.Add("useYoumuu", new CheckBox("Yuumo kullan"));
     _useBotrk        = MenuCombo.Add("useBotrk", new CheckBox("Mahvolmuş kılıç"));
     _minHPBotrk      = MenuCombo.Add("minHPBotrk", new Slider("Mahvolmuş için benim canım ({0}%)", 80));
     _enemyMinHPBotrk = MenuCombo.Add("enemyMinHPBotrk", new Slider("Mhavolmuş için düşmanın canı ({0}% ({0}%)", 80));
 }
Exemplo n.º 3
0
 public static void Loadmenu()
 {
     SkinSlider.OnValueChange += SkinSlider_OnValueChange;
     SkinEnable.OnValueChange += SkinEnable_OnValueChange;
     Menu      = MainMenu.AddMenu("Fizz", "by modestas");
     MenuCombo = Menu.AddSubMenu("Combo", "combomenu");
     MenuCombo.Add("Combo.Q.Use", new CheckBox("Use Q"));
     MenuCombo.Add("Combo.W.Use", new CheckBox("Use W"));
     MenuCombo.Add("Combo.Ww.Use", new CheckBox("Use W Only for triple damage"));
     MenuCombo.Add("Combo.E.Use", new CheckBox("Use E"));
     MenuCombo.Add("Combo.R.Use", new CheckBox("Use R"));
     MenuCombo.Add("comboRMode", new ComboBox("R Mode:", 0, new string[] { "Always", "Only if killable" }));
     MenuHarass = Menu.AddSubMenu("Harass", "harras_menu");
     MenuHarass.Add("Harass.Q.Use", new CheckBox("Use Q"));
     MenuHarass.Add("Harass.W.Use", new CheckBox("Use W"));
     MenuHarass.Add("Harass.E.Use", new CheckBox("Use E"));
     MenuLane = Menu.AddSubMenu("LaneClear", "Lane_clearmenu");
     MenuLane.Add("Lane.Q.Use", new CheckBox("Use Q"));
     MenuLane.Add("Lane.Q.Mana", new Slider("Min Mana Use Q", 60, 0, 100));
     MenuLane.Add("Lane.W.Use", new CheckBox("Use W"));
     MenuLane.Add("Lane.W.Use_only", new CheckBox("Use W only to lasthit"));
     MenuLane.Add("Lane.W.Mana", new Slider("Min Mana Use W", 60, 0, 100));
     MenuLane.Add("Lane.E.Use", new CheckBox("Use E"));
     MenuLane.Add("lcUseEMinion", new Slider("Use E at atleast {0} minions", 3, 1, 6));
     MenuLane.Add("Lane.E.Mana", new Slider("Min Mana Use E", 60, 0, 100));
     MenuJungle = Menu.AddSubMenu("JungleClear", "Jungle_clear");
     MenuJungle.Add("Jungle.Q.Use", new CheckBox("Use Q"));
     MenuJungle.Add("Jungle.Q.Mana", new Slider("Min Mana Use Q", 60, 0, 100));
     MenuJungle.Add("Jungle.W.Use", new CheckBox("Use W"));
     MenuJungle.Add("Jungle.W.Use_only", new CheckBox("Use W only to lasthit"));
     MenuJungle.Add("Jungle.W.Mana", new Slider("Min Mana Use W", 60, 0, 100));
     MenuJungle.Add("Jungle.E.Use", new CheckBox("Use E"));
     MenuJungle.Add("Jungle.E.Mana", new Slider("Min Mana Use E", 60, 0, 100));
     MenuMisc = Menu.AddSubMenu("Misc", "Misc_menu");
     MenuMisc.Add("use_skin", SkinEnable);
     MenuMisc.Add("Skin_id", SkinSlider);
     //  MenuMisc.Add("Use.Ignite", new CheckBox("Use Ignite"));
     MenuMisc.Add("UseAutoEOnTurrets", new CheckBox("Use Auto E On Turrets"));
     MenuDraw = Menu.AddSubMenu("Draw", "Draw_menu");
     MenuDraw.Add("Indicator", new CheckBox("Show killable"));
     MenuDraw.Add("mastercolor", masterColorSlider);
     MenuDraw.Add("drawq", new CheckBox("Draw Q", false));
     MenuDraw.Add("draww", new CheckBox("Draw W", false));
     MenuDraw.Add("drawe", new CheckBox("Draw E", false));
     MenuDraw.Add("drawr", new CheckBox("Draw R", false));
 }
Exemplo n.º 4
0
        public static void Ini()
        {
            Menu      = MainMenu.AddMenu("Fizz", "Silke");
            MenuCombo = Menu.AddSubMenu("Combo", "Varom");
            MenuCombo.Add("Combo.Q.Use", new CheckBox("Use Q"));
            MenuCombo.Add("Combo.W.Use", new CheckBox("Use W"));
            MenuCombo.Add("Combo.Ww.Use", new CheckBox("Use W Only for triple damage"));
            MenuCombo.Add("Combo.E.Use", new CheckBox("Use E"));
            MenuCombo.Add("Combo.R.Use", new CheckBox("Use R"));
            MenuCombo.Add("comboRMode", new ComboBox("R Mode:", 0, new string[] { "Always", "Only if killable" }));
            MenuHarass = Menu.AddSubMenu("Harass", "Lengvai");
            MenuHarass.Add("harass.mode", new ComboBox("Harass Mode: ", 1, new string[] { "Agressive Mode", "Safe Mode", "Use W To Harass" }));
            MenuLane = Menu.AddSubMenu("LaneClear", "Lane_clearmenu");
            MenuLane.Add("Lane.Q.Use", new CheckBox("Use Q"));
            MenuLane.Add("Lane.Q.Mana", new Slider("Min Mana Use Q", 60, 0, 100));
            MenuLane.Add("Lane.W.Use", new CheckBox("Use W"));
            MenuLane.Add("Lane.W.Mana", new Slider("Min Mana Use W", 60, 0, 100));
            MenuLane.Add("Lane.E.Use", new CheckBox("Use E"));
            MenuLane.Add("lcUseEMinion", new Slider("Use E at atleast {0} minions", 3, 1, 6));
            MenuLane.Add("Lane.E.Mana", new Slider("Min Mana Use E", 60, 0, 100));
            MenuJungle = Menu.AddSubMenu("JungleClear", "Jungle_clear");
            MenuJungle.Add("Jungle.Q.Use", new CheckBox("Use Q"));
            MenuJungle.Add("Jungle.Q.Mana", new Slider("Min Mana Use Q", 60, 0, 100));
            MenuJungle.Add("Jungle.W.Use", new CheckBox("Use W"));
            MenuJungle.Add("Jungle.W.Mana", new Slider("Min Mana Use W", 60, 0, 100));
            MenuJungle.Add("Jungle.E.Use", new CheckBox("Use E"));
            MenuJungle.Add("Jungle.E.Mana", new Slider("Min Mana Use E", 60, 0, 100));
            MenuMisc = Menu.AddSubMenu("Misc", "asa");
            MenuMisc.CreateCheckBox("e.turret", "Use E on Turret Shots");
            MenuMisc.CreateCheckBox("damage.hp", "Show Damage Indicator");
            MenuMisc.CreateCheckBox("damage.percent", "Show Damage Percents");
            MenuE = Menu.AddSubMenu("Fizz E Evade");
            MenuE.CreateCheckBox("enable", "Enable SpellBlock");
            MenuE.CreateCheckBox("executeBlock", "Block Any Spell if it will Kill Player");
            MenuDraw = Menu.AddSubMenu("Draw", "Draw_menu");
            MenuDraw.Add("drawq", new CheckBox("Draw Q", false));
            MenuDraw.Add("draww", new CheckBox("Draw W", false));
            MenuDraw.Add("drawe", new CheckBox("Draw E", false));
            MenuDraw.Add("drawr", new CheckBox("Draw R", false));
            var enabledSpells = new List <SpellBlocker.EnabledSpell>();

            #region AutoAttacks
            var validAttacks = EmpowerdAttackDatabase.Current.Where(x => EntityManager.Heroes.Enemies.Any(h => h.Hero.Equals(x.Hero))).ToArray();
            if (validAttacks.Any())
            {
                MenuE.AddGroupLabel("Empowered Attacks");
                MenuE.CreateCheckBox("AABlock", "Block Empowered Attacks");
                foreach (var s in validAttacks.OrderBy(s => s.Hero))
                {
                    var spellname = s.MenuItemName;
                    if (!SpellBlocker.EnabledSpells.Any(x => x.SpellName.Equals(spellname)))
                    {
                        MenuE.AddLabel(spellname);
                        MenuE.CreateCheckBox("enable" + spellname, "Enable", s.DangerLevel > 1 || s.CrowdControl);
                        MenuE.CreateSlider("danger" + spellname, "Danger Level", s.DangerLevel, 1, 5);
                        enabledSpells.Add(new SpellBlocker.EnabledSpell(spellname));
                        MenuE.AddSeparator(0);
                    }
                }
            }
            #endregion AutoAttacks

            #region buffs
            var validBuffs = DangerBuffDataDatabase.Current.Where(x => EntityManager.Heroes.Enemies.Any(h => h.Hero.Equals(x.Hero))).ToArray();
            if (validBuffs.Any())
            {
                MenuE.AddSeparator(5);
                MenuE.AddGroupLabel("Danger Buffs");
                MenuE.CreateCheckBox("buffBlock", "Block Danger Buffs");

                foreach (var s in validBuffs.OrderBy(s => s.Hero))
                {
                    var spellname = s.MenuItemName;
                    if (!SpellBlocker.EnabledSpells.Any(x => x.SpellName.Equals(spellname)))
                    {
                        MenuE.AddLabel(spellname);
                        MenuE.CreateCheckBox("enable" + spellname, "Enable", s.DangerLevel > 1);
                        if (s.HasStackCount)
                        {
                            var stackCount = MenuE.CreateSlider("stackCount", "Block at Stack Count", s.StackCount, 1, s.MaxStackCount);
                            s.StackCountFromMenu = () => stackCount.CurrentValue;
                        }
                        MenuE.CreateSlider("danger" + spellname, "Danger Level", s.DangerLevel, 1, 5);
                        enabledSpells.Add(new SpellBlocker.EnabledSpell(spellname));
                        MenuE.AddSeparator(0);
                    }
                }
            }
            #endregion buffs

            #region Targeted
            var validTargeted = TargetedSpellDatabase.Current.Where(x => EntityManager.Heroes.Enemies.Any(h => h.Hero.Equals(x.hero))).ToArray();
            if (validTargeted.Any())
            {
                MenuE.AddSeparator(5);
                MenuE.AddGroupLabel("Targeted Spells");
                MenuE.CreateCheckBox("targetedBlock", "Block Targeted Spells");
                foreach (var s in validTargeted.OrderBy(s => s.hero))
                {
                    var spellname = s.MenuItemName;
                    if (!SpellBlocker.EnabledSpells.Any(x => x.SpellName.Equals(spellname)))
                    {
                        MenuE.AddLabel(spellname);
                        MenuE.CreateCheckBox("enable" + spellname, "Enable", s.DangerLevel > 1);
                        MenuE.CreateCheckBox("fast" + spellname, "Fast Block (Instant)", s.FastEvade);
                        MenuE.CreateSlider("danger" + spellname, "Danger Level", s.DangerLevel, 1, 5);
                        enabledSpells.Add(new SpellBlocker.EnabledSpell(spellname));
                        MenuE.AddSeparator(0);
                    }
                }
            }
            #endregion Targeted

            #region Speical spells
            var specialSpells = SpecialSpellsDatabase.Current.Where(s => EntityManager.Heroes.Enemies.Any(h => s.Hero.Equals(h.Hero))).ToArray();
            if (specialSpells.Any())
            {
                MenuE.AddSeparator(5);
                MenuE.AddGroupLabel("Special Spells");
                MenuE.CreateCheckBox("specialBlock", "Block Special Spells");
                foreach (var s in specialSpells)
                {
                    var display = s.MenuItemName;
                    if (!SpellBlocker.EnabledSpells.Any(x => x.SpellName.Equals(display)))
                    {
                        MenuE.AddLabel(display);
                        MenuE.CreateCheckBox($"enable{display}", "Enable", s.DangerLevel > 1);
                        MenuE.CreateCheckBox($"fast{display}", "Fast Block (Instant)", s.DangerLevel > 2);
                        MenuE.CreateSlider($"danger{display}", "Danger Level", s.DangerLevel, 1, 5);
                        enabledSpells.Add(new SpellBlocker.EnabledSpell(display));
                    }
                }
            }
            #endregion Speical spells

            #region SkillShots
            var validskillshots =
                SkillshotDatabase.Current.Where(s => (s.GameType.Equals(GameType.Normal) || s.GameType.Equals(Game.Type)) &&
                                                EntityManager.Heroes.Enemies.Any(h => s.IsCasterName(Champion.Unknown) || s.IsCasterName(h.Hero))).OrderBy(s => s.CasterNames[0]);
            if (validskillshots.Any())
            {
                MenuE.AddSeparator(5);
                MenuE.AddGroupLabel("SkillShots");
                MenuE.CreateCheckBox("skillshotBlock", "Block SkillShots");

                foreach (var s in validskillshots)
                {
                    var display = s.MenuItemName;
                    if (!SpellBlocker.EnabledSpells.Any(x => x.SpellName.Equals(display)))
                    {
                        MenuE.AddLabel(display);
                        MenuE.CreateCheckBox($"enable{display}", "Enable", s.DangerLevel > 1);
                        MenuE.CreateCheckBox($"fast{display}", "Fast Block (Instant)", s.FastEvade);
                        MenuE.CreateSlider($"danger{display}", "Danger Level", s.DangerLevel, 1, 5);
                        enabledSpells.Add(new SpellBlocker.EnabledSpell(display));
                    }
                }
            }
            #endregion SkillShots

            SpellBlocker.EnabledSpells = enabledSpells.ToArray();
        }
Exemplo n.º 5
0
        public static void Load()
        {
            if (Player.Instance.ChampionName != "Teemo")
            {
                return;
            }

            Language_Set();

            Chat.Print("<font color = '#ebfd00'>Welcome to </font><font color = '#ffffff'>[ Nebula ] " + Player.Instance.ChampionName +
                       "</font><font color = '#ebfd00'>. Addon is ready.</font>");
            Chat.Print("<font color = '#ebfd00'>Use Stealth Passive.</font>");

            Menu = MainMenu.AddMenu("[ Nebula ] Teemo", "By.Natrium");
            Menu.AddLabel(Res_Language.GetString("Main_Text_0"));
            Menu.AddLabel(Res_Language.GetString("Main_Text_1"));
            Menu.AddLabel(Res_Language.GetString("Main_Text_2"));
            Menu.AddSeparator();
            Menu.AddLabel(Res_Language.GetString("Main_Language_Exp"));
            Menu.Add("Language.Select", new ComboBox(Res_Language.GetString("Main_Language_Select"), 0, "English", "Korean"));

            MenuCombo = Menu.AddSubMenu("- Combo", "Sub0");
            MenuCombo.AddLabel(Res_Language.GetString("Attack_Range_Exp"));
            MenuCombo.Add("Combo.Ignite", new CheckBox(Res_Language.GetString("Combo_Ignite")));
            MenuCombo.AddSeparator();
            MenuCombo.Add("Combo.Q.Use", new CheckBox(Res_Language.GetString("Combo_Q_Text")));
            MenuCombo.Add("Combo.Q.Mana", new Slider(Res_Language.GetString("Combo_Q_Mana"), 25, 0, 100));
            MenuCombo.AddSeparator();
            MenuCombo.Add("Combo.W.Use", new CheckBox(Res_Language.GetString("Combo_W_Text")));
            MenuCombo.Add("Combo.W.Range", new Slider(Res_Language.GetString("Combo_W_Range"), 500, 0, 800));
            MenuCombo.Add("Combo.W.Mana", new Slider(Res_Language.GetString("Combo_W_Mana"), 25, 0, 100));
            MenuCombo.AddSeparator();
            MenuCombo.Add("Combo.R.Use", new CheckBox(Res_Language.GetString("Combo_R_Text")));
            MenuCombo.Add("Combo.R.Count", new Slider(Res_Language.GetString("Combo_R_Count"), 1, 1, 3));

            MenuHarass = Menu.AddSubMenu("- Harass", "Sub1");
            MenuHarass.AddLabel(Res_Language.GetString("Attack_Range_Exp"));
            MenuHarass.Add("Harass.Q.Use", new CheckBox(Res_Language.GetString("Harass_Q_Text")));
            MenuHarass.Add("Harass.Q.Mana", new Slider(Res_Language.GetString("Harass_Q_Mana"), 65, 0, 100));
            MenuHarass.AddSeparator();
            MenuHarass.Add("Harass.W.Use", new CheckBox(Res_Language.GetString("Harass_W_Text")));
            MenuHarass.Add("Harass.W.Range", new Slider(Res_Language.GetString("Harass_W_Range"), 450, 0, 800));
            MenuHarass.Add("Harass.W.Mana", new Slider(Res_Language.GetString("Harass_W_Mana"), 70, 0, 100));
            MenuHarass.AddSeparator();
            MenuHarass.Add("Harass.R.Use", new CheckBox(Res_Language.GetString("Harass_R_Text")));
            MenuHarass.Add("Harass.R.Count", new Slider(Res_Language.GetString("Harass_R_Count"), 2, 2, 3));
            MenuHarass.Add("Harass.R.Mana", new Slider(Res_Language.GetString("Harass_R_Mana"), 45, 0, 100));

            MenuFlee = Menu.AddSubMenu("- Flee", "Sub3");
            MenuFlee.Add("Flee.Q.Use", new CheckBox(Res_Language.GetString("Flee_Q_Text")));
            MenuFlee.Add("Flee.Q.Range", new Slider(Res_Language.GetString("Flee_Q_Range"), 450, 0, 680));
            MenuFlee.Add("Flee.W.Use", new CheckBox(Res_Language.GetString("Flee_W_Text")));
            MenuFlee.Add("Flee.R.Use", new CheckBox(Res_Language.GetString("Flee_R_Text")));

            MenuLane = Menu.AddSubMenu("- Lane", "Sub4");
            MenuLane.Add("Lane.Minions.Big", new CheckBox(Res_Language.GetString("Lane_Q_Big")));
            MenuLane.AddSeparator();
            MenuLane.Add("Lane.R.Use", new CheckBox(Res_Language.GetString("Lane_R_Text")));
            MenuLane.Add("Lane.R.PCount", new Slider(Res_Language.GetString("Lane_R_PoisonCount"), 3, 1, 5));
            MenuLane.Add("Lane.R.RCount", new Slider(Res_Language.GetString("Lane_R_Count"), 2, 2, 3));
            MenuLane.Add("Lane.R.Mana", new Slider(Res_Language.GetString("Lane_R_Mana"), 80, 0, 100));

            MenuJungle = Menu.AddSubMenu("- Jungle", "Sub5");
            MenuJungle.Add("Jungle.Q.Use", new CheckBox(Res_Language.GetString("Jungle_Q_Text")));
            MenuJungle.Add("Jungle.Q.Mana", new Slider(Res_Language.GetString("Jungle_Q_Mana"), 30, 0, 100));
            MenuJungle.AddSeparator();
            MenuJungle.Add("Jungle.R.Use", new CheckBox(Res_Language.GetString("Jungle_R_Text"), false));
            MenuJungle.Add("Jungle.R.Count", new Slider(Res_Language.GetString("Jungle_R_Count"), 2, 2, 3));
            MenuJungle.Add("Jungle.R.Mana", new Slider(Res_Language.GetString("Jungle_R_Mana"), 50, 0, 100));

            MenuItem = Menu.AddSubMenu("- Item", "Sub6");
            MenuItem.AddLabel(Res_Language.GetString("Item_Exp_0"));
            MenuItem.AddLabel(Res_Language.GetString("Item_Item_Text"));
            MenuItem.Add("Item.BK.Hp", new Slider(Res_Language.GetString("Item_A_BK_Hp"), 95, 0, 100));
            MenuItem.AddSeparator(10);
            MenuItem.Add("QSS", new CheckBox(Res_Language.GetString("Item_D_QSS")));
            MenuItem.Add("Scimitar", new CheckBox(Res_Language.GetString("Item_D_Scimitar")));
            MenuItem.Add("CastDelay", new Slider(Res_Language.GetString("Item_CastDelay"), 350, 0, 1200));
            MenuItem.AddSeparator(10);
            MenuItem.AddLabel(Res_Language.GetString("Item_Debuff_Text"));
            MenuItem.Add("Blind", new CheckBox(Res_Language.GetString("Item_Buff_Blind")));
            MenuItem.Add("Charm", new CheckBox(Res_Language.GetString("Item_Buff_Charm")));
            MenuItem.Add("Fear", new CheckBox(Res_Language.GetString("Item_Buff_Fear")));
            MenuItem.Add("Ploymorph", new CheckBox(Res_Language.GetString("Item_Buff_Ploymorph")));
            MenuItem.Add("Poisons", new CheckBox(Res_Language.GetString("Item_Buff_Poisons")));
            MenuItem.Add("Silence", new CheckBox(Res_Language.GetString("Item_Buff_Silence")));
            MenuItem.Add("Slow", new CheckBox(Res_Language.GetString("Item_Buff_Slow")));
            MenuItem.Add("Stun", new CheckBox(Res_Language.GetString("Item_Buff_Stun")));
            MenuItem.Add("Supression", new CheckBox(Res_Language.GetString("Item_Buff_Supression")));
            MenuItem.Add("Taunt", new CheckBox(Res_Language.GetString("Item_Buff_Taunt")));
            MenuItem.Add("Snare", new CheckBox(Res_Language.GetString("Item_Buff_Snare")));
            MenuItem.AddSeparator(10);
            MenuItem.AddLabel(Res_Language.GetString("Item_D_Zhonyas_Text") + " " + Res_Language.GetString("Item_Exp_1"));
            MenuItem.Add("Item.Zy", new CheckBox(Res_Language.GetString("Item_D_Zhonyas_Text")));
            MenuItem.AddLabel(Res_Language.GetString("Item_D_Zhonyas_t1"));
            MenuItem.Add("Item.Zy.BHp", new Slider(Res_Language.GetString("Item_D_Zhonyas_BHp"), 35, 0, 100));
            MenuItem.Add("Item.Zy.BDmg", new Slider(Res_Language.GetString("Item_D_Zhonyas_BDmg"), 50, 0, 100));
            MenuItem.AddSeparator(10);
            MenuItem.AddLabel(Res_Language.GetString("Item_D_Zhonyas_t2"));
            MenuItem.Add("Item.Zy.SHp", new Slider(Res_Language.GetString("Item_D_Zhonyas_SHp"), 35, 0, 100));
            MenuItem.Add("Item.Zy.SDmg", new Slider(Res_Language.GetString("Item_D_Zhonyas_SDmg"), 50, 0, 100));

            MenuItem.AddSeparator(10);
            MenuItem.AddLabel(Res_Language.GetString("Item_D_Zhonyas_R"));
            foreach (var enemyR in EntityManager.Heroes.Enemies)
            {
                MenuItem.Add("R." + enemyR.ChampionName.ToLower(), new CheckBox(enemyR.ChampionName + " [ R ]"));
            }

            MenuMisc = Menu.AddSubMenu("- Misc", "SubMenu7");
            MenuMisc.AddLabel(Res_Language.GetString("Misc_JungleSteal"));
            MenuMisc.Add("Steal.J.0", new CheckBox(Res_Language.GetString("Misc_JungleSteal")));
            MenuMisc.AddSeparator();
            MenuMisc.AddLabel(Res_Language.GetString("Misc_KillSteal"));
            MenuMisc.Add("Steal.K.0", new CheckBox(Res_Language.GetString("Misc_KillSteal")));
            MenuMisc.AddSeparator();
            MenuMisc.AddLabel(Res_Language.GetString("Misc_AutoR_Text"));
            MenuMisc.Add("Auto.R", new CheckBox(Res_Language.GetString("Misc_AutoR")));
            MenuMisc.AddLabel(Res_Language.GetString("Misc_AutoR_Exp"));

            MenuDraw = Menu.AddSubMenu("- Draw", "SubMenu8");
            MenuDraw.Add("Draw.Q.Range", new CheckBox(Res_Language.GetString("Draw_Q")));
            MenuDraw.Add("Draw.Q.Big", new CheckBox(Res_Language.GetString("Draw_LaneQ")));
            MenuDraw.Add("Draw.R.Range", new CheckBox(Res_Language.GetString("Draw_R")));
            MenuDraw.Add("Draw.ComboCal", new CheckBox(Res_Language.GetString("Draw_DmgPer")));
            MenuDraw.AddLabel(Res_Language.GetString("Draw_DmgPer_Text"));
            MenuDraw.AddSeparator(20);

            MenuDraw.Add("Draw.Virtual", new CheckBox(Res_Language.GetString("Draw_Virtual"), false));
            MenuDraw.Add("Virtual.Range1", new Slider(Res_Language.GetString("Draw_Virtual_Min"), 250, 0, 900));
            MenuDraw.Add("Virtual.Range2", new Slider(Res_Language.GetString("Draw_Virtual_Max"), 900, 0, 900));
            MenuDraw.AddSeparator(20);

            MenuDraw.AddLabel(Res_Language.GetString("Draw_Enemy"));
            foreach (var enemyR in EntityManager.Heroes.Enemies)
            {
                MenuDraw.AddLabel(enemyR.ChampionName);
                MenuDraw.Add("Draw." + enemyR.ChampionName.ToLower() + ".Q", new CheckBox("[ Q ] - " + enemyR.Spellbook.GetSpell(SpellSlot.Q).Name, false));
                MenuDraw.Add("Draw." + enemyR.ChampionName.ToLower() + ".W", new CheckBox("[ W ] - " + enemyR.Spellbook.GetSpell(SpellSlot.W).Name, false));
                MenuDraw.Add("Draw." + enemyR.ChampionName.ToLower() + ".E", new CheckBox("[ E ] - " + enemyR.Spellbook.GetSpell(SpellSlot.E).Name, false));
                MenuDraw.Add("Draw." + enemyR.ChampionName.ToLower() + ".R", new CheckBox("[ R ] - " + enemyR.Spellbook.GetSpell(SpellSlot.R).Name, false));
                MenuDraw.AddSeparator(15);
            }

            CheckVersion.CheckUpdate();

            Menu["Language.Select"].Cast <ComboBox>().OnValueChange += (sender, vargs) =>
            {
                var index = vargs.NewValue;
                File.WriteAllText(Language_Path, Language_List[index], Encoding.Default);
            };

            Orbwalker.OnPostAttack         += OnAfterAttack;
            Game.OnUpdate                  += Mode_Item.UltBuffUpdate;
            Obj_AI_Base.OnProcessSpellCast += Mode_Item.OnProcessSpellCast;
            Obj_AI_Base.OnBasicAttack      += Mode_Item.OnBasicAttack;
            Game.OnUpdate                  += Game_OnUpdate;
            Game.OnTick    += Game_OnTick;
            Drawing.OnDraw += Gama_OnDraw;
        }
Exemplo n.º 6
0
        public static void Load()
        {
            Chat.Print("<font color = '#ebfd00'>Welcome to </font><font color = '#ffffff'>[ Nebula ] " + Player.Instance.ChampionName + "</font><font color = '#ebfd00'>. Addon is ready.</font>");

            Menu = MainMenu.AddMenu("[ Nebula ] " + Player.Instance.ChampionName, "By.Natrium");
            Menu.Add("Language.Select", new ComboBox("Language / 언어", 0, "English", "한국어"));
            Menu.AddVisualFrame(new VsFrame("Img_Kailsta", System.Drawing.Color.Purple));

            Controller language;

            switch (Menu["Language.Select"].Cast <ComboBox>().CurrentValue)
            {
            case 0:
                language = new Eng();
                break;

            case 1:
                language = new Kor();
                break;

            default:
                language = new Eng();
                break;
            }

            Menu.AddLabel(language.Dictionary[EnumContext.Main0]);
            Menu.AddLabel(language.Dictionary[EnumContext.Main1]);

            MenuCombo = Menu.AddSubMenu(language.Dictionary[EnumContext.Combo]);
            MenuCombo.Add("Combo_Q", new CheckBox(language.Dictionary[EnumContext.UseQ]));
            MenuCombo.Add("Combo_Q_Style", new ComboBox(language.Dictionary[EnumContext.Combo_Q_Mode], 1,
                                                        language.Dictionary[EnumContext.Combo_Q_Mode0], language.Dictionary[EnumContext.Combo_Q_Mode1],
                                                        language.Dictionary[EnumContext.Combo_Q_Mode2], language.Dictionary[EnumContext.Combo_Q_Mode3]));
            MenuCombo.Add("Combo_Q_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus1] + "[ {0}% ]" + language.Dictionary[EnumContext.ManaStatus2], 15, 0, 100));
            MenuCombo.AddSeparator();
            MenuCombo.Add("Combo_W", new CheckBox(language.Dictionary[EnumContext.UseW]));
            MenuCombo.Add("Combo_E", new CheckBox(language.Dictionary[EnumContext.UseE]));

            MenuHarass = Menu.AddSubMenu(language.Dictionary[EnumContext.Harass]);
            MenuHarass.Add("Harass_Q", new CheckBox(language.Dictionary[EnumContext.UseQ]));
            MenuHarass.Add("Harass_Q_MCount", new Slider(language.Dictionary[EnumContext.MinionNum0] + "[ {0} ]" + language.Dictionary[EnumContext.MinionNum1], 1, 1, 5));
            MenuHarass.Add("Harass_Q_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus1] + "[ {0}% ]" + language.Dictionary[EnumContext.ManaStatus2], 80, 0, 100));
            MenuHarass.AddSeparator();
            MenuHarass.Add("Harass_E", new CheckBox(language.Dictionary[EnumContext.UseE]));
            MenuHarass.Add("Harass_E_MCount", new Slider(language.Dictionary[EnumContext.MinionNum0] + "[ {0} ]" + language.Dictionary[EnumContext.MinionNum1], 1, 0, 5));
            MenuHarass.Add("Harass_E_CStack", new Slider(language.Dictionary[EnumContext.StackNum0] + "[ {0} ]" + language.Dictionary[EnumContext.StackNum1], 3, 1, 5));
            MenuHarass.Add("Harass_E_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus1] + "[ {0}% ]" + language.Dictionary[EnumContext.ManaStatus2], 70, 0, 100));

            MenuLane = Menu.AddSubMenu(language.Dictionary[EnumContext.Clear]);
            MenuLane.AddLabel(language.Dictionary[EnumContext.Lane]);
            MenuLane.Add("Lane_Q", new CheckBox(language.Dictionary[EnumContext.UseQ]));
            MenuLane.Add("Lane_Q_Num", new Slider(language.Dictionary[EnumContext.MinionNum0] + "[ {0} ]" + language.Dictionary[EnumContext.MinionNum1], 2, 1, 5));
            MenuLane.Add("Lane_Q_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus1] + "[ {0}% ]" + language.Dictionary[EnumContext.ManaStatus2], 80, 0, 100));
            MenuLane.AddSeparator();
            MenuLane.Add("Lane_E_All", new CheckBox(language.Dictionary[EnumContext.UseE]));
            MenuLane.Add("Lane_E_Num", new Slider(language.Dictionary[EnumContext.MinionNum0] + "[ {0} ]" + language.Dictionary[EnumContext.MinionNum1], 2, 1, 5));
            MenuLane.Add("Lane_E_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus1] + "[ {0}% ]" + language.Dictionary[EnumContext.ManaStatus2], 70, 0, 100));
            MenuLane.AddSeparator();
            MenuLane.AddLabel(language.Dictionary[EnumContext.Jungle]);
            MenuLane.Add("Jungle_Q_Mode", new ComboBox(language.Dictionary[EnumContext.JungleModeQ], 2,
                                                       language.Dictionary[EnumContext.JungleMode0], language.Dictionary[EnumContext.JungleMode1],
                                                       language.Dictionary[EnumContext.JungleMode2], language.Dictionary[EnumContext.JungleMode3]));
            MenuLane.Add("Jungle_Q_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus1] + "[ {0}% ]" + language.Dictionary[EnumContext.ManaStatus2], 55, 0, 100));
            MenuLane.Add("Jungle_E_Mode", new ComboBox(language.Dictionary[EnumContext.JungleModeE], 2,
                                                       language.Dictionary[EnumContext.JungleMode0], language.Dictionary[EnumContext.JungleMode1],
                                                       language.Dictionary[EnumContext.JungleMode2], language.Dictionary[EnumContext.JungleMode3]));
            MenuLane.Add("Jungle_E_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus1] + "[ {0}% ]" + language.Dictionary[EnumContext.ManaStatus2], 45, 0, 100));

            MenuMisc = Menu.AddSubMenu(language.Dictionary[EnumContext.Misc]);
            //MenuMisc.Add("WallJump",        new CheckBox("벽 점프 - Flee 모드")); //To do
            //MenuMisc.AddSeparator(15);
            MenuMisc.AddLabel(language.Dictionary[EnumContext.Esetting]);
            MenuMisc.Add("E_KillSteal", new CheckBox(language.Dictionary[EnumContext.EKillSteal]));
            MenuMisc.Add("E_MonsterSteal", new CheckBox(language.Dictionary[EnumContext.EJungSteal]));
            MenuMisc.Add("E_Dmage", new CheckBox(language.Dictionary[EnumContext.ECustom]));
            MenuMisc.Add("E_Dmage_Value", new Slider(language.Dictionary[EnumContext.ECustomDmg0] + "[ {0} ]" + language.Dictionary[EnumContext.ECustomDmg1], 0, -100, 0));
            MenuMisc.AddSeparator(15);
            MenuMisc.Add("E_Death", new CheckBox(language.Dictionary[EnumContext.EDeath]));
            MenuMisc.Add("E_Death_Hp", new Slider(language.Dictionary[EnumContext.EDeathHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.EDeathHp2], 10, 0, 30));
            MenuMisc.AddSeparator(15);
            MenuMisc.AddLabel(language.Dictionary[EnumContext.Rsetting]);
            MenuMisc.Add("R_Save", new CheckBox(language.Dictionary[EnumContext.SaveR]));
            MenuMisc.Add("R_Save_Hp", new Slider(language.Dictionary[EnumContext.SaveRHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.SaveRHp2], 30, 0, 30));
            MenuMisc.AddSeparator(15);
            MenuMisc.Add("R_LongGrap", new CheckBox(language.Dictionary[EnumContext.Bali]));
            MenuMisc.Add("R_LongGrap_Dis", new Slider(language.Dictionary[EnumContext.BaliDis], 700, 450, 1100));
            foreach (var enemyR in EntityManager.Heroes.Enemies)
            {
                MenuMisc.Add("R_" + enemyR.ChampionName, new CheckBox(enemyR.ChampionName));
            }

            MenuItem = Menu.AddSubMenu(language.Dictionary[EnumContext.Item]);
            MenuItem.Add("Hextech", new CheckBox(language.Dictionary[EnumContext.sHextechG]));
            MenuItem.Add("Bilge", new CheckBox(language.Dictionary[EnumContext.sBilge]));
            MenuItem.Add("BladeKing", new CheckBox(language.Dictionary[EnumContext.sBlade]));
            MenuItem.Add("Youmuu", new CheckBox(language.Dictionary[EnumContext.sYoumuu]));
            MenuItem.Add("BladeKing.Use", new Slider(language.Dictionary[EnumContext.sBKHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.sBKHp2], 95, 0, 100));
            MenuItem.AddSeparator();
            MenuItem.Add("Quicksilver", new CheckBox(language.Dictionary[EnumContext.sQsilver]));
            MenuItem.Add("Scimitar", new CheckBox(language.Dictionary[EnumContext.sScimitar]));
            MenuItem.Add("Cast.Delay", new Slider(language.Dictionary[EnumContext.Delay], 350, 0, 2000));     // /ms
            MenuItem.AddSeparator();
            MenuItem.AddLabel(language.Dictionary[EnumContext.sBuffType]);
            MenuItem.Add("Poisons", new CheckBox(language.Dictionary[EnumContext.sPoisons]));
            MenuItem.Add("Supression", new CheckBox(language.Dictionary[EnumContext.sSupression]));
            MenuItem.Add("Blind", new CheckBox(language.Dictionary[EnumContext.sBlind]));
            MenuItem.Add("Charm", new CheckBox(language.Dictionary[EnumContext.sCharm]));
            MenuItem.Add("Fear", new CheckBox(language.Dictionary[EnumContext.sFear]));
            MenuItem.Add("Polymorph", new CheckBox(language.Dictionary[EnumContext.sPolymorph]));
            MenuItem.Add("Silence", new CheckBox(language.Dictionary[EnumContext.sSilence]));
            MenuItem.Add("Slow", new CheckBox(language.Dictionary[EnumContext.sSlow]));
            MenuItem.Add("Snare", new CheckBox(language.Dictionary[EnumContext.sSnare]));
            MenuItem.Add("Stun", new CheckBox(language.Dictionary[EnumContext.sStun]));
            MenuItem.Add("Knockup", new CheckBox(language.Dictionary[EnumContext.sKnockup]));
            MenuItem.Add("Taunt", new CheckBox(language.Dictionary[EnumContext.sTaunt]));

            MenuDraw = Menu.AddSubMenu(language.Dictionary[EnumContext.Draw]);
            MenuDraw.Add("Draw_Q", new CheckBox(language.Dictionary[EnumContext.DrawQ]));
            MenuDraw.Add("Draw_E", new CheckBox(language.Dictionary[EnumContext.DrawE]));
            MenuDraw.Add("Draw_R", new CheckBox(language.Dictionary[EnumContext.DrawR], false));
            MenuDraw.AddSeparator();
            MenuDraw.Add("Draw_E_CDamage", new CheckBox(language.Dictionary[EnumContext.DrawECDamage]));
            MenuDraw.Add("Draw_E_MDamage", new CheckBox(language.Dictionary[EnumContext.DrawEJDamage]));
            MenuDraw.AddSeparator();
            MenuDraw.Add("Draw_E_Position", new ComboBox(language.Dictionary[EnumContext.DrawPosition], 1,
                                                         language.Dictionary[EnumContext.Position0], language.Dictionary[EnumContext.Position1],
                                                         language.Dictionary[EnumContext.Position2], language.Dictionary[EnumContext.Position3]));
            MenuDraw.Add("Draw_Position_X", new Slider(language.Dictionary[EnumContext.DrawX], 160, 160, Drawing.Width - 10));
            MenuDraw.Add("Draw_Position_Y", new Slider(language.Dictionary[EnumContext.DrawY], 60, 0, 900));

            CheckVersion.CheckUpdate();

            Game.OnUpdate  += Game_OnUpdate;
            Drawing.OnDraw += Draw_Range;
        }