コード例 #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];
     }
 }
コード例 #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];
     }
 }
コード例 #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;
     }
 }
コード例 #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;
     }
 }
コード例 #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;              
     }
 }
コード例 #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;
     }
 }