private static void Drawing_OnEndScene(EventArgs args) { if (!BaseMenu.VChecked("Tracker.Enabled")) { return; } Teleporting = Teleporting.OrderByDescending(x => x.Value.End).ToDictionary(x => x.Key, x => x.Value); TextureDraw.Draw(Teleporting); }
static BaseUlt() { var me = Database.Ulti.FirstOrDefault(hero => hero.Champion == Player.Instance.Hero); if (me != null) { SpellBase = new Spell.Skillshot(me.Slot, me.Range, me.Type, me.CastDelay, me.Speed, me.Width) { AllowedCollisionCount = me.AllowedCollisionCount, }; } else { SpellBase = null; } if (MainMenu.MenuInstances.FirstOrDefault(x => x.Key.Contains("UBAddons")).Value == null) { Debug.Print("There's has a problem when trying to inject BaseUlt / Reacall Tracker. Please report to Uzumaki Boruto", Console_Message.Error); } else { try { var Menu = MainMenu.MenuInstances.FirstOrDefault(x => x.Key.Contains("UBAddons")).Value.FirstOrDefault(); BaseMenu = Menu.AddSubMenu("BaseUlt", "UBAddons.BaseUlt", "Recall Tracker / Base Ult for UBAddons"); { BaseMenu.AddGroupLabel("Recall / Teleport Tracker"); BaseMenu.Add("Tracker.Enabled", new CheckBox("Enabled tracker")); BaseMenu.Add("Tracker.Enabled.Ally", new CheckBox("Enabled with ally")); //BaseMenu.Add("Font.Color", new ColorPicker("Font Color", ColorReader.Load("Font.Color", Color.FromArgb(255, 0, 67)))); if (Database.Ulti.Any(x => Player.Instance.Hero.Equals(x.Champion))) { BaseMenu.AddGroupLabel("Base Ult"); var auto = BaseMenu.Add("Base.Enabled", new CheckBox("Auto Base Ult", false)); IsEnable = auto.CurrentValue; auto.OnValueChange += delegate(ValueBase <bool> sender, ValueBase <bool> .ValueChangeArgs args) { IsEnable = args.NewValue; }; var combo = BaseMenu.Add("Base.Combo", new CheckBox("Disable while combo", true)); PreventCombo = combo.CurrentValue; combo.OnValueChange += delegate(ValueBase <bool> sender, ValueBase <bool> .ValueChangeArgs args) { PreventCombo = args.NewValue; }; var Key = BaseMenu.Add("Base.Key.Enabled", new KeyBind("Base Ult Key", false, KeyBind.BindTypes.HoldActive, 'Z')); Key.OnValueChange += delegate(ValueBase <bool> sender, ValueBase <bool> .ValueChangeArgs args) { if (args.NewValue && SpellBase.IsReady() && HasATarget) { IsActiving = true; Core.DelayAction(() => IsActiving = false, 8000); } }; BaseMenu.AddLabel("It will has a notification when can kill an enemy, just press key when notification"); if (!EntityManager.Heroes.Enemies.Any()) { BaseMenu.AddLabel("Couldn't load any champ, some thing wrong"); } else { BaseMenu.Add("Base.Time", new Slider("Max {0} second(s) from last seen", 15, 1, 60)); foreach (var enemy in EntityManager.Heroes.Enemies) { BaseMenu.Add("Base." + enemy.ChampionName, new CheckBox("Ult on " + enemy.ChampionName)); EnemyList.Add(enemy.NetworkId, new Teleport_Infomation(enemy, false)); } } } else { BaseMenu.AddLabel(Player.Instance.ChampionName + " is not supported yet", 90); } } TextureDraw.Initialize(); Teleport.OnTeleport += Teleport_OnTeleport; Drawing.OnEndScene += Drawing_OnEndScene; } catch (Exception e) { Debug.Print(e.ToString(), Console_Message.Error); } } }