private void preview_team2_score_ValueChanged(object sender, RoutedPropertyChangedEventArgs <object> e) { if (IsLoaded && sender is IntegerUpDown && (sender as IntegerUpDown).Value.HasValue) { GameEvent_RocketLeague.SetTeam2Score((sender as IntegerUpDown).Value.Value); } }
private void preview_boost_amount_ValueChanged(object sender, RoutedPropertyChangedEventArgs <double> e) { if (sender is Slider) { this.preview_boost_amount_label.Text = (int)((sender as Slider).Value) + "%"; if (IsLoaded) { GameEvent_RocketLeague.SetBoost((float)((sender as Slider).Value) / 100.0f); } } }