protected override void OnActivate() { base.OnActivate(); this.Shockwave = this.Context.AbilityFactory.GetAbility <magnataur_shockwave>(); this.Empower = this.Context.AbilityFactory.GetAbility <magnataur_empower>(); this.Skewer = this.Context.AbilityFactory.GetAbility <magnataur_skewer>(); this.ReversePolarity = this.Context.AbilityFactory.GetAbility <magnataur_reverse_polarity>(); var factory = this.Config.Hero.Factory; var itemMenu = this.Config.Hero.ItemMenu; this.Amount = factory.Item("Minimum Heroes to RP", new Slider(2, 1, 5)); this.AutoCombo = factory.Item("Auto Combo *NOT ACTIVE YET*", false); this.SkewerPrefMenu = factory.Item("Insec Type", new StringList(new[] { "Teammate", "Fountain" }, 0)); this.SkewerTarget = this.SkewerPrefMenu.GetEnum <SkewerTarget>(); this.SkewerStandalone = factory.Item("Only Skewer", new KeyBind(70)); this.AutoCombo.Item.Tooltip = "Will start combo automatically if Minimum Heroes count is matched."; this.EmpowerHeroes = factory.Item("Empower Heroes", new HeroToggler(new Dictionary <string, bool>(), false, true, true)); this.EmpowerHeroes.Item.Tooltip = "Will use empower on that heroes whenever they don't have empower on them"; this.DebugDrawings = factory.Item("Enable Debug Drawings", false); this.NullifierHeroes = itemMenu.Item("Nullifier", new HeroToggler(new Dictionary <string, bool>(), true, false, true)); this.AbyssalBladeHeroes = itemMenu.Item("Abyssal Blade", new HeroToggler(new Dictionary <string, bool>(), true, false, true)); this.AbyssalBladeHeroes = itemMenu.Item("Orchid/Bloodthorn", new HeroToggler(new Dictionary <string, bool>(), true, false, true)); this.InvisHeroes = itemMenu.Item("ShadowBlade / SilverEdge", new HeroToggler(new Dictionary <string, bool>(), true, false, true)); this.SkewerPrefMenu.PropertyChanged += this.SkewerPrefMenuPropertyChanged; }
private void SkewerPrefMenuPropertyChanged(object sender, PropertyChangedEventArgs e) { this.SkewerTarget = this.SkewerPrefMenu.GetEnum <SkewerTarget>(); }