示例#1
0
        private static void Loading_OnComplete(EventArgs args)
        {
            if (Akali.Hero != Champion.Akali)
            {
                return;
            }
            Chat.Print("[Addon] [Champion] [Akali]", System.Drawing.Color.AliceBlue);

            Q = new Spell.Targeted(SpellSlot.Q, 600);
            W = new Spell.Active(SpellSlot.W, 275);
            E = new Spell.Active(SpellSlot.E, 300);
            R = new Spell.Targeted(SpellSlot.R, 700);
            //Comands

            //Events
            Orbwalker.OnPostAttack += OnPostAttack;
            Gapcloser.OnGapcloser  += OnGapcloser;
            Drawing.OnDraw         += OnDrawings;
            Game.OnTick            += Game_OnTick;

            Aka = MainMenu.AddMenu("Akali", "Akali");
            //Combo
            Combo = Aka.AddSubMenu("Combo");
            Combo.Add("Qc", new CheckBox("Use [Q] Combo"));
            Combo.Add("Wc", new CheckBox("Use [W] Combo"));
            Combo.Add("Ec", new CheckBox("Use [E] Combo"));
            Combo.Add("Rc", new CheckBox("Use [R] Combo"));
            //Harass
            Harass = Aka.AddSubMenu("Harass");
            Harass.Add("Hq", new CheckBox("Use [Q] Harass"));
            //LaneClear
            LaneClear = Aka.AddSubMenu("LaneClear");
            LaneClear.Add("Ql", new CheckBox("Use [Q] LaneClear"));
            LaneClear.Add("El", new CheckBox("Use [E] LaneClear"));
            LaneClear.AddSeparator();
            LaneClear.AddLabel("[Percent Mana]");
            LaneClear.Add("mana", new Slider("Percent Mana > %", 25, 0, 100));
            //LastHit
            LastHit = Aka.AddSubMenu("LastHit");
            LastHit.Add("Qlast", new CheckBox("Use [Q] LastHit"));
            //JungleClear
            JungleClear = Aka.AddSubMenu("JungleClear");
            JungleClear.Add("Qj", new CheckBox("Use [Q] Jungle"));
            JungleClear.Add("Ej", new CheckBox("Use [E] Jungle"));
            JungleClear.AddSeparator();
            JungleClear.AddLabel("[Percent Mana]");
            JungleClear.Add("manaj", new Slider("Percent Mana > % ", 25, 0, 100));
            //Misc
            Misc = Aka.AddSubMenu("Misc");
            Misc.Add("Rgap", new CheckBox("Use [R] GapClose"));
            Misc.Add("Fw", new CheckBox("Use Flee [W]"));
            Misc.Add("It", new CheckBox("Use Items"));
            //Draws
            Draws = Aka.AddSubMenu("Drawings");
            Draws.Add("Dq", new CheckBox("[Q] Draw"));
            Draws.Add("Dw", new CheckBox("[W] Draw", false));
            Draws.Add("De", new CheckBox("[E] Draw", false));
            Draws.Add("Dr", new CheckBox("[R] Draw"));
        }