private void load(OsuRulesetConfigManager config) { config?.BindWith(OsuRulesetSetting.PlayfieldBorderStyle, playfieldBorder.PlayfieldBorderStyle); RegisterPool <HitCircle, DrawableHitCircle>(10, 100); RegisterPool <Slider, DrawableSlider>(10, 100); RegisterPool <SliderHeadCircle, DrawableSliderHead>(10, 100); RegisterPool <SliderTailCircle, DrawableSliderTail>(10, 100); RegisterPool <SliderTick, DrawableSliderTick>(10, 100); RegisterPool <SliderRepeat, DrawableSliderRepeat>(5, 50); RegisterPool <Spinner, DrawableSpinner>(2, 20); RegisterPool <SpinnerTick, DrawableSpinnerTick>(10, 100); RegisterPool <SpinnerBonusTick, DrawableSpinnerBonusTick>(10, 100); }
private void load(OsuConfigManager config, OsuRulesetConfigManager rulesetConfig, IBindable <WorkingBeatmap> beatmap) { rulesetConfig?.BindWith(OsuRulesetSetting.ShowCursorTrail, showTrail); this.beatmap.BindTo(beatmap); this.beatmap.ValueChanged += _ => calculateScale(); userCursorScale = config.GetBindable <float>(OsuSetting.GameplayCursorSize); userCursorScale.ValueChanged += _ => calculateScale(); autoCursorScale = config.GetBindable <bool>(OsuSetting.AutoCursorSize); autoCursorScale.ValueChanged += _ => calculateScale(); CursorScale = new Bindable <float>(); CursorScale.ValueChanged += e => ActiveCursor.Scale = cursorTrail.Scale = new Vector2(e.NewValue); calculateScale(); }
private void load(OsuRulesetConfigManager config) { config?.BindWith(OsuRulesetSetting.ShowCursorTrail, showTrail); showTrail.BindValueChanged(v => cursorTrail.FadeTo(v.NewValue ? 1 : 0, 200), true); }
private void load(OsuConfigManager config, OsuRulesetConfigManager rulesetConfig) { rulesetConfig?.BindWith(OsuRulesetSetting.ShowCursorTrail, showTrail); }
private void load(OsuRulesetConfigManager config) { config?.BindWith(OsuRulesetSetting.PlayfieldBorderStyle, playfieldBorder.PlayfieldBorderStyle); }