/// <summary> /// An application-defined function that processes messages sent to a window. /// </summary> /// <param name="message">The message.</param> /// <param name="wparam">Additional message information.</param> /// <param name="lparam">Additional message information.</param> internal override void WndProc(uint message, uint wparam, int lparam) { //No need to process if the item does not belong to a menu yet if (this.Parent == null) { return; } if (this.Visible) { var x = lparam & 0xffff; var y = lparam >> 16; if (message == (ulong)WindowsMessages.WM_LBUTTONDOWN) { if (!this.KeyIsBeingSet && this.GetBounds(this.Position).Contains(x, y)) { if (!MenuManager.Instance.Theme.GetMenuBoolControlBounds(this.Position, this.Parent.Width) .Contains(x, y)) { this.KeyIsBeingSet = true; } else { this.UpdateValue(!this.Value); } } } if (this.KeyIsBeingSet && message == (ulong)WindowsMessages.WM_KEYUP) { this.UpdateKey((KeyCode)wparam); this.KeyIsBeingSet = false; } } if (this.Inactive || wparam != (ulong)this.Key || this.KeyIsBeingSet || MenuGUI.IsShopOpen() || MenuGUI.IsChatOpen()) { return; } if (this.KeybindType == KeybindType.Press) { if (message == (ulong)WindowsMessages.WM_KEYDOWN) { this.UpdateValue(true); } else if (message == (ulong)WindowsMessages.WM_KEYUP) { this.UpdateValue(false); } } else if (message == (ulong)WindowsMessages.WM_KEYUP) { this.UpdateValue(!this.Value); } }
private static void OnRender() { try { if (Me.IsDead || MenuGUI.IsChatOpen() || MenuGUI.IsShopOpen()) { return; } if (DrawMenu["FlowersKalista.DrawMenu.Q"].Enabled && Q.Ready) { Render.Circle(Me.Position, Q.Range, 23, Color.FromArgb(0, 255, 161)); } if (DrawMenu["FlowersKalista.DrawMenu.W"].Enabled && W.Ready) { Render.Circle(Me.Position, W.Range, 23, Color.FromArgb(86, 0, 255)); } if (DrawMenu["FlowersKalista.DrawMenu.E"].Enabled && E.Ready) { Render.Circle(Me.Position, E.Range, 23, Color.FromArgb(0, 136, 255)); } if (DrawMenu["FlowersKalista.DrawMenu.R"].Enabled && R.Ready) { Render.Circle(Me.Position, R.Range, 23, Color.FromArgb(251, 0, 133)); } } catch (Exception ex) { Console.WriteLine("Error in MyEventManager.OnRender." + ex); } }
private static void OnRender() { try { if (Me.IsDead || MenuGUI.IsChatOpen() || MenuGUI.IsShopOpen()) { return; } if (DrawMenu["FlowersKatarina.DrawMenu.Dagger"].Enabled) { foreach (var position in Daggers.Where(x => !x.obj.IsDead && x.obj.IsValid).Select(x => x.pos)) { if (position != Vector3.Zero) { Render.Circle(position, PassiveRange, 30, Color.FromArgb(69, 0, 255)); } } } if (DrawMenu["FlowersKatarina.DrawMenu.Q"].Enabled && Q.Ready) { Render.Circle(Me.Position, Q.Range, 23, Color.FromArgb(251, 0, 133)); } if (DrawMenu["FlowersKatarina.DrawMenu.E"].Enabled && E.Ready) { Render.Circle(Me.Position, E.Range, 23, Color.FromArgb(0, 136, 255)); } if (DrawMenu["FlowersKatarina.DrawMenu.R"].Enabled && R.Ready) { Render.Circle(Me.Position, R.Range, 23, Color.FromArgb(0, 255, 161)); } Vector2 MePos = Vector2.Zero; Render.WorldToScreen(ObjectManager.GetLocalPlayer().ServerPosition, out MePos); if (DrawMenu["FlowersKatarina.DrawMenu.ComboE"].Enabled) { Render.Text(MePos.X - 57, MePos.Y + 68, Color.Orange, "Only E KillAble(" + ComboMenu["FlowersKatarina.ComboMenu.EKillAble"].As <MenuKeyBind>().Key + "): " + (ComboMenu["FlowersKatarina.ComboMenu.EKillAble"].As <MenuKeyBind>().Enabled ? "On" : "Off")); } if (DrawMenu["FlowersKatarina.DrawMenu.ComboMode"].Enabled) { Render.Text(MePos.X - 57, MePos.Y + 88, Color.Orange, "Combo Mode(" + ComboMenu["FlowersKatarina.ComboMenu.SwitchMode"].As <MenuKeyBind>().Key + "): " + ComboMenu["FlowersKatarina.ComboMenu.Mode"].As <MenuList>().SelectedItem); } } catch (Exception ex) { Console.WriteLine("Error in MyEventManager.OnRender." + ex); } }
/// <summary> /// Casts the spell on unit. /// </summary> /// <param name="spell">The spell.</param> /// <param name="obj">The object.</param> /// <returns><c>true</c> if XXXX, <c>false</c> otherwise.</returns> public static bool CastOnUnit(this Aimtec.SDK.Spell spell, GameObject obj) { if (!spell.Ready || MenuGUI.IsChatOpen() || MenuGUI.IsShopOpen()) { return(false); } return(Player.SpellBook.CastSpell(spell.Slot, obj)); }
private static void OnRender() { try { if (ObjectManager.GetLocalPlayer().IsDead || ObjectManager.GetLocalPlayer().IsRecalling() || MenuGUI.IsChatOpen() || MenuGUI.IsShopOpen()) { return; } Vector2 MePos = Vector2.Zero; Render.WorldToScreen(ObjectManager.GetLocalPlayer().ServerPosition, out MePos); if (DrawMenu["FlowersRiven.DrawMenu.E"].Enabled && E.Ready) { Render.Circle(Me.ServerPosition, E.Range, 23, Color.FromArgb(0, 136, 255)); } if (DrawMenu["FlowersRiven.DrawMenu.R"].Enabled && R.Ready) { Render.Circle(Me.ServerPosition, R.Range, 23, Color.FromArgb(251, 0, 133)); } if (DrawMenu["FlowersRiven.DrawMenu.ComboR"].Enabled) { Render.Text(MePos.X - 57, MePos.Y + 68, Color.Orange, "Combo R(" + ComboMenu["FlowersRiven.ComboMenu.R"].As <MenuKeyBind>().Key + "): " + (ComboMenu["FlowersRiven.ComboMenu.R"].As <MenuKeyBind>().Enabled ? "On" : "Off")); } if (DrawMenu["FlowersRiven.DrawMenu.Burst"].Enabled) { var target = TargetSelector.GetSelectedTarget(); Render.Text(MePos.X - 57, MePos.Y + 88, Color.Orange, "Burst Combo(" + BurstMenu["FlowersRiven.BurstMenu.Key"].As <MenuKeyBind>().Key + "): " + (BurstMenu["FlowersRiven.BurstMenu.Key"].As <MenuKeyBind>().Enabled ? (target != null ? "Lock: " + target.ChampionName : "No Target") : "Off")); } } catch (Exception ex) { Console.WriteLine("Error in MyEventManager.OnRender." + ex); } }
private static void OnRender() { try { if (Me.IsDead || MenuGUI.IsChatOpen() || MenuGUI.IsShopOpen()) { return; } if (DrawMenu["FlowersRyze.DrawMenu.Q"].Enabled && Q.Ready) { Render.Circle(Me.Position, Q.Range, 23, Color.FromArgb(251, 0, 133)); } if (DrawMenu["FlowersRyze.DrawMenu.W"].Enabled && W.Ready) { Render.Circle(Me.Position, W.Range, 23, Color.FromArgb(86, 0, 255)); } if (DrawMenu["FlowersRyze.DrawMenu.E"].Enabled && E.Ready) { Render.Circle(Me.Position, E.Range, 23, Color.FromArgb(0, 136, 255)); } if (DrawMenu["FlowersRyze.DrawMenu.R"].Enabled && R.Ready) { Render.Circle(Me.Position, R.Range, 23, Color.FromArgb(0, 255, 161)); } Vector2 MePos = Vector2.Zero; Render.WorldToScreen(ObjectManager.GetLocalPlayer().ServerPosition, out MePos); if (DrawMenu["FlowersRyze.DrawMenu.Combo"].Enabled) { Render.Text(MePos.X - 57, MePos.Y + 88, Color.Orange, "Combo Mode(" + ComboMenu["FlowersRyze.ComboMenu.ModeKey"].As <MenuKeyBind>().Key + "): " + ComboMenu["FlowersRyze.ComboMenu.Mode"].As <MenuList>().SelectedItem); } } catch (Exception ex) { Console.WriteLine("Error in MyEventManager.OnRender." + ex); } }
private static void OnRender() { try { if (Me.IsDead || MenuGUI.IsChatOpen() || MenuGUI.IsShopOpen()) { return; } if (DrawMenu["FlowersDraven.DrawMenu.E"].Enabled && E.Ready) { Render.Circle(Me.Position, E.Range, 23, Color.FromArgb(0, 136, 255)); } if (DrawMenu["FlowersDraven.DrawMenu.R"].Enabled && R.Ready) { Render.Circle(Me.Position, R.Range, 23, Color.FromArgb(251, 0, 133)); } if (DrawMenu["FlowersDraven.DrawMenu.AxeRange"].Enabled) { Render.Circle(Game.CursorPos, AxeMenu["FlowersDraven.AxeMenu.CatchRange"].Value, 23, Color.FromArgb(0, 255, 161)); } if (DrawMenu["FlowersDraven.DrawMenu.AxePosition"].Enabled) { foreach (var axe in AxeList.Where(x => !x.Key.IsDead && x.Key.IsValid).Select(x => x.Key)) { if (axe != null && axe.IsValid) { Render.Circle(axe.Position, 130, 23, Color.FromArgb(86, 0, 255)); } } } } catch (Exception ex) { Console.WriteLine("Error in MyEventManager.OnRender." + ex); } }
/// <summary> /// The game on update callback. /// </summary> private void Game_OnUpdate() { if (ObjectManager.GetLocalPlayer().IsDead || MenuGUI.IsChatOpen() || MenuGUI.IsShopOpen() || ObjectManager.GetLocalPlayer().IsRecalling()) { return; } this.spells.Where(spell => IsSpellActive(spell.SpellSlot, Orbwalker.Implementation.Combo)) .ToList() .ForEach(spell => spell.OnCombo()); this.spells.Where(spell => IsSpellActive(spell.SpellSlot, Orbwalker.Implementation.LastHit)) .ToList() .ForEach(spell => spell.OnLastHit()); this.spells.Where(spell => IsSpellActive(spell.SpellSlot, Orbwalker.Implementation.Mixed)) .ToList() .ForEach(spell => spell.OnMixed()); this.spells.ToList().ForEach(spell => spell.OnUpdate()); }
internal static void AddDrawToMenu(Menu mainMenu) { try { if (mainMenu != null) { mainMenu.Add(new MenuBool("MyManaManager.DrawSpelFarm", "Draw Spell Farm Status")); Render.OnRender += delegate { try { if (ObjectManager.GetLocalPlayer().IsDead || ObjectManager.GetLocalPlayer().IsRecalling() || MenuGUI.IsChatOpen() || MenuGUI.IsShopOpen()) { return; } if (mainMenu["MyManaManager.DrawSpelFarm"].Enabled) { Vector2 MePos = Vector2.Zero; Render.WorldToScreen(ObjectManager.GetLocalPlayer().Position, out MePos); Render.Text(MePos.X - 57, MePos.Y + 48, System.Drawing.Color.FromArgb(242, 120, 34), "Spell Farms:" + (SpellFarm ? "On" : "Off")); } } catch (Exception ex) { Console.WriteLine("Error in MyManaManager.OnRender." + ex); } }; } } catch (Exception ex) { Console.WriteLine("Error in MyManaManager.AddDrawToMenu." + ex); } }
private static void OnRender() { if (Me.IsDead || MenuGUI.IsChatOpen() || MenuGUI.IsShopOpen()) { return; } if (DrawOption.GetBool("AxeRange").Enabled) { Render.Circle(Game.CursorPos, AxeOption.GetSlider("CatchRange").Value, 30, Color.FromArgb(0, 255, 161)); } if (DrawOption.GetBool("AxePosition").Enabled) { foreach (var axe in AxeList.Where(x => !x.Key.IsDead && x.Key.IsValid).Select(x => x.Key)) { if (axe != null && axe.IsValid) { Render.Circle(axe.Position, 130, 30, Color.FromArgb(86, 0, 255)); } } } }
internal static void AddEvent() { Render.OnRender += delegate { if (ObjectManager.GetLocalPlayer().IsDead || MenuGUI.IsChatOpen() || MenuGUI.IsShopOpen()) { return; } if (QRange > 0) { DrawQ(); } if (WRange > 0) { DrawW(); } if (ERange > 0) { DrawE(); } if (RRange > 0) { DrawR(); } if (QExtendRange > 0) { DrawQExtend(); } }; }
internal static void AddDrawToMenu(Menu mainMenu) { if (mainMenu != null) { var newMenu = new Menu("MyManaManager.SpellFarmDraw", "Spell Farm") { new MenuBool("MyManaManager.DrawSpelFarm", "Draw Spell Farm Status"), new MenuBool("MyManaManager.DrawSpellHarass", "Draw Spell Harass Status") }; mainMenu.Add(newMenu); Render.OnRender += delegate { if (ObjectManager.GetLocalPlayer().IsDead || MenuGUI.IsChatOpen() || MenuGUI.IsShopOpen()) { return; } if (newMenu["MyManaManager.DrawSpelFarm"].Enabled) { Vector2 MePos = Vector2.Zero; Render.WorldToScreen(ObjectManager.GetLocalPlayer().Position, out MePos); Render.Text(MePos.X - 57, MePos.Y + 48, System.Drawing.Color.FromArgb(242, 120, 34), "Spell Farms:" + (SpellFarm ? "On" : "Off")); } if (newMenu["MyManaManager.DrawSpellHarass"].Enabled) { Vector2 MePos = Vector2.Zero; Render.WorldToScreen(ObjectManager.GetLocalPlayer().Position, out MePos); Render.Text(MePos.X - 57, MePos.Y + 68, System.Drawing.Color.FromArgb(242, 120, 34), "Spell Harass:" + (SpellHarass ? "On" : "Off")); } }; } }
internal static void AddQExtend(Aimtec.SDK.Spell spell, bool enabled = false) { spellMenu.Add(new MenuBool("DrawQExtend" + heroName, "Draw Q Extend Range", enabled)); Render.OnRender += delegate { if (ObjectManager.GetLocalPlayer().IsDead || MenuGUI.IsChatOpen() || MenuGUI.IsShopOpen()) { return; } if (spellMenu["DrawQExtend" + heroName].As <MenuBool>().Enabled&& ObjectManager.GetLocalPlayer().SpellBook.GetSpell(SpellSlot.Q).Level > 0 && ObjectManager.GetLocalPlayer().SpellBook.CanUseSpell(SpellSlot.Q)) { Render.Circle(ObjectManager.GetLocalPlayer().ServerPosition, spell.Range, 43, Color.FromArgb(0, 255, 161)); } }; }