protected override void OnLoad(object sender, FeatureBaseEventArgs eventArgs) { base.OnLoad(sender, eventArgs); var maxdist = new SliderHelper( "Max Distance", this.Config.MaxDistance, this.Config.MinDistance, this.Config.MaxDistance); maxdist.Attach(this.Menu, this.Path); this.Config.MaxDistance = maxdist.Value; maxdist.ValueChanged += (o, args) => this.Config.MaxDistance = maxdist.Value; var minDist = new SliderHelper( "Min Distance", this.Config.MinDistance, this.Config.MinDistance, this.Config.MaxDistance); minDist.Attach(this.Menu, this.Path); this.Config.MinDistance = minDist.Value; minDist.ValueChanged += (o, args) => this.Config.MinDistance = minDist.Value; }
protected override void OnLoad(object sender, FeatureBaseEventArgs eventArgs) { base.OnLoad(sender, eventArgs); var scoreMana = new SliderHelper( "Score when mana over threshold", this.Config.ScoreWhenMana, this.Config.MinScore, this.Config.MaxScore); scoreMana.Attach(this.Menu, this.Path); this.ScoreWhenMana = scoreMana.Value; scoreMana.ValueChanged += (o, args) => this.ScoreWhenMana = args.NewValue; var minMana = new SliderHelper("Min mana", this.Config.MinMana, 0, 500); minMana.Attach(this.Menu, this.Path); this.MinMana = minMana.Value; minMana.ValueChanged += (o, args) => this.MinMana = args.NewValue; }
protected override void OnLoad(object sender, FeatureBaseEventArgs eventArgs) { base.OnLoad(sender, eventArgs); var scoreWhenCancelable = new SliderHelper( "Score when true", this.Config.ScoreWhenCancelable, this.config.MinScore, this.config.MaxScore); scoreWhenCancelable.Attach(this.Menu, this.Path); this.Config.ScoreWhenCancelable = scoreWhenCancelable.Value; scoreWhenCancelable.ValueChanged += (o, args) => this.Config.ScoreWhenCancelable = args.NewValue; }
/// <summary> /// Called when [load]. /// </summary> /// <param name="sender">The sender.</param> /// <param name="eventArgs">The <see cref="Base.FeatureBaseEventArgs" /> instance containing the event data.</param> protected override void OnLoad(object sender, FeatureBaseEventArgs eventArgs) { base.OnLoad(sender, eventArgs); var minExcess = new SliderHelper("Min damage excess", this.Config.MinDamageExcess, 0, 1000); minExcess.Attach(this.Menu, this.Path); this.Config.MinDamageExcess = minExcess.Value; minExcess.ValueChanged += (o, args) => this.Config.MinDamageExcess = args.NewValue; var maxExcess = new SliderHelper("Max damage excess", this.Config.MaxDamageExcess, 0, 1000); maxExcess.Attach(this.Menu, this.Path); this.Config.MaxDamageExcess = maxExcess.Value; maxExcess.ValueChanged += (o, args) => this.Config.MaxDamageExcess = args.NewValue; }
// TODO Config protected override void OnLoad(object sender, FeatureBaseEventArgs eventArgs) { base.OnLoad(sender, eventArgs); var minHit = new SliderHelper("Min Amount Hit To Score", this.Config.MinAmountHitToScore, 0, 5); minHit.Attach(this.Menu, this.Path); this.Config.MinAmountHitToScore = minHit.Value; minHit.ValueChanged += (o, args) => this.Config.MinAmountHitToScore = args.NewValue; var scorePerHit = new SliderHelper("Score Per Hit", 10, 0, 100); scorePerHit.Attach(this.Menu, this.Path); this.Config.ScorePerHit = scorePerHit.Value; scorePerHit.ValueChanged += (o, args) => this.Config.ScorePerHit = args.NewValue; }