コード例 #1
0
        static void Main(string[] args)
        {
            Ember pisti = new Ember();
            Ember eva = new Ember();

            pisti.nev = "Nagy Pisti";
            pisti.eletkor = 20;

            eva.nev = "Nagy Éva";
            eva.eletkor = 18;

            pisti.eletkor++;


            Console.WriteLine(pisti.Bemutatkozas());
            Console.WriteLine(eva.Bemutatkozas());
            
             
           /* Teglalap adat1 = new Teglalap();
            adat1.a = 3;
            adat1.b = 4;

            Console.WriteLine("Kerület: {0} ", adat1.Kerulet());
            Console.WriteLine("Terület: {0} ", adat1.Terulet());*/



            Console.WriteLine("Írja be a kör sugarát: ");
            int sugar = int.Parse(Console.ReadLine());
            Kor adatok = new Kor(sugar);

            Console.WriteLine("Kerület: {0} ", adatok.Kerulet2());
            Console.WriteLine("Terület: {0} ", adatok.Terulet2());



            Console.WriteLine("Írja be a téglalap egyik oldalát:");
            int aoldal= int.Parse(Console.ReadLine());
          
            Console.WriteLine("Írja be a téglalap másik oldalát:");
            int boldal = int.Parse(Console.ReadLine());
            Teglalap oldal2 = new Teglalap(aoldal, boldal);

            Console.WriteLine("Kerület: {0} ", oldal2.Kerulet());
            Console.WriteLine("Terület: {0} ", oldal2.Terulet());





            Console.ReadKey();
        }
コード例 #2
0
        public void KorlemezVanETestKivulVanE()
        {
            Pont p = new Pont();

            p.a = 0;
            p.b = 5;
            Kor k = new Kor();

            k.x = 0;
            k.y = 0;
            k.r = 1;
            Assert.IsFalse(Program.KorlemezVanE(p, k));
        }
コード例 #3
0
        private bool IsKor(string str)
        {
            int c = 0;

            foreach (char ch in str)
            {
                if (Kor.Contains(ch.ToString()))
                {
                    c++;
                }
            }
            return(c > str.Length / 4);
        }
コード例 #4
0
        public void KorlemezVanETestRajtaVanE()
        {
            Pont p = new Pont();

            p.a = 0;
            p.b = 0;
            Kor k = new Kor();

            k.x = 0;
            k.y = 0;
            k.r = 1;
            Assert.IsTrue(Program.KorlemezVanE(p, k));
        }
コード例 #5
0
        static void Main(string[] args)
        {
            List <ISikidom> idomok   = new List <ISikidom>();
            Kor             kor      = new Kor(5);
            Teglalap        teglalap = new Teglalap(20, 5);

            idomok.Add(kor);
            idomok.Add(teglalap);

            foreach (ISikidom i in idomok)
            {
                Console.WriteLine(i.Kerulet());
                Console.WriteLine(i.Terulet());
            }


            Console.ReadLine();
        }
コード例 #6
0
        static void Main(string[] args)
        {
            var teglalap  = new Teglalap(szelesseg: 3, magassag: 3); //ki lehet így generáltatni a konstruktort
            var haromszog = new Haromszog(alap: 3, magassag: 3);
            var kor       = new Kor(sugar: 5);
            var lista     = new List <ISikidom>();// Bármit elfogad, ami megvalósítja az ISikidom felületet

            lista.Add(teglalap);
            lista.Add(haromszog);
            lista.Add(kor);
            var sum = 0;

            foreach (ISikidom sz in lista)
            {
                sum = sum + sz.Terulet();
            }

            Console.WriteLine("A síkidomok területe:{0}", sum);
            Console.ReadKey();
        }
コード例 #7
0
        static void Main(string[] args)
        {
            var teglalap = new Teglalap(magassag: 3, szelesseg: 2); //ha ilyen módon adom meg a paramétereket (nem csak az értéket hanem a nevét is) akkor amikor felajánlja (CTRL+.) hogy létrehozza a konstruktort akkor már az is meglesz.

            var haromszog = new Haromszog(alap: 10, magassag: 5);

            var kor = new Kor(sugar: 12);

            var lista = new List <ISikidom>(); //Az objektumainkat betesszük egy listába mivel az objektumaink nem egyforma tipusúak ezért nem lehet egyikét sem megadni a lista típusának ezért az interface-t adjuk meg mivel annak mindhárom objektum megvalósítja a felületét

            lista.Add(kor);
            lista.Add(haromszog);
            lista.Add(teglalap);
            var sum = 0;

            foreach (var sikidom in lista)
            {
                Console.WriteLine("Terulet: {0}", sikidom.Terulet());
                sum = sum + sikidom.Terulet();
            }
            Console.WriteLine("Összesen: {0}", sum);
            Console.ReadKey();
        }
