private void Config_OnConfigValueChanged(ConfigValueChangedArgs args) { if (args.Key == _configKey && !_isBasedOnSpell) { CheckBox.CurrentValue = (bool)args.Value; } }
private void Properties_OnConfigValueChanged(ConfigValueChangedArgs args) { if (args.Key == _configKey) { if (ComboBox.CurrentValue != (int)args.Value) { ComboBox.CurrentValue = (int)args.Value; } } }
private void Config_OnConfigValueChanged(ConfigValueChangedArgs args) { if (!(args.Value is int)) { return; } if (args.Key == _configKey && !_isBasedOnSpell) { Slider.CurrentValue = (int)args.Value; } }
private void Config_OnConfigValueChanged(ConfigValueChangedArgs args) { if (args.Key == _configKey && !_isBasedOnSpell) CheckBox.CurrentValue = (bool) args.Value; }
private void Config_OnConfigValueChanged(ConfigValueChangedArgs args) { if(!(args.Value is int)) return; if (args.Key == _configKey && !_isBasedOnSpell) Slider.CurrentValue = (int) args.Value; }