protected override void OnActivate() { base.OnActivate(); var factory = this.Config.Hero.Factory; var itemMenu = this.Config.Hero.ItemMenu; this.KickCombo = factory.Item("Kick Combo", new KeyBind(70)); this.KickCombo.Item.Tooltip = "Will use ulti with available keys on target."; this.CliffKey = factory.Item("Shard specialization Key", new KeyBind(71)); this.CliffKey.Item.Tooltip = "Will use shards to get on cliffs or block enemy"; this.InsecPrefMenu = factory.Item("Insec Type", new StringList(new[] { "TeamMate", "Fountain" }, 0)); this.InsecType = this.InsecPrefMenu.GetEnum <InsecType>(); this.MedallionCrestHeroes = itemMenu.Item("Medallion/Solar Crest", new HeroToggler(new Dictionary <string, bool>(), true, false, false)); this.HalberdHeroes = itemMenu.Item("Halberd", new HeroToggler(new Dictionary <string, bool>(), true, false, true)); this.UrnHeroes = itemMenu.Item("Urn", new HeroToggler(new Dictionary <string, bool>(), true, false, true)); this.VesselHeroes = itemMenu.Item("Vessel", new HeroToggler(new Dictionary <string, bool>(), true, false, true)); this.AghsHandler = UpdateManager.Run(this.OnUpdate); this.InsecPrefMenu.PropertyChanged += this.InsecPrefMenuPropertyChanged; Unit.OnModifierAdded += this.OnSnowballAdded; Unit.OnModifierRemoved += this.OnSnowballRemoved; this.IceShards = this.Owner.GetAbilityById(AbilityId.tusk_ice_shards); this.Snowball = this.Owner.GetAbilityById(AbilityId.tusk_snowball); this.TagTeam = this.Owner.GetAbilityById(AbilityId.tusk_tag_team); this.LaunchSnowball = this.Owner.GetAbilityById(AbilityId.tusk_launch_snowball); this.WalrusPunch = this.Owner.GetAbilityById(AbilityId.tusk_walrus_punch); }
private void InsecPrefMenuPropertyChanged(object sender, PropertyChangedEventArgs e) { this.InsecType = this.InsecPrefMenu.GetEnum <InsecType>(); }