protected override void OnDraw(EventArgs args) { if (!MenuValue.Drawings.EnableDraw) { return; } if (MenuValue.Drawings.DrawW && (!MenuValue.Drawings.ReadyW || W.IsReady())) { W.DrawRange(MenuValue.Drawings.ColorW); } if (MenuValue.Drawings.DrawE && (!MenuValue.Drawings.ReadyE || E.IsReady())) { E.DrawRange(MenuValue.Drawings.ColorE); } if (MenuValue.Drawings.DrawR && (!MenuValue.Drawings.ReadyR || R.IsReady())) { R.DrawRange(MenuValue.Drawings.ColorR); } if (MenuValue.Drawings.DrawPassive != 0) { foreach (var hero in EntityManager.Heroes.Enemies.Where(x => x.Position.IsOnScreen() && x.HasBuff("TwitchDeadlyVenom") && x.IsValidTarget())) { var buff = hero.GetBuff("TwitchDeadlyVenom"); var time = Math.Max(buff.EndTime - Game.Time, 0); var PercentRemaining = -time / 6f * 100; switch (MenuValue.Drawings.DrawPassive) { case 1: { UBDrawings.DrawCircularTimer(hero.Position, 150, MenuValue.Drawings.ColorPassive, 0, PercentRemaining); } break; case 2: { UBDrawings.DrawLinearTimer(hero.Position.WorldToScreen(), PercentRemaining, MenuValue.Drawings.ColorPassive); } break; case 3: { UBDrawings.DrawTimer(hero.Position.WorldToScreen(), time, MenuValue.Drawings.ColorPassive); } break; } } } }
protected override void OnDraw(EventArgs args) { if (!MenuValue.Drawings.EnableDraw) { return; } if (MenuValue.Drawings.DrawQ && (!MenuValue.Drawings.ReadyQ || Q.IsReady())) { Q.DrawRange(MenuValue.Drawings.ColorQ); } if (MenuValue.Drawings.DrawE && (!MenuValue.Drawings.ReadyE || E.IsReady())) { E.DrawRange(MenuValue.Drawings.ColorE); } if (MenuValue.Drawings.DrawR && (!MenuValue.Drawings.ReadyR || R.IsReady())) { R.DrawRange(MenuValue.Drawings.ColorR); } if (MenuValue.Drawings.DrawDagger != 0 && Dagger.Keys != null) { foreach (var dagger in Dagger.Keys) { float thuong = Dagger[dagger].Item1 ? 4 : Dagger[dagger].Item3 ? 1.25f : 1f; float percent = Dagger[dagger].Item2 - Game.Time > 0 ? -(Math.Abs(Dagger[dagger].Item2 - Game.Time) / thuong * 100) : 0; switch (MenuValue.Drawings.DrawDagger) { case 1: { UBDrawings.DrawCircularTimer(dagger.Position, 150, MenuValue.Drawings.ColorDagger, 0, percent); } break; case 2: { UBDrawings.DrawLinearTimer(dagger.Position.WorldToScreen(), percent, MenuValue.Drawings.ColorDagger); } break; case 3: { var time = Dagger[dagger].Item2 - Game.Time > 0 ? Dagger[dagger].Item2 - Game.Time : 0; UBDrawings.DrawTimer(dagger.Position.WorldToScreen(), time, MenuValue.Drawings.ColorDagger); } break; } if (MenuValue.Drawings.DrawStatus) { float time = new float(); switch (UpdateEStatus(dagger, out time)) { case E_Status.CannotWalk: { var pos = new Vector2(dagger.Position.WorldToScreen().X - 48, dagger.Position.WorldToScreen().Y); Drawing.DrawText(pos, Color.Red, "You can't pick it", 12); } break; case E_Status.CanWalk: { var pos = new Vector2(dagger.Position.WorldToScreen().X - 75, dagger.Position.WorldToScreen().Y); Drawing.DrawText(pos, Color.Yellow, "Your E will : " + time.ToString("N2") + " if pick", 12); } break; case E_Status.EReady: { var pos = new Vector2(dagger.Position.WorldToScreen().X - 75, dagger.Position.WorldToScreen().Y); Drawing.DrawText(pos, Color.Green, "Your E will : " + time.ToString("N2") + " if pick", 12); } break; case E_Status.StillAir: { var pos = new Vector2(dagger.Position.WorldToScreen().X - 28, dagger.Position.WorldToScreen().Y); Drawing.DrawText(pos, Color.Cyan, "It's airbone", 12); } break; } } } } }