private void SpellTester_SelectedSpellIndex_OnValueChange(ValueBase <int> sender, ValueBase <int> .ValueChangeArgs args) { if (SelectedPoints.Count > 0) { SelectedPoint = SelectedPoints[Config.Properties.GetData <int>("SpellTester_SelectedSpellIndex") - 1]; } }
private void SpellTester_SelectedSpellIndex_OnValueChange(ValueBase<int> sender, ValueBase<int>.ValueChangeArgs args) { if (SelectedPoints.Count > 0) { SelectedPoint = SelectedPoints[Config.Properties.GetData<int>("SpellTester_SelectedSpellIndex") - 1]; } }
private void SpellTester_ClearSelectedPoints_OnValueChange(ValueBase <bool> sender, ValueBase <bool> .ValueChangeArgs args) { if (!args.OldValue && args.NewValue) { SelectedPoints.Clear(); _spellIndexSlider.Slider.MinValue = 0; _spellIndexSlider.Slider.CurrentValue = 0; _spellIndexSlider.Slider.MaxValue = 0; sender.CurrentValue = false; SelectedPoint = null; } }
private void SpellTester_CreateSelectedPoint_OnValueChange(ValueBase <bool> sender, ValueBase <bool> .ValueChangeArgs args) { if (!args.OldValue && args.NewValue) { if (SelectedPoint == null) { SelectedPoint = new SpellPoint { StartPosition = MyHero.Position, ChampionName = GetSelectedChampionName(), SpellSlot = GetSelectedSpellSlot(), Angle = Config.Properties.GetData <int>("SpellTester_SelectedSpellAngle") }; SelectedPoints.Add(SelectedPoint); _spellIndexSlider.Slider.MaxValue = SelectedPoints.Count; _spellIndexSlider.Slider.MinValue = 1; } sender.CurrentValue = false; } }
private void SpellTester_CreateSelectedPoint_OnValueChange(ValueBase<bool> sender, ValueBase<bool>.ValueChangeArgs args) { if (!args.OldValue && args.NewValue) { if (SelectedPoint == null) { SelectedPoint = new SpellPoint { StartPosition = MyHero.Position, ChampionName = GetSelectedChampionName(), SpellSlot = GetSelectedSpellSlot(), Angle = Config.Properties.GetData<int>("SpellTester_SelectedSpellAngle") }; SelectedPoints.Add(SelectedPoint); _spellIndexSlider.Slider.MaxValue = SelectedPoints.Count; _spellIndexSlider.Slider.MinValue = 1; } sender.CurrentValue = false; } }
private void SpellTester_ClearSelectedPoints_OnValueChange(ValueBase<bool> sender, ValueBase<bool>.ValueChangeArgs args) { if (!args.OldValue && args.NewValue) { SelectedPoints.Clear(); _spellIndexSlider.Slider.MinValue = 0; _spellIndexSlider.Slider.CurrentValue = 0; _spellIndexSlider.Slider.MaxValue = 0; sender.CurrentValue = false; SelectedPoint = null; } }