Ejemplo n.º 1
0
        //private void BufGain(AIBaseClient sender, AIBaseClientBuffGainEventArgs args)
        //{
        //    if (sender.IsMe)
        //    {
        //        Game.Print(args.Buff.Name);
        //    }
        //}

        private static void DrawingOnOnDraw(EventArgs args)
        {
            var drawQ     = Menu["Drawing"].GetValue <MenuBool>("DrawQ");
            var drawE     = Menu["Drawing"].GetValue <MenuBool>("DrawE");
            var drawR     = Menu["Drawing"].GetValue <MenuBool>("DrawR");
            var drawRPred = Menu["Drawing"].GetValue <MenuBool>("DrawRPred");
            var p         = Player.Position;

            if (drawQ)
            {
                Render.Circle.DrawCircle(p, Q.Range, Q.IsReady() ? System.Drawing.Color.Aqua : System.Drawing.Color.Red);
            }

            if (drawE)
            {
                Render.Circle.DrawCircle(p, E.Range, E.IsReady() ? System.Drawing.Color.Aqua : System.Drawing.Color.Red);
            }

            if (drawR)
            {
                Render.Circle.DrawCircle(p, R.Range, R.IsReady() ? System.Drawing.Color.Aqua : System.Drawing.Color.Red);
            }

            if (drawRPred && R.IsReady() && DrawTarget.IsValidTarget())
            {
                RRectangle.Draw(System.Drawing.Color.CornflowerBlue, 3);
            }
        }
Ejemplo n.º 2
0
        private static void GameOnOnUpdate(EventArgs args)
        {
            DrawTarget = TargetSelector.GetTarget(R.Range);

            if (DrawTarget.IsValidTarget())
            {
                RRectangle.Start = Player.Position.ToVector2();
                RRectangle.End   = R.GetPrediction(DrawTarget).CastPosition.ToVector2();
                RRectangle.UpdatePolygon();
            }

            if (!Player.CanCast)
            {
                return;
            }

            switch (Orbwalker.ActiveMode)
            {
            case OrbwalkerMode.Harass:
                DoHarass();
                break;

            case OrbwalkerMode.Combo:
                DoCombo();
                break;
            }
        }
Ejemplo n.º 3
0
        private static void DrawingOnOnDraw(EventArgs args)
        {
            var drawQ     = Menu.Item("DrawQ").IsActive();
            var drawE     = Menu.Item("DrawE").IsActive();
            var drawR     = Menu.Item("DrawR").IsActive();
            var drawRPred = Menu.Item("DrawRPred").IsActive();
            var p         = Player.Position;

            if (drawQ)
            {
                Render.Circle.DrawCircle(p, Q.Range, Q.IsReady() ? Color.Aqua : Color.Red);
            }

            if (drawE)
            {
                Render.Circle.DrawCircle(p, E.Range, E.IsReady() ? Color.Aqua : Color.Red);
            }

            if (drawR)
            {
                Render.Circle.DrawCircle(p, R.Range, R.IsReady() ? Color.Aqua : Color.Red);
            }

            if (drawRPred && R.IsReady() && DrawTarget.IsValidTarget())
            {
                RRectangle.Draw(Color.CornflowerBlue, 3);
            }
        }
Ejemplo n.º 4
0
        private static void GameOnOnUpdate(EventArgs args)
        {
            DrawTarget = TargetSelector.GetTarget(R.Range, DamageType.Magical);

            if (DrawTarget.IsValidTarget())
            {
                RRectangle.Start = Player.Position.To2D();
                RRectangle.End   = R.GetPrediction(DrawTarget).CastPosition.To2D();
                RRectangle.UpdatePolygon();
            }

            if (!Player.CanCast)
            {
                return;
            }

            switch (Orbwalker.ActiveModesFlags)
            {
            case Orbwalker.ActiveModes.Harass:
                DoHarass();
                break;

            case Orbwalker.ActiveModes.Combo:
                DoCombo();
                break;

            case Orbwalker.ActiveModes.JungleClear:
                Jungleclear();
                break;

            case Orbwalker.ActiveModes.LaneClear:
                Laneclear();
                break;
            }
        }
Ejemplo n.º 5
0
        private void DrawingOnOnDraw(EventArgs args)
        {
            if (DrawQ)
            {
                Drawing.DrawCircle(Player.Instance.Position, Q.Range, Q.IsReady() ? Color.Aqua : Color.Red);
            }
            if (DrawE)
            {
                Drawing.DrawCircle(Player.Instance.Position, E.Range, E.IsReady() ? Color.Aqua : Color.Red);
            }
            if (DrawR)
            {
                Drawing.DrawCircle(Player.Instance.Position, R.Range, R.IsReady() ? Color.Aqua : Color.Red);
            }
            //
            var target = TargetSelector.SelectedTarget;

            if (target == null)
            {
                target = TargetSelector.GetTarget(R.Range, DamageType.Magical);
            }
            if (target != null && DrawRPred && R.IsReady() && target.IsValidTarget())
            {
                RRectangle.Start = Player.Instance.Position.To2D();
                RRectangle.End   = R.GetPrediction(target).CastPosition.To2D();
                RRectangle.UpdatePolygon();
                RRectangle.Draw(Color.CornflowerBlue, 3);
            }
        }
Ejemplo n.º 6
0
        private static void DrawingOnOnDraw(EventArgs args)
        {
            var drawQ     = drawMenu["DrawQ"].Cast <CheckBox>().CurrentValue;
            var drawE     = drawMenu["DrawE"].Cast <CheckBox>().CurrentValue;
            var drawR     = drawMenu["DrawR"].Cast <CheckBox>().CurrentValue;
            var drawRPred = drawMenu["DrawRPred"].Cast <CheckBox>().CurrentValue;
            var p         = Player.Position;

            if (drawQ)
            {
                Circle.Draw(Q.IsReady() ? Color.Aqua : Color.Red, Q.Range, p);
            }

            if (drawE)
            {
                Circle.Draw(E.IsReady() ? Color.Aqua : Color.Red, E.Range, p);
            }

            if (drawR)
            {
                Circle.Draw(R.IsReady() ? Color.Aqua : Color.Red, R.Range, p);
            }

            if (drawRPred && R.IsReady() && DrawTarget.IsValidTarget())
            {
                RRectangle.Draw(System.Drawing.Color.CornflowerBlue, 3);
            }
        }
Ejemplo n.º 7
0
        //============================================================
        // <T>开始绘制处理。</T>
        //
        // @param args 参数
        //============================================================
        public bool Constains(int x, int y)
        {
            int centerX = Size.Width / 2;
            int centerY = Size.Height / 2;

            return(RRectangle.ConstainsPoint(
                       Point.X - centerX - Padding, Point.Y - centerY - Padding,
                       Size.Width + Padding + Padding, Size.Height + Padding + Padding,
                       x, y));
        }
Ejemplo n.º 8
0
        //============================================================
        // <T>结束绘制处理。</T>
        //
        // @param args 参数
        //============================================================
        public virtual bool OnTest(SUiTestArgs args)
        {
            float      scale    = _context.Scale;
            SIntPoint2 position = CalculateDisplayPosition();
            bool       test     = RRectangle.ConstainsPoint(position.X, position.Y, (int)(ControlResource.Size.Width * scale), (int)(ControlResource.Size.Height * scale), args.Point.X, args.Point.Y);

            if (test)
            {
                args.Push(this);
            }
            return(test);
        }