Ejemplo n.º 1
0
        private Karthus()
        {
            // Initialize properties
            Menu         = MainMenu.AddMenu("Karthus 3K", "karthus", "Karthus - King Killsteal");
            SpellHandler = new SpellHandler(this,
                                            new Spell.Skillshot(SpellSlot.Q, 875, SkillShotType.Circular, spellSpeed: int.MaxValue, spellWidth: 160 * 2, castDelay: 750),
                                            new Spell.Skillshot(SpellSlot.W, 1000, SkillShotType.Circular, spellWidth: 100),
                                            new Spell.Active(SpellSlot.E, 550),
                                            new Spell.Active(SpellSlot.R));

            #region Setup Global Menu

            Menu.AddGroupLabel("Welcome Karthus 3K!");
            Menu.AddLabel("You can configure the addon on the left by navigating through the menu entries.");
            Menu.AddLabel("Below you can find a list of global configurations.");

            Menu.AddSeparator();
            Menu.AddGroupLabel("Global configurations");
            Menu.Add("ComboWhileDead", new CheckBox("Combo while dead"));

            Menu.AddSeparator();
            Menu.AddGroupLabel("Hitchances for spells");
            Menu.AddLabel("Here you can define your desired minimum hitchances for each spell. Default is Medium.");
            RegisterHitchances(Menu);

            #endregion

            // Setup mode handler
            ModeHandler = new ModeHandler(this);

            #region Setup Drawing Menu

            DrawingMenu = Menu.AddSubMenu("Drawings");
            DrawingMenu.AddGroupLabel("Info");
            DrawingMenu.AddLabel("You can enable and disable spell range drawings in here.");

            DrawingMenu.AddSeparator();
            DrawingMenu.AddGroupLabel("Spell ranges");
            DrawingMenu.Add("Q", new CheckBox("Draw Q range"));
            DrawingMenu.Add("E", new CheckBox("Draw E range", false));
            DrawingMenu.Add("W", new CheckBox("Draw W range"));
            DrawingMenu.Add("W2", new CheckBox("Draw W max range"));

            DrawingMenu.AddSeparator();
            DrawingMenu.AddGroupLabel("Ultimate (R) information");
            DrawingMenu.Add("showUltimate", new CheckBox("Display killable info near mouse"));

            #endregion

            // Setup damage indicator
            DamageIndicator.Initialize(target => Damages.GetTotalDamage(this, target));
            DamageIndicator.DrawingColor = Color.Goldenrod;

            // Setup ultimate alerter
            UltimateAlerter = new UltimateAlerter(this);

            // Listen to required events
            Game.OnTick    += OnTick;
            Drawing.OnDraw += OnDraw;
        }
Ejemplo n.º 2
0
 private void OnTick(EventArgs args)
 {
     if (!Player.Instance.IsDead)
     {
         // Execute modes
         ModeHandler.OnTick();
     }
 }
Ejemplo n.º 3
0
        private Karthus()
        {
            // Initialize properties
            Menu         = MainMenu.AddMenu("Karthus 3K", "karthus", "Karthus - King Killsteal");
            SpellHandler = new SpellHandler(this,
                                            new Spell.Skillshot(SpellSlot.Q, 875, SkillShotType.Circular, spellSpeed: int.MaxValue, spellWidth: 160 * 2, castDelay: 750),
                                            new Spell.Skillshot(SpellSlot.W, 1000, SkillShotType.Circular, spellWidth: 100),
                                            new Spell.Active(SpellSlot.E, 550),
                                            new Spell.Active(SpellSlot.R));

            #region Setup Global Menu

            Menu.AddGroupLabel("Hoşgeldin Karthus 3K!");
            Menu.AddLabel("Sen bu addonu kendine göre düzenleyebilirsin");
            Menu.AddLabel("Genel Ayarlar altında");
            Menu.AddLabel("Çeviri TRAdana");

            Menu.AddSeparator();
            Menu.AddGroupLabel("Büyüler için isabet oranı");
            Menu.Add("ComboWhileDead", new CheckBox("Combo while dead"));

            Menu.AddSeparator();
            Menu.AddGroupLabel("Hitchances for spells");
            Menu.AddLabel("en hızlı büyü kullanımı için minimum olsun low. varsayılan medium.");
            RegisterHitchances(Menu);

            #endregion

            // Setup mode handler
            ModeHandler = new ModeHandler(this);

            #region Setup Drawing Menu

            DrawingMenu = Menu.AddSubMenu("Drawings");
            DrawingMenu.AddGroupLabel("Bilgi");
            DrawingMenu.AddLabel("Sen büyü menzillerini isteğine göre aktif etmelisin");

            DrawingMenu.AddSeparator();
            DrawingMenu.AddGroupLabel("Büyü Menzili");
            DrawingMenu.Add("Q", new CheckBox("Göster Q Menzili"));
            DrawingMenu.Add("E", new CheckBox("Göster E Menzili", false));
            DrawingMenu.Add("W", new CheckBox("Göster W Menzili"));
            DrawingMenu.Add("W2", new CheckBox("Göster W en fazla menzili"));

            DrawingMenu.AddSeparator();
            DrawingMenu.AddGroupLabel("Ulti (R) Bilgisi");
            DrawingMenu.Add("showUltimate", new CheckBox("Ölecek hedefleri göster"));

            #endregion

            // Listen to required events
            Game.OnTick    += OnTick;
            Drawing.OnDraw += OnDraw;
        }