Beispiel #1
0
        private void OnGameLoaded()
        {
            if (Player.ChampionName != "Xayah")
            {
                return;
            }

            //FeatherManager
            _featherManager = new FeatherManager();

            //Spells init
            _spellManager.Q = new Spell(SpellSlot.Q, 1100f);
            _spellManager.Q.SetSkillshot(0.5f, 75f, 2000f, false, SkillshotType.SkillshotLine, Player.Position);
            _spellManager.W = new Spell(SpellSlot.W);
            _spellManager.E = new Spell(SpellSlot.E, 25000f);
            _spellManager.E.SetSkillshot(0.25f, 75f, 2000f, false, SkillshotType.SkillshotLine);
            _spellManager.R = new Spell(SpellSlot.R, 1050f);
            _spellManager.R.SetSkillshot(0.5f, 45f, 2000f, false, SkillshotType.SkillshotCone);
            _spellManager.LoadSummoners();

            //Menu init
            _xayahMenu = Menu.AddMenu("[FOXY.lab] Xayah");

            //Orbwalker init
            _menu.AddSeparator(_xayahMenu, "MAIN FUNCTIONS");
            _xayahOrbWalk = new Orbwalker.OrbwalkerInstance(_xayahMenu.AddSubMenu("Orbwalker"));

            _combo       = new Combo(_xayahMenu, _xayahOrbWalk, _spellManager, _featherManager);
            _harass      = new Harass(_xayahMenu, _xayahOrbWalk, _spellManager, _featherManager);
            _laneclear   = new Laneclear(_xayahMenu, _xayahOrbWalk, _spellManager, _featherManager);
            _draws       = new Draws(_xayahMenu, _spellManager, _featherManager);
            _killsteal   = new Killsteal(_xayahMenu, _spellManager, _featherManager);
            _antiCC      = new AntiCC(_xayahMenu, _spellManager);
            _autoShields = new AutoShields(_xayahMenu, _spellManager);

            //Notify callbacks
            AdvCallbacks.Init(_xayahMenu);

            //Team Credits
            _menu.AddSubMenu(_xayahMenu, " ");
            _menu.AddSeparator(_xayahMenu, "FoxyXayah by Foxy.Lab");
            _menu.AddSubMenu(_xayahMenu, "S1mple");
            _menu.AddSubMenu(_xayahMenu, "dDragon");
            _menu.AddSubMenu(_xayahMenu, "DrPhoenix");

            Utils.PrintChat("Welcome " + Player.Name);
        }
Beispiel #2
0
        public Draws(Menu xayahMenu, SpellManager spellManager, FeatherManager featherManager)
        {
            _xayahMenu      = xayahMenu;
            _spellManager   = spellManager;
            _featherManager = featherManager;

            //Draw menu
            _menu.AddSeparator(xayahMenu, "DRAW FUNCTIONS");
            _menu.AddSubMenu(xayahMenu, "Draw");
            var drawMenu = (Menu)xayahMenu.Item("Draw");

            _menu.AddCheckBox(drawMenu, new MenuCheckbox("q", "Draw Q range", true));
            _menu.AddCheckBox(drawMenu, new MenuCheckbox("r", "Draw R range", false));
            _menu.AddCheckBox(drawMenu, new MenuCheckbox("e", "Draw Feathers", true));

            Drawing.OnDraw += OnDraw;
        }