Ejemplo n.º 1
0
 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];
     }
 }
Ejemplo n.º 2
0
 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];
     }
 }
Ejemplo n.º 3
0
 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;
     }
 }
Ejemplo n.º 4
0
 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;
     }
 }
Ejemplo n.º 5
0
 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;              
     }
 }
Ejemplo n.º 6
0
 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;
     }
 }