public CustomMenu(Ignite ignite) { obj = ignite; menu = new Menu("Ignite#", "ignite", true); Load(ignite); }
public CastOnBestTarget(Ignite obj) { ignite = obj.SummonerDot; menu = obj.menu.Get(); //Game.OnWndProc += CastIgnite; Game.OnUpdate += CastIgnite; }
public Drawings(Ignite obj) { ignite = obj.SummonerDot; if (obj.menu.Get().Item("ignite#range").GetValue<bool>()) { Drawing.OnDraw += IgniteRange; } }
public AutoKill(Ignite obj) { ignite = obj.SummonerDot; if (obj.menu.Get().Item("ignite#autokill").GetValue<bool>()) { Game.OnUpdate += CastIgnite; } }
private void Load(Ignite ignite) { menu.AddItem( new MenuItem("ignite#mapedkey", "Key").SetValue( new KeyBind('F', KeyBindType.Press))); menu.AddItem( new MenuItem("ignite#target", "Cast on").SetValue( new StringList(new[] { "Lowest target", "Use target selector" }))); MenuItem autoKill = new MenuItem("ignite#autokill", "Auto kill").SetValue(false); menu.AddItem(autoKill); autoKill.ValueChanged += delegate(object sender, OnValueChangeEventArgs e) { if (e.GetNewValue<bool>()) { Game.OnUpdate += obj.AutoKill.CastIgnite; } else { Game.OnUpdate -= obj.AutoKill.CastIgnite; } }; MenuItem drawRange = new MenuItem("ignite#range", "Draw range").SetValue(false); menu.AddItem(drawRange); drawRange.ValueChanged += delegate(object sender, OnValueChangeEventArgs e) { if (e.GetNewValue<bool>()) { Drawing.OnDraw += obj.drawings.IgniteRange; } else { Drawing.OnDraw -= obj.drawings.IgniteRange; } }; menu.AddToMainMenu(); }
private static void Main(string[] args) { CustomEvents.Game.OnGameLoad += eventArgs => { Ignite inite = new Ignite(); }; }