Beispiel #1
0
        private void Loading_OnLoadingComplete(EventArgs args)
        {
            menu  = MainMenu.AddMenu("PiSinged", "mainmenu");
            cmenu = menu.AddSubMenu("Combo");

            cmenu.AddGroupLabel("Combo configuration");
            cmenu.Add("kbEWCombo", new KeyBind("E+W Combo", false, KeyBind.BindTypes.HoldActive, 'T'));

            ComboManager.Init();
        }
Beispiel #2
0
        private void Game_OnUpdate(EventArgs args)
        {
            var useT = cmenu["kbEWCombo"].Cast <KeyBind>().CurrentValue;

            if (useT)
            {
                var target = EntityManager.Heroes.Enemies.FirstOrDefault
                                 (o => o.Position.IsInRange(Game.CursorPos, 250));
                if (target != null)
                {
                    ComboManager.Combo("ew", target);
                }
            }
        }