private void FeatureSelector_ValueChanged(MenuSelector selector, SelectorEventArgs e)
 {
     if (e.NewValue != "Off")
     {
         UpdateManager.CreateIngameUpdate(200, IngameUpdate);
     }
     else
     {
         UpdateManager.DestroyIngameUpdate(IngameUpdate);
     }
 }
 // Token: 0x0600002B RID: 43 RVA: 0x000053CC File Offset: 0x000035CC
 private void EffectNameOnValueChange(object sender, SelectorEventArgs <string> e)
 {
     if (e.NewValue == e.OldValue)
     {
         return;
     }
     foreach (ParticleEffect particleEffect in this.particles.Values)
     {
         particleEffect.Dispose();
     }
     this.particles.Clear();
     this.units.Clear();
     UpdateManager.BeginInvoke(delegate
     {
         foreach (Unit9 unit in EntityManager9.Units)
         {
             this.OnUnitAdded(unit);
         }
     }, 0);
 }
        // Token: 0x06000075 RID: 117 RVA: 0x00009328 File Offset: 0x00007528
        private void FocusTargetOnValueChanged(object sender, SelectorEventArgs <string> e)
        {
            string newValue = e.NewValue;

            if (newValue == "Near mouse")
            {
                this.getTargetsFunc = new Func <Unit9, float, IEnumerable <Unit9> >(this.ClosestToMouse);
                return;
            }
            if (newValue == "Near hero")
            {
                this.getTargetsFunc = new Func <Unit9, float, IEnumerable <Unit9> >(this.ClosestToUnit);
                return;
            }
            if (!(newValue == "Lowest health"))
            {
                return;
            }
            this.getTargetsFunc = new Func <Unit9, float, IEnumerable <Unit9> >(this.LowestHealth);
        }
        private void FocusTargetOnValueChanged(object sender, SelectorEventArgs <string> e)
        {
            switch (e.NewValue)
            {
            case "Near mouse":
            {
                this.getTargetsFunc = this.ClosestToMouse;
                break;
            }

            case "Near hero":
            {
                this.getTargetsFunc = this.ClosestToUnit;
                break;
            }

            case "Lowest health":
            {
                this.getTargetsFunc = this.LowestHealth;
                break;
            }
            }
        }
Beispiel #5
0
        /*public void Dispose()
         * {
         *  Weather.SetValue(0);
         *
         *  WeatherItem.PropertyChanged -= WeatherItemChanged;
         * }*/

        private void OnWeatherValueChanged(MenuSelector selector, SelectorEventArgs e)
        {
            ConVarManager.SetValue("cl_weather", Array.IndexOf(WeatherNames, e.NewValue));
        }
Beispiel #6
0
 private void styleControl1_ParserReady(object sender, SelectorEventArgs e)
 {
     textBoxStyles.Text = e.Selector.ToString();
 }