当前位置: 首页>>代码示例>>C#>>正文


C# Orbwalking.Orbwalker.SetMovement方法代码示例

本文整理汇总了C#中LeagueSharp.Common.Orbwalking.Orbwalker.SetMovement方法的典型用法代码示例。如果您正苦于以下问题:C# Orbwalking.Orbwalker.SetMovement方法的具体用法?C# Orbwalking.Orbwalker.SetMovement怎么用?C# Orbwalking.Orbwalker.SetMovement使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在LeagueSharp.Common.Orbwalking.Orbwalker的用法示例。


在下文中一共展示了Orbwalking.Orbwalker.SetMovement方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Game_OnGameLoad


//.........这里部分代码省略.........

            var harassMenu = new Menu("Harass", "harassop");
            harassMenu.AddItem(new MenuItem("harassUseQ", "Use Q").SetValue(true));
            harassMenu.AddItem(new MenuItem("harassrange", "Harass Range").SetValue(new Slider(1200, (int)Orbwalking.GetRealAutoAttackRange(Player), 1450))).ValueChanged +=
            delegate(object sender, OnValueChangeEventArgs eventArgs)
            {
                Render.Circle.DrawCircle(Player.Position, eventArgs.GetNewValue<Slider>().Value, Color.Aquamarine, 5);
            };
            harassMenu.AddItem(new MenuItem("harassmana", "If Mana % >").SetValue(new Slider(35, 0, 100)));
            Menu.AddSubMenu(harassMenu);

            var lasthitMenu = new Menu("Lasthit", "lasthitset");
            lasthitMenu.AddItem(new MenuItem("lasthitUseW", "Use W (Blue only)").SetValue(true));
            lasthitMenu.AddItem(new MenuItem("lasthitbluemana", "Lasthit With Blue If Mana % <").SetValue(new Slider(20, 0, 100)));
            Menu.AddSubMenu(lasthitMenu);

            var laneclearMenu = new Menu("Laneclear", "laneclearset");
            laneclearMenu.AddItem(new MenuItem("laneclearUseQ", "Use Q").SetValue(true));
            laneclearMenu.AddItem(new MenuItem("laneclearQmana", "Cast Q If Mana % >").SetValue(new Slider(50, 0, 100)));
            laneclearMenu.AddItem(new MenuItem("laneclearQmc", "Cast Q If Hit Minion Number >=").SetValue(new Slider(5, 2, 7)));
            laneclearMenu.AddItem(new MenuItem("laneclearUseW", "Use W").SetValue(true));
            laneclearMenu.AddItem(new MenuItem("laneclearredmc", "Red Instead of Blue If Minion Number >=").SetValue(new Slider(3, 2, 5)));
            laneclearMenu.AddItem(new MenuItem("laneclearbluemana", "Blue Instead of Red If Mana % <").SetValue(new Slider(30, 0, 100)));
            Menu.AddSubMenu(laneclearMenu);

            var jungleclearMenu = new Menu("Jungleclear", "jungleclearset");
            jungleclearMenu.AddItem(new MenuItem("jungleclearUseQ", "Use Q").SetValue(true));
            jungleclearMenu.AddItem(new MenuItem("jungleclearQmana", "Cast Q If Mana % >").SetValue(new Slider(30, 0, 100)));
            jungleclearMenu.AddItem(new MenuItem("jungleclearUseW", "Use W").SetValue(true));
            jungleclearMenu.AddItem(new MenuItem("jungleclearbluemana", "Pick Blue If Mana % <").SetValue(new Slider(30, 0, 100)));
            jungleclearMenu.AddItem(new MenuItem("jgtxt", "-Card Automatic selection"));
            Menu.AddSubMenu(jungleclearMenu);

            var AdditionalsMenu = new Menu("Misc", "additionals");
            AdditionalsMenu.AddItem(new MenuItem("goldR", "Select Gold When Using Ultimate (gate)").SetValue(true));
            AdditionalsMenu.AddItem(new MenuItem("killsteal", "Use Killsteal").SetValue(true));
            AdditionalsMenu.AddItem(new MenuItem("gapcloser", "Use Anti-gapcloser").SetValue(true));
            AdditionalsMenu.AddItem(new MenuItem("interrupt", "Use Auto-interrupt").SetValue(true));
            AdditionalsMenu.AddItem(new MenuItem("usepacket", "Use Packet casting").SetValue(true));
            AdditionalsMenu.AddItem(new MenuItem("autoIgnite", "Use Auto-Ignite (ks)").SetValue(true));
            Menu.AddSubMenu(AdditionalsMenu);

            var Drawings = new Menu("Drawings", "Drawings");
            Drawings.AddItem(new MenuItem("AAcircle", "AA Range").SetValue(true));
            Drawings.AddItem(new MenuItem("FAAcircle", "Flash + AA Range").SetValue(true));
            Drawings.AddItem(new MenuItem("Qcircle", "Q Range").SetValue(new Circle(true, Color.LightSkyBlue)));
            Drawings.AddItem(new MenuItem("Rcircle", "R Range").SetValue(new Circle(true, Color.LightSkyBlue)));
            Drawings.AddItem(new MenuItem("RcircleMap", "R Range (minimap)").SetValue(new Circle(true, Color.White)));
            Drawings.AddItem(new MenuItem("drawMinionLastHit", "Minion Last Hit").SetValue(new Circle(true, Color.GreenYellow)));
            Drawings.AddItem(new MenuItem("drawMinionNearKill", "Minion Near Kill").SetValue(new Circle(true, Color.Gray)));

            var drawComboDamageMenu = new MenuItem("Draw_ComboDamage", "Draw Combo Damage").SetValue(true);
            var drawFill = new MenuItem("Draw_Fill", "Draw Combo Damage Fill").SetValue(new Circle(true, Color.FromArgb(90, 255, 169, 4)));
            Drawings.AddItem(drawComboDamageMenu);
            Drawings.AddItem(drawFill);
            DamageIndicator.DamageToUnit = GetComboDamage;
            DamageIndicator.Enabled = drawComboDamageMenu.GetValue<bool>();
            DamageIndicator.Fill = drawFill.GetValue<Circle>().Active;
            DamageIndicator.FillColor = drawFill.GetValue<Circle>().Color;
            drawComboDamageMenu.ValueChanged +=
            delegate(object sender, OnValueChangeEventArgs eventArgs)
            {
                DamageIndicator.Enabled = eventArgs.GetNewValue<bool>();
            };
            drawFill.ValueChanged +=
            delegate(object sender, OnValueChangeEventArgs eventArgs)
            {
                DamageIndicator.Fill = eventArgs.GetNewValue<Circle>().Active;
                DamageIndicator.FillColor = eventArgs.GetNewValue<Circle>().Color;
            };

            Drawings.AddItem(new MenuItem("jgpos", "JunglePosition").SetValue(true));
            Drawings.AddItem(new MenuItem("manaper", "ManaPercentage").SetValue(true));
            Drawings.AddItem(new MenuItem("kill", "Killable").SetValue(true));

            Menu.AddSubMenu(Drawings);

            var movement = new MenuItem("movement", "Disable orbwalk movement").SetValue(false);
            movement.ValueChanged +=
            delegate(object sender, OnValueChangeEventArgs eventArgs)
            {
                Orbwalker.SetMovement(!eventArgs.GetNewValue<bool>());
            };

            Menu.AddItem(movement);

            Menu.AddToMainMenu();

            Drawing.OnDraw += Drawing_OnDraw;
            Drawing.OnEndScene += Drawing_OnEndScene;
            Game.OnUpdate += Game_OnUpdate;
            Obj_AI_Hero.OnProcessSpellCast += Obj_AI_Hero_OnProcessSpellCast;
            Orbwalking.BeforeAttack += Orbwalking_BeforeAttack;
            AntiGapcloser.OnEnemyGapcloser += AntiGapcloser_OnEnemyGapcloser;
            Interrupter.OnPossibleToInterrupt += Interrupter_OnPossibleToInterrupt;

            Orbwalker.SetMovement(!Menu.Item("movement").GetValue<bool>());

            Game.PrintChat("<font color = \"#33CCCC\">[xcsoft] Twisted Fate -</font> Loaded");
        }
