//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); } }
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); } }
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); } }
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); } }