コード例 #8
0
ファイル: Soraka.cs プロジェクト: commonsharp/Elobuddy-3
        public static void Load()
        {
            Chat.Print("<font color = '#cfa9a'>Welcome to </font><font color = '#ffffff'>[ Nebula ] " + Player.Instance.ChampionName + "</font><font color = '#cfa9a'>. Addon is ready.</font>");

            Menu = MainMenu.AddMenu("[ Nebula ] Soraka", "By.Natrium");
            Menu.Add("Language.Select", new ComboBox("Language / 언어", 0, "English", "한국어"));
            Menu.AddVisualFrame(new VsFrame("Img_Lux", 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.SelectLanguage]);
            Menu.AddSeparator(10);
            Menu.AddLabel(language.Dictionary[EnumContext.Text_1]);
            Menu.AddLabel(language.Dictionary[EnumContext.Text_2]);

            M_Main = Menu.AddSubMenu(language.Dictionary[EnumContext.Main]);
            M_Main.AddGroupLabel(language.Dictionary[EnumContext.Combo]);
            M_Main.Add("Combo_Q", new CheckBox(language.Dictionary[EnumContext.SpellQ]));
            M_Main.Add("Combo_E", new CheckBox(language.Dictionary[EnumContext.SpellE]));
            M_Main.AddSeparator(20);
            M_Main.AddGroupLabel(language.Dictionary[EnumContext.Harass]);
            M_Main.Add("Harass_Q", new CheckBox(language.Dictionary[EnumContext.SpellQ]));
            M_Main.Add("Harass_Q_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus1] + "[ {0}% ]" + language.Dictionary[EnumContext.ManaStatus2], 30));
            M_Main.AddSeparator(10);
            M_Main.Add("Harass_E", new CheckBox(language.Dictionary[EnumContext.SpellE]));
            M_Main.Add("Harass_E_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus1] + "[ {0}% ]" + language.Dictionary[EnumContext.ManaStatus2], 80));
            M_Main.AddSeparator(20);
            M_Main.AddGroupLabel(language.Dictionary[EnumContext.Flee]);
            M_Main.Add("Flee_Q", new CheckBox(language.Dictionary[EnumContext.SpellQ]));
            M_Main.Add("Flee_E", new CheckBox(language.Dictionary[EnumContext.SpellE]));
            //===================================================================================================================================================================//
            //===================================================================================================================================================================//
            M_Clear = Menu.AddSubMenu(language.Dictionary[EnumContext.Clear]);
            M_Clear.AddGroupLabel(language.Dictionary[EnumContext.LaneClear]);
            M_Clear.Add("Lane_Q", new CheckBox(language.Dictionary[EnumContext.SpellQ]));
            M_Clear.Add("Lane_Q_Hit", new Slider(language.Dictionary[EnumContext.LaneQHit] + "{0} ]", 2, 0, 5));
            M_Clear.Add("Lane_Q_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus1] + "[ {0}% ]" + language.Dictionary[EnumContext.ManaStatus2], 45));
            M_Clear.AddSeparator(20);
            M_Clear.AddGroupLabel(language.Dictionary[EnumContext.JungleClear]);
            M_Clear.Add("Jungle_Q", new CheckBox(language.Dictionary[EnumContext.SpellQ]));
            M_Clear.Add("Jungle_Q_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus1] + "[ {0}% ]" + language.Dictionary[EnumContext.ManaStatus2], 25));
            //===================================================================================================================================================================//
            //===================================================================================================================================================================//
            M_Item = Menu.AddSubMenu(language.Dictionary[EnumContext.Item]);
            M_Item.AddLabel(language.Dictionary[EnumContext.sModeCombo]);
            M_Item.Add("Item.BK", new CheckBox(language.Dictionary[EnumContext.sBK]));
            M_Item.Add("Item.BK.Hp", new Slider(language.Dictionary[EnumContext.sBKHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.sBKHp2], 95, 0, 100));
            M_Item.AddSeparator(10);
            M_Item.Add("Item.Mikael", new CheckBox(language.Dictionary[EnumContext.sMikael]));
            M_Item.Add("Item.Mikael_Op", new ComboBox(language.Dictionary[EnumContext.sMikaelOp], 0, language.Dictionary[EnumContext.sMikaelOp1], language.Dictionary[EnumContext.sMikaelOp2]));
            M_Item.Add("Fear", new CheckBox(language.Dictionary[EnumContext.sFear]));
            M_Item.Add("Silence", new CheckBox(language.Dictionary[EnumContext.sSilence]));
            M_Item.Add("Slow", new CheckBox(language.Dictionary[EnumContext.sSlow]));
            M_Item.Add("Snare", new CheckBox(language.Dictionary[EnumContext.sSnare]));
            M_Item.Add("Stun", new CheckBox(language.Dictionary[EnumContext.sStun]));
            M_Item.Add("Taunt", new CheckBox(language.Dictionary[EnumContext.sTaunt]));
            M_Item.AddLabel(language.Dictionary[EnumContext.sAlways]);
            M_Item.Add("Item.Solari", new CheckBox(language.Dictionary[EnumContext.sSolari]));
            M_Item.Add("Item.Solari.MyHp", new Slider(language.Dictionary[EnumContext.MyHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.MyHp2], 50));
            M_Item.Add("Item.Solari.AMyHp", new Slider(language.Dictionary[EnumContext.sSolariAMyHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.sSolariAMyHp2], 25));
            M_Item.Add("Item.Solari.TeamHp", new Slider(language.Dictionary[EnumContext.TeamHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.TeamHp2], 65));
            M_Item.AddSeparator(10);
            M_Item.Add("Item.Redemption", new CheckBox(language.Dictionary[EnumContext.sRedemption]));
            M_Item.Add("Item.Redemption.MyHp", new Slider(language.Dictionary[EnumContext.MyHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.MyHp2], 50, 0, 100));
            //===================================================================================================================================================================//
            //===================================================================================================================================================================//
            M_Auto = Menu.AddSubMenu(language.Dictionary[EnumContext.Auto]);
            M_Auto.Add("Auto_Q", new CheckBox(language.Dictionary[EnumContext.SpellQ]));
            M_Auto.Add("Auto_Q_Mode", new ComboBox(language.Dictionary[EnumContext.AutoQMode], 0, language.Dictionary[EnumContext.AutoQModeOp1], language.Dictionary[EnumContext.AutoQModeOp2]));
            M_Auto.Add("Auto_Q_Hit", new Slider(language.Dictionary[EnumContext.AutoQHit], 65));
            M_Auto.Add("Auto_Q_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus1] + "[ {0}% ]" + language.Dictionary[EnumContext.ManaStatus2], 55));
            M_Auto.AddSeparator(10);
            M_Auto.Add("Auto_W", new CheckBox(language.Dictionary[EnumContext.SpellW]));
            M_Auto.Add("Auto_W_Semi", new KeyBind(language.Dictionary[EnumContext.AutoWSemi], false, KeyBind.BindTypes.HoldActive, 'W'));
            M_Auto.Add("Auto_W_Target", new ComboBox(language.Dictionary[EnumContext.AutoWOp], 0, language.Dictionary[EnumContext.AutoWOp1], language.Dictionary[EnumContext.AutoWOp2], language.Dictionary[EnumContext.AutoWOp3]));
            foreach (var MyTeam in EntityManager.Heroes.Allies.Where(x => !x.IsMe))
            {
                M_Auto.Add("Auto_W_" + MyTeam.ChampionName, new CheckBox(MyTeam.ChampionName));
            }
            M_Auto.Add("Auto_W_MyHp", new Slider(language.Dictionary[EnumContext.AutoWMyHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.AutoWMyHp2], 50));
            M_Auto.Add("Auto_W_TeamHp", new Slider(language.Dictionary[EnumContext.TeamHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.TeamHp2], 65));
            M_Auto.AddSeparator(10);
            M_Auto.Add("Auto_R", new CheckBox(language.Dictionary[EnumContext.SpellR]));
            M_Auto.Add("Auto_R_MyHp", new Slider(language.Dictionary[EnumContext.MyHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.MyHp2], 35));
            M_Auto.Add("Auto_R_TeamHp", new Slider(language.Dictionary[EnumContext.TeamHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.TeamHp2], 35));
            //===================================================================================================================================================================//
            //===================================================================================================================================================================//
            M_Misc = Menu.AddSubMenu(language.Dictionary[EnumContext.Msic]);
            M_Misc.Add("Misc_Ignite", new CheckBox(language.Dictionary[EnumContext.AutoIgnite]));
            M_Misc.Add("Misc_KillSt", new CheckBox(language.Dictionary[EnumContext.KillSteal]));
            M_Misc.AddSeparator(20);
            M_Misc.AddLabel("Gapcloser");
            M_Misc.Add("Misc_Gap_Q", new CheckBox(language.Dictionary[EnumContext.SpellQ]));
            M_Misc.Add("Misc_Gap_E", new CheckBox(language.Dictionary[EnumContext.SpellE], false));
            M_Misc.AddSeparator(20);
            M_Misc.AddLabel("Interrupt");
            M_Misc.Add("Misc_Int_Q", new CheckBox(language.Dictionary[EnumContext.SpellQ], false));
            M_Misc.Add("Misc_Int_Q_Lv", new ComboBox(language.Dictionary[EnumContext.InterruptLv], 0, language.Dictionary[EnumContext.InterruptLv1], language.Dictionary[EnumContext.InterruptLv2]));
            M_Misc.Add("Misc_Int_E", new CheckBox(language.Dictionary[EnumContext.SpellE]));
            M_Misc.Add("Misc_Int_E_Lv", new ComboBox(language.Dictionary[EnumContext.InterruptLv], 1, language.Dictionary[EnumContext.InterruptLv1], language.Dictionary[EnumContext.InterruptLv2]));
            //===================================================================================================================================================================//
            //===================================================================================================================================================================//
            M_Draw = Menu.AddSubMenu(language.Dictionary[EnumContext.Draw]);
            M_Draw.Add("Draw_Killable", new CheckBox(language.Dictionary[EnumContext.DrawText]));
            M_Draw.AddSeparator(10);
            M_Draw.Add("Draw_Q", new CheckBox(language.Dictionary[EnumContext.DrawQ]));
            M_Draw.AddSeparator(10);
            M_Draw.Add("Draw_W", new CheckBox(language.Dictionary[EnumContext.DrawW]));
            M_Draw.AddSeparator(10);
            M_Draw.Add("Draw_E", new CheckBox(language.Dictionary[EnumContext.DrawE]));

            CheckVersion.CheckUpdate();

            Gapcloser.OnGapcloser            += OnGapcloser;
            Interrupter.OnInterruptableSpell += OnInterruptableSpell;
            Obj_AI_Base.OnProcessSpellCast   += Mode_Item.OnProcessSpellCast;
            Obj_AI_Base.OnBasicAttack        += Mode_Item.OnBasicAttack;
            Game.OnUpdate  += Game_OnUpdate;
            Drawing.OnDraw += Drawing_OnDraw;
        }
コード例 #9
0
ファイル: Nasus.cs プロジェクト: commonsharp/Elobuddy-3
        public static void Load()
        {
            Chat.Print("<font color = '#20b2aa'>Welcome to </font><font color = '#ffffff'>[ Nebula ] " + Player.Instance.ChampionName + "</font><font color = '#20b2aa'>. Addon is ready.</font>");
            CheckVersion.CheckUpdate();

            Menu = MainMenu.AddMenu("[ Nebula ] Nasus", "By.Natrium");
            Menu.Add("Language.Select", new ComboBox("Language / 언어", 0, "English", "한국어"));
            Menu.AddVisualFrame(new VsFrame("Ward.Preview", 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.SelectLanguage]);
            Menu.AddSeparator(10);
            Menu.AddLabel(language.Dictionary[EnumContext.Text_1]);
            Menu.AddLabel(language.Dictionary[EnumContext.Text_2]);

            M_Main = Menu.AddSubMenu(language.Dictionary[EnumContext.Main]);
            M_Main.AddGroupLabel(language.Dictionary[EnumContext.Combo]);
            M_Main.Add("Combo_Q", new CheckBox(language.Dictionary[EnumContext.SpellQ]));
            M_Main.Add("Combo_W", new CheckBox(language.Dictionary[EnumContext.SpellW]));
            M_Main.Add("Combo_W_Dis", new Slider(language.Dictionary[EnumContext.ComboWDis1] + "[ {0} ]" + language.Dictionary[EnumContext.ComboWDis2], 350, 0, 600));
            M_Main.Add("Combo_E", new CheckBox(language.Dictionary[EnumContext.SpellE]));
            M_Main.Add("Combo_R", new CheckBox(language.Dictionary[EnumContext.SpellR]));
            M_Main.Add("Combo_R_Hp", new Slider(language.Dictionary[EnumContext.MyHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.MyHp2], 55));
            M_Main.AddSeparator(20);
            M_Main.AddGroupLabel(language.Dictionary[EnumContext.Harass]);
            M_Main.Add("Harass_Q", new CheckBox(language.Dictionary[EnumContext.SpellQ]));
            M_Main.Add("Harass_Q_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus1] + "[ {0}% ]" + language.Dictionary[EnumContext.ManaStatus2], 30));
            M_Main.AddSeparator(10);
            M_Main.Add("Harass_E", new CheckBox(language.Dictionary[EnumContext.SpellE]));
            M_Main.Add("Harass_E_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus1] + "[ {0}% ]" + language.Dictionary[EnumContext.ManaStatus2], 80));
            M_Main.AddSeparator(10);
            M_Main.Add("Harass_R", new CheckBox(language.Dictionary[EnumContext.SpellR]));
            M_Main.Add("Harass_R_Hp", new Slider(language.Dictionary[EnumContext.MyHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.MyHp2], 55));
            M_Main.Add("Harass_R_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus1] + "[ {0}% ]" + language.Dictionary[EnumContext.ManaStatus2], 25));
            M_Main.AddSeparator(20);
            M_Main.AddGroupLabel(language.Dictionary[EnumContext.Flee]);
            M_Main.Add("Flee_W", new CheckBox(language.Dictionary[EnumContext.SpellW]));
            M_Main.Add("Flee_E", new CheckBox(language.Dictionary[EnumContext.SpellE]));
            M_Main.Add("Flee_R", new CheckBox(language.Dictionary[EnumContext.SpellR]));
            M_Main.Add("Flee_R_Hp", new Slider(language.Dictionary[EnumContext.MyHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.MyHp2], 35));
            //===================================================================================================================================================================//
            //===================================================================================================================================================================//
            M_Clear = Menu.AddSubMenu(language.Dictionary[EnumContext.Clear]);
            M_Clear.AddGroupLabel(language.Dictionary[EnumContext.LaneClear]);
            M_Clear.Add("Lane_Q", new CheckBox(language.Dictionary[EnumContext.SpellQ]));
            M_Clear.Add("Lane_Q_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus1] + "[ {0}% ]" + language.Dictionary[EnumContext.ManaStatus2], 45));
            M_Clear.AddSeparator(10);
            M_Clear.Add("Lane_E", new CheckBox(language.Dictionary[EnumContext.SpellE]));
            M_Clear.Add("Lane_E_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus1] + "[ {0}% ]" + language.Dictionary[EnumContext.ManaStatus2], 85));
            M_Clear.AddSeparator(20);
            M_Clear.AddGroupLabel(language.Dictionary[EnumContext.JungleClear]);
            M_Clear.Add("Jungle_Q", new CheckBox(language.Dictionary[EnumContext.SpellQ]));
            M_Clear.Add("Jungle_Q_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus1] + "[ {0}% ]" + language.Dictionary[EnumContext.ManaStatus2], 25));
            M_Clear.Add("Jungle_E", new CheckBox(language.Dictionary[EnumContext.SpellE]));
            M_Clear.Add("Jungle_E_Hit", new Slider(language.Dictionary[EnumContext.JungleHitNum1] + "[ {0} ]" + language.Dictionary[EnumContext.JungleHitNum2], 2, 0, 5));
            M_Clear.Add("Jungle_E_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus1] + "[ {0}% ]" + language.Dictionary[EnumContext.ManaStatus2], 75));
            //===================================================================================================================================================================//
            //===================================================================================================================================================================//
            M_Item = Menu.AddSubMenu(language.Dictionary[EnumContext.Item]);
            M_Item.AddLabel(language.Dictionary[EnumContext.sModeCombo]);
            M_Item.Add("Item.Youmuu", new CheckBox(language.Dictionary[EnumContext.sYoummu]));
            M_Item.Add("Item.BK", new CheckBox(language.Dictionary[EnumContext.sBK]));
            M_Item.Add("Item.BK.Hp", new Slider(language.Dictionary[EnumContext.sBKHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.sBKHp2], 95, 0, 100));
            M_Item.AddSeparator(10);
            M_Item.Add("QSS", new CheckBox(language.Dictionary[EnumContext.sQSS]));
            M_Item.Add("Scimitar", new CheckBox(language.Dictionary[EnumContext.sScimiter]));
            M_Item.Add("CastDelay", new Slider("{0}ms" + language.Dictionary[EnumContext.sDelay], 350, 0, 1200));
            M_Item.AddSeparator(10);
            M_Item.Add("Blind", new CheckBox(language.Dictionary[EnumContext.sBlind]));
            M_Item.Add("Charm", new CheckBox(language.Dictionary[EnumContext.sCharm]));
            M_Item.Add("Fear", new CheckBox(language.Dictionary[EnumContext.sFear]));
            M_Item.Add("Ploymorph", new CheckBox(language.Dictionary[EnumContext.sPloymorph]));
            M_Item.Add("Poisons", new CheckBox(language.Dictionary[EnumContext.sPoisons]));
            M_Item.Add("Silence", new CheckBox(language.Dictionary[EnumContext.sSilence]));
            M_Item.Add("Slow", new CheckBox(language.Dictionary[EnumContext.sSlow]));
            M_Item.Add("Stun", new CheckBox(language.Dictionary[EnumContext.sStun]));
            M_Item.Add("Supression", new CheckBox(language.Dictionary[EnumContext.sSupression]));
            M_Item.Add("Taunt", new CheckBox(language.Dictionary[EnumContext.sTaunt]));
            M_Item.Add("Snare", new CheckBox(language.Dictionary[EnumContext.sSnare]));
            M_Item.AddSeparator(10);
            M_Item.AddLabel(language.Dictionary[EnumContext.sAlways]);
            M_Item.Add("Item.Redemption", new CheckBox(language.Dictionary[EnumContext.sRedemption]));
            M_Item.Add("Item.Redemption.MyHp", new Slider(language.Dictionary[EnumContext.MyHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.MyHp2], 50, 0, 100));
            //===================================================================================================================================================================//
            //===================================================================================================================================================================//
            M_Misc = Menu.AddSubMenu(language.Dictionary[EnumContext.Msic]);
            M_Misc.Add("Misc_Ignite", new CheckBox(language.Dictionary[EnumContext.AutoIgnite]));
            M_Misc.AddSeparator(10);
            M_Misc.Add("Misc_KillSt", new CheckBox(language.Dictionary[EnumContext.KillSteal]));
            M_Misc.Add("Misc_KillStE", new ComboBox(language.Dictionary[EnumContext.KillOption], 0, language.Dictionary[EnumContext.KillText1], language.Dictionary[EnumContext.KillText2]));
            M_Misc.AddSeparator(10);
            M_Misc.Add("Misc_JungleSt", new CheckBox(language.Dictionary[EnumContext.JungleSteal]));
            //===================================================================================================================================================================//
            //===================================================================================================================================================================//
            M_Draw = Menu.AddSubMenu(language.Dictionary[EnumContext.Draw]);
            M_Draw.Add("Draw_Killable", new CheckBox(language.Dictionary[EnumContext.DrawText]));
            M_Draw.AddSeparator(10);
            M_Draw.Add("Draw_Q", new CheckBox(language.Dictionary[EnumContext.DrawQ]));
            M_Draw.AddSeparator(10);
            M_Draw.Add("Draw_W", new CheckBox(language.Dictionary[EnumContext.DrawW]));
            M_Draw.AddSeparator(10);
            M_Draw.Add("Draw_E", new CheckBox(language.Dictionary[EnumContext.DrawE]));

            Game.OnUpdate  += Game_OnUpdate;
            Drawing.OnDraw += Drawing_OnDraw;
        }
コード例 #10
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;
        }
コード例 #11
0
ファイル: TwistedFate.cs プロジェクト: commonsharp/Elobuddy-3
        public static void Load()
        {
            Chat.Print("<font color = '#cfa9a'>Welcome to </font><font color = '#ffffff'>[ Nebula ] " + Player.Instance.ChampionName + "</font><font color = '#cfa9a'>. Addon is ready.</font>");

            Menu = MainMenu.AddMenu("[ Nebula ] TwistedFate", "By.Natrium");
            Menu.Add("Language.Select", new ComboBox("Language / 언어", 0, "English", "한국어"));
            //Menu.AddVisualFrame(new VsFrame("Load_Img", 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.SelectLanguage]);
            Menu.AddSeparator(10);
            Menu.AddLabel(language.Dictionary[EnumContext.Text_1]);
            Menu.AddLabel(language.Dictionary[EnumContext.Text_2]);

            M_Combo = Menu.AddSubMenu(language.Dictionary[EnumContext.Combo]);
            M_Combo.Add("Combo_Q", new CheckBox(language.Dictionary[EnumContext.SpellQ]));
            M_Combo.Add("Combo_Q_Stun", new ComboBox(language.Dictionary[EnumContext.ComboQMode], 0, language.Dictionary[EnumContext.ComboQMode0], language.Dictionary[EnumContext.ComboQMode1]));
            M_Combo.Add("Combo_Q_Pre", new Slider(language.Dictionary[EnumContext.QPrediction], 75));
            M_Combo.Add("Combo_Q_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus] + "[ {0}% ]" + language.Dictionary[EnumContext.sMore], 25));
            M_Combo.AddSeparator(10);
            M_Combo.Add("Combo_W", new CheckBox(language.Dictionary[EnumContext.SpellW]));
            M_Combo.Add("Combo_W_Pick", new ComboBox(language.Dictionary[EnumContext.CardMode], 0,
                                                     language.Dictionary[EnumContext.CardMode0], language.Dictionary[EnumContext.CardMode1], language.Dictionary[EnumContext.CardMode2]));
            M_Combo.Add("Combo_W_Red", new Slider(language.Dictionary[EnumContext.EnemyNum0] + "[ {0} }" + language.Dictionary[EnumContext.EnemyNum1], 4, 1, 5));
            M_Combo.Add("Combo_W_Blue", new Slider(language.Dictionary[EnumContext.ManaStatus] + "[ {0}% ]" + language.Dictionary[EnumContext.BlueStatus], 25));

            M_Harras = Menu.AddSubMenu(language.Dictionary[EnumContext.Harass]);
            M_Harras.Add("Harass_Q", new CheckBox(language.Dictionary[EnumContext.SpellQ]));
            M_Harras.Add("Harass_Q_Pre", new Slider(language.Dictionary[EnumContext.QPrediction], 75));
            M_Harras.Add("Harass_Q_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus] + "[ {0}% ]" + language.Dictionary[EnumContext.sMore], 30));
            M_Harras.AddSeparator(10);
            M_Harras.Add("Harass_W", new CheckBox(language.Dictionary[EnumContext.SpellW]));
            M_Harras.Add("Harras_W_Pick", new ComboBox(language.Dictionary[EnumContext.CardMode], 0,
                                                       language.Dictionary[EnumContext.CardMode0], language.Dictionary[EnumContext.CardMode1], language.Dictionary[EnumContext.CardMode2])); //스마트 모드 챔치언 주위에 적이 3명이거나 라이너 + 미니언2이상일때 레드카드
            M_Harras.Add("Harras_W_Blue", new Slider(language.Dictionary[EnumContext.ManaStatus] + "[ {0}% ]" + language.Dictionary[EnumContext.BlueStatus], 25));
            //===================================================================================================================================================================//
            //===================================================================================================================================================================//
            M_Clear = Menu.AddSubMenu(language.Dictionary[EnumContext.Clear]);
            M_Clear.AddGroupLabel(language.Dictionary[EnumContext.LaneClear]);
            M_Clear.Add("Lane_Q", new CheckBox(language.Dictionary[EnumContext.SpellQ]));
            M_Clear.Add("Lane_Q_Mode", new ComboBox(language.Dictionary[EnumContext.LaneMode], 0,
                                                    language.Dictionary[EnumContext.LaneMode0], language.Dictionary[EnumContext.LaneMode1], language.Dictionary[EnumContext.LaneMode2]));
            M_Clear.Add("Lane_Q_Hit", new Slider(language.Dictionary[EnumContext.MinionsNum] + "[ {0} ]", 2, 0, 5));
            M_Clear.Add("Lane_Q_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus] + "[ {0}% ]" + language.Dictionary[EnumContext.sMore], 45));
            M_Clear.AddSeparator(10);
            M_Clear.Add("Lane_W_Red", new CheckBox("W 레드 사용"));
            M_Clear.Add("Lane_W_RedHit", new Slider(language.Dictionary[EnumContext.MinionsNum] + "[ {0} ]", 3, 0, 5));
            M_Clear.Add("Lane_W_RedKill", new Slider(language.Dictionary[EnumContext.MinionsKNum] + "[ {0} ]", 2, 0, 5));
            M_Clear.Add("Lane_W_Blue", new CheckBox("W 블루 사용"));
            M_Clear.Add("Lane_W_TotalMana", new Slider(language.Dictionary[EnumContext.ManaStatus] + "[ {0}% ]" + language.Dictionary[EnumContext.sLow], 50));
            M_Clear.AddSeparator(20);
            M_Clear.AddGroupLabel(language.Dictionary[EnumContext.JungleClear]);
            M_Clear.Add("Jungle_Q", new CheckBox(language.Dictionary[EnumContext.SpellQ]));
            M_Clear.Add("Jungle_Q_Mana", new Slider(language.Dictionary[EnumContext.ManaStatus] + "[ {0}% ]" + language.Dictionary[EnumContext.sMore], 25));
            M_Clear.AddSeparator(10);
            M_Clear.Add("Jungle_W", new CheckBox(language.Dictionary[EnumContext.SpellW]));
            M_Clear.Add("Jungle_W_Pick", new ComboBox(language.Dictionary[EnumContext.CardMode], 0,
                                                      language.Dictionary[EnumContext.CardMode0], language.Dictionary[EnumContext.CardMode1], language.Dictionary[EnumContext.CardMode2]));
            M_Clear.Add("Jungle_W_TotalMana", new Slider(language.Dictionary[EnumContext.ManaStatus] + "[ {0}% ]" + language.Dictionary[EnumContext.BlueStatus], 35));
            //===================================================================================================================================================================//
            //===================================================================================================================================================================//
            M_Item.AddLabel(language.Dictionary[EnumContext.ItemExp]);
            M_Item.Add("Item_BK_Hp", new Slider(language.Dictionary[EnumContext.sBKHp1] + "[ {0}% ]" + language.Dictionary[EnumContext.sBKHp2], 95, 0, 100));
            M_Item.AddSeparator(10);
            M_Item.Add("QSS", new CheckBox(language.Dictionary[EnumContext.sQsilver]));
            M_Item.Add("Scimitar", new CheckBox(language.Dictionary[EnumContext.sScimitar]));
            M_Item.Add("CastDelay", new Slider(language.Dictionary[EnumContext.Delay], 350, 0, 1200));
            M_Item.AddSeparator(10);
            M_Item.AddLabel(language.Dictionary[EnumContext.SpellQ]);
            M_Item.Add("Blind", new CheckBox(language.Dictionary[EnumContext.sBlind]));
            M_Item.Add("Charm", new CheckBox(language.Dictionary[EnumContext.sCharm]));
            M_Item.Add("Fear", new CheckBox(language.Dictionary[EnumContext.sFear]));
            M_Item.Add("Ploymorph", new CheckBox(language.Dictionary[EnumContext.sPolymorph]));
            M_Item.Add("Poisons", new CheckBox(language.Dictionary[EnumContext.sPoisons]));
            M_Item.Add("Silence", new CheckBox(language.Dictionary[EnumContext.sSilence]));
            M_Item.Add("Slow", new CheckBox(language.Dictionary[EnumContext.sSlow]));
            M_Item.Add("Stun", new CheckBox(language.Dictionary[EnumContext.sStun]));
            M_Item.Add("Supression", new CheckBox(language.Dictionary[EnumContext.sSupression]));
            M_Item.Add("Taunt", new CheckBox(language.Dictionary[EnumContext.sTaunt]));
            M_Item.Add("Snare", new CheckBox(language.Dictionary[EnumContext.sSnare]));
            M_Item.AddSeparator(10);
            M_Item.AddLabel(language.Dictionary[EnumContext.sZhonya]);
            M_Item.Add("Item_Zy", new CheckBox(language.Dictionary[EnumContext.sZhonya]));
            M_Item.Add("Item_Zy_BHp", new Slider(language.Dictionary[EnumContext.sZhonyaBHp] + "[ {0}% ]" + language.Dictionary[EnumContext.sLow], 35, 0, 100));
            M_Item.Add("Item_Zy_BDmg", new Slider(language.Dictionary[EnumContext.sZhonyaBDmg] + "[ {0}% ]" + language.Dictionary[EnumContext.sMore], 50, 0, 100));
            M_Item.AddSeparator(10);
            M_Item.Add("Item_Zy_SHp", new Slider(language.Dictionary[EnumContext.sZhonyaSHp] + "[ {0}% ]" + language.Dictionary[EnumContext.sLow], 35, 0, 100));
            M_Item.Add("Item_Zy_SDmg", new Slider(language.Dictionary[EnumContext.sZhonyaSDmg] + "[ {0}% ]" + language.Dictionary[EnumContext.sMore], 50, 0, 100));
            M_Item.AddSeparator(10);
            M_Item.AddLabel(language.Dictionary[EnumContext.sZhonyaR]);
            foreach (var enemyR in EntityManager.Heroes.Enemies)
            {
                M_Item.Add("R_" + enemyR.ChampionName.ToLower(), new CheckBox(enemyR.ChampionName + " [ R ]"));
            }
            //===================================================================================================================================================================//
            //===================================================================================================================================================================//
            M_Misc = Menu.AddSubMenu(language.Dictionary[EnumContext.Msic]);
            M_Misc.Add("Misc_Ignite", new CheckBox(language.Dictionary[EnumContext.AutoIgnite]));
            M_Misc.Add("Misc_KillSt", new CheckBox(language.Dictionary[EnumContext.KillSteal]));
            M_Misc.Add("Misc_JungSt", new CheckBox(language.Dictionary[EnumContext.JungSteal]));
            M_Misc.Add("Misc_Auto_Q", new CheckBox(language.Dictionary[EnumContext.AutoQ]));
            M_Misc.Add("Misc_Auto_Yel", new CheckBox(language.Dictionary[EnumContext.AutoPickYel]));
            M_Misc.Add("Misc_Delay", new CheckBox(language.Dictionary[EnumContext.PickDelay], false));
            M_Misc.Add("Misc_DisableAA", new CheckBox(language.Dictionary[EnumContext.DisAA]));
            M_Misc.AddSeparator(20);
            M_Misc.AddLabel("Gapcloser");
            M_Misc.Add("Misc_Gap_Q", new CheckBox(language.Dictionary[EnumContext.SpellQ]));
            M_Misc.AddSeparator(20);
            M_Misc.AddLabel("Interrupt");
            M_Misc.Add("Misc_Int_Q", new CheckBox(language.Dictionary[EnumContext.SpellW]));
            M_Misc.Add("Misc_Int_Q_Lv", new ComboBox(language.Dictionary[EnumContext.InterruptLv], 0, language.Dictionary[EnumContext.InterruptLv1], language.Dictionary[EnumContext.InterruptLv2]));
            //===================================================================================================================================================================//
            //===================================================================================================================================================================//
            M_Draw = Menu.AddSubMenu(language.Dictionary[EnumContext.Draw]);
            M_Draw.Add("Draw_Killable", new CheckBox(language.Dictionary[EnumContext.DrawText]));
            M_Draw.AddSeparator(10);
            M_Draw.Add("Draw_Q", new CheckBox(language.Dictionary[EnumContext.DrawQ]));
            M_Draw.AddSeparator(10);
            M_Draw.Add("Draw_W", new CheckBox(language.Dictionary[EnumContext.DrawW]));
            M_Draw.AddSeparator(10);
            M_Draw.Add("Draw_R", new CheckBox(language.Dictionary[EnumContext.DrawR]));

            CheckVersion.CheckUpdate();

            Gapcloser.OnGapcloser            += OnGapcloser;
            Interrupter.OnInterruptableSpell += OnInterruptableSpell;
            Orbwalker.OnPreAttack            += Orbwalker_OnPreAttack;
            Obj_AI_Base.OnProcessSpellCast   += Mode_Item.OnProcessSpellCast;
            Obj_AI_Base.OnBasicAttack        += Mode_Item.OnBasicAttack;
            Game.OnUpdate  += Game_OnUpdate;
            Drawing.OnDraw += Drawing_OnDraw;
        }