开发者ID:gn00433001,项目名称:LeagueSharp-2,代码行数:101,代码来源:Program.cs

示例2: Game_OnGameLoad

        private static void Game_OnGameLoad(EventArgs args)
        {
            _player = ObjectManager.Player;

            if (ObjectManager.Player.ChampionName != "Draven")
            {
                Notifications.AddNotification(new Notification("Not Draven? Draaaaaaaaaven.", 5));
                return;
            }

            Config = new Menu("FuckingAwesomeDraven", "FuckingAwesomeDraven", true);

            Orbwalker = new Orbwalking.Orbwalker(Config.AddSubMenu(new Menu("Orbwalking", "Orbwalking")));

            TargetSelector.AddToMenu(Config.AddSubMenu(new Menu("Target Selector", "Target Selector")));

            var comboMenu = Config.AddSubMenu(new Menu("Combo", "Combo"));

            comboMenu.AddItem(new MenuItem("UQC", "Use Q").SetValue(true));
            comboMenu.AddItem(new MenuItem("UWC", "Use W").SetValue(true));
            comboMenu.AddItem(new MenuItem("UEC", "Use E").SetValue(true));
            comboMenu.AddItem(new MenuItem("URC", "Use R").SetValue(true));
            comboMenu.AddItem(
                new MenuItem("URCM", "R Mode").SetValue(new StringList(new[] { "Out of Range KS", "KS (any time)" })));
            comboMenu.AddItem(new MenuItem("forceR", "Force R on Target").SetValue(new KeyBind('T', KeyBindType.Press)));

            var harassMenu = Config.AddSubMenu(new Menu("Harass", "Harass"));

            harassMenu.AddItem(new MenuItem("UQH", "Use Q").SetValue(true));
            harassMenu.AddItem(new MenuItem("UWH", "Use W").SetValue(true));
            harassMenu.AddItem(new MenuItem("UEH", "Use E").SetValue(true));

            var jungleMenu = Config.AddSubMenu(new Menu("MinionClear", "MinionClear"));

            jungleMenu.AddItem(new MenuItem("sdfsdf", "Jungle Clear"));
            jungleMenu.AddItem(new MenuItem("UQJ", "Use Q").SetValue(true));
            jungleMenu.AddItem(new MenuItem("UWJ", "Use W").SetValue(true));
            jungleMenu.AddItem(new MenuItem("UEJ", "Use E").SetValue(true));
            jungleMenu.AddItem(new MenuItem("sdffdsdf", "Wave Clear"));
            jungleMenu.AddItem(new MenuItem("UQWC", "Use Q").SetValue(true));
            jungleMenu.AddItem(new MenuItem("WCM", "Min Mana for Waveclear (%)").SetValue(new Slider(20)));

            // Axe Menu
            var axe = Config.AddSubMenu(new Menu("Axe Catching", "Axe Catching"));

            axe.AddItem(new MenuItem("catching", "Catching Enabled").SetValue(new KeyBind('M', KeyBindType.Toggle)));
            axe.AddItem(new MenuItem("useWCatch", "Use W to Catch (smart)").SetValue(false));
            axe.AddItem(
                new MenuItem("catchRadiusMode", "Catch Radius Mode").SetValue(
                    new StringList(new[] { "Mouse Mode", "Sector Mode" })));
            axe.AddItem(new MenuItem("sectorAngle", "Sector Angle").SetValue(new Slider(177, 1, 360)));
            axe.AddItem(new MenuItem("catchRadius", "Catch Radius").SetValue(new Slider(600, 300, 1500)));
            axe.AddItem(new MenuItem("ignoreTowerReticle", "Ignore Tower Reticle").SetValue(true));
            axe.AddItem(new MenuItem("clickRemoveAxes", "Remove Axes With Click").SetValue(true));

            Antispells.Init();

            var draw = Config.AddSubMenu(new Menu("Draw", "Draw"));
            draw.AddItem(new MenuItem("DABR", "Disable All Drawings but Reticle").SetValue(false));
            draw.AddItem(new MenuItem("DE", "Draw E Range").SetValue(new Circle(false, System.Drawing.Color.White)));
            draw.AddItem(new MenuItem("DR", "Draw R Range").SetValue(new Circle(false, System.Drawing.Color.White)));
            draw.AddItem(
                new MenuItem("DCS", "Draw Catching State").SetValue(new Circle(true, System.Drawing.Color.White)));
            draw.AddItem(
                new MenuItem("DCA", "Draw Current Axes").SetValue(new Circle(false, System.Drawing.Color.White)));
            draw.AddItem(
                new MenuItem("DCR", "Draw Catch Radius").SetValue(new Circle(true, System.Drawing.Color.White)));
            draw.AddItem(new MenuItem("DAR", "Draw Axe Spots").SetValue(new Circle(true, System.Drawing.Color.White)));
            draw.AddItem(
                new MenuItem("DKM", "Draw Killable Minion").SetValue(new Circle(true, System.Drawing.Color.White)));

            var info = Config.AddSubMenu(new Menu("Information", "info"));
            info.AddItem(new MenuItem("Msddsds", "if you would like to donate via paypal"));
            info.AddItem(new MenuItem("Msdsddsd", "you can do so by sending money to:"));
            info.AddItem(new MenuItem("Msdsadfdsd", "[email protected]"));

            Config.AddItem(new MenuItem("Mgdgdfgsd", "Version: 0.0.4-0"));
            Config.AddItem(new MenuItem("Msd", "Made By FluxySenpai"));

            Config.AddToMainMenu();

            Notifications.AddNotification(new Notification("Fucking Awesome Draven - Loaded", 5));
            Notifications.AddNotification("Who wants some Draven?", 5);

            _spells[Spells.E].SetSkillshot(250f, 130f, 1400f, false, SkillshotType.SkillshotLine);
            _spells[Spells.R].SetSkillshot(400f, 160f, 2000f, false, SkillshotType.SkillshotLine);

            Orbwalker.SetAttack(false);
            Orbwalker.SetMovement(false);

            GameObject.OnCreate += AxeCatcher.OnCreate;
            GameObject.OnDelete += AxeCatcher.OnDelete;
            Obj_AI_Base.OnProcessSpellCast += AxeCatcher.Obj_AI_Hero_OnProcessSpellCast;
            Drawing.OnDraw += eventArgs => AxeCatcher.Draw();
            Game.OnUpdate += Game_OnGameUpdate;
            Game.OnWndProc += AxeCatcher.GameOnOnWndProc;
        }
开发者ID:ramonstro2323,项目名称:FARepo,代码行数:97,代码来源:Program.cs

示例3: Game_OnGameLoad

        /// <summary>
        ///     The game_ on game load.
        /// </summary>
        private static void Game_OnGameLoad()
        {
            Configuration.Miscellaneous.AddItem(new MenuItem("Debug", "Debug Mode")).SetValue<bool>(false);

            // CHANGE THIS IF YOU WANT DEBUG ENABLED ON FIRST LOAD
            Logger.Print(string.Format("AIO Version {0} Loaded.", Version));

            if (Champion != null)
            {
                #region Menu OnLoad

                Orbwalker = new Orbwalking.Orbwalker(Configuration.Main.AddSubMenu(new Menu("Orbwalk", "Orbwalk")));
                DamageIndicator = new HpBarIndicator(ObjectManager.Player);

                Configuration.Draw.AddItem(new MenuItem("Indicator", "HP Damage Indicator"))
                    .SetValue<bool>(true)
                    .ValueChanged += (a, b) =>
                        {
                            if (b.GetNewValue<bool>())
                            {
                                Logger.Print("Indicator has been disabled.");
                            }

                            DamageIndicator.Enabled = b.GetNewValue<bool>();
                        };
                Configuration.Draw.AddItem(new MenuItem("IndicatorColor", "Damage Indicator Color"))
                    .SetValue<Color>(Color.Green)
                    .ValueChanged += (a, b) =>
                        {
                            var color = b.GetNewValue<Color>();
                            DamageIndicator.DrawColor = new SharpDX.Color(color.R, color.G, color.B, color.A);
                        };
                Configuration.Miscellaneous.AddItem(
                    new MenuItem("BuiltIn", "Disable Built-In Orbwalker").SetValue<bool>(false)).ValueChanged +=
                    (a, b) =>
                        {
                            if (b.GetNewValue<bool>())
                            {
                                Logger.Print(
                                    "Built-In orbwalker disabled, feel free to use any external orb walker of your choice");
                            }

                            Orbwalker.SetMovement(!b.GetNewValue<bool>());
                            Orbwalker.SetAttack(!b.GetNewValue<bool>());
                        };
                Configuration.Miscellaneous.AddItem(new MenuItem("CustomPrediction", "Use Custom Prediction", true))
                    .SetValue<bool>(true)
                    .ValueChanged += (a, b) =>
                        {
                            if (b.GetNewValue<bool>())
                            {
                                Logger.Print("Custom prediction enabled, turn on Debug to see prediction circle");
                            }
                        };

                foreach (var spell in Champion.GetList())
                {
                    if (spell.CastingType == ChampionSpell.CastType.LinearCollision
                        || spell.CastingType == ChampionSpell.CastType.Circle)
                    {
                        spell.CreateHandler(ChampionSpell.HandlerType.Immobile);
                        spell.CreateHandler(ChampionSpell.HandlerType.Dash);
                    }

                    spell.CreateHandler(ChampionSpell.HandlerType.Killable);
                    spell.CreateHandler(ChampionSpell.HandlerType.Farm);
                    spell.CreateHandler(ChampionSpell.HandlerType.OnMinimumHit);

                    #region Range Circle

                    var circle = new Render.Circle(ObjectManager.Player, spell.Range, Color.AliceBlue);

                    Configuration.Draw.AddItem(
                        new MenuItem(spell.String, string.Format("Draw {0}", spell.String)))
                        .SetValue<Circle>(new Circle(false, Color.Aqua, spell.Range))
                        .ValueChanged += (a, b) => { circle.Color = b.GetNewValue<Circle>().Color; };

                    circle.VisibleCondition =
                        (a) =>
                        Configuration.Draw.Item(spell.String).GetValue<Circle>().Active
                        && ObjectManager.Player.IsVisible;

                    circle.Add();

                    #endregion

                    #region Damage Indicator

                    DamageIndicator.AddSpell(spell.Slot);

                    #endregion
                }

                #endregion

                #region Champion#OnLoad call

//.........这里部分代码省略.........
开发者ID:werdbrian,项目名称:AIO,代码行数:101,代码来源:Program.cs


注:本文中的LeagueSharp.Common.Orbwalking.Orbwalker.SetMovement方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。