Exemple #1
0
        private void load()
        {
            config?.BindWith(OsuRulesetSetting.SnakingInSliders, Body.SnakingIn);
            config?.BindWith(OsuRulesetSetting.SnakingOutSliders, Body.SnakingOut);

            positionBindable.BindValueChanged(_ => Position = HitObject.StackedPosition);
            scaleBindable.BindValueChanged(scale =>
            {
                Body.PathRadius = scale.NewValue * 64;
                Ball.Scale      = new Vector2(scale.NewValue);
            });

            positionBindable.BindTo(HitObject.PositionBindable);
            scaleBindable.BindTo(HitObject.ScaleBindable);
            pathBindable.BindTo(slider.PathBindable);

            pathBindable.BindValueChanged(_ => Body.Refresh());
        }
        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();
        }
Exemple #4
0
        private void load(OsuRulesetConfigManager config)
        {
            config?.BindWith(OsuRulesetSetting.ShowCursorTrail, showTrail);

            showTrail.BindValueChanged(v => cursorTrail.FadeTo(v.NewValue ? 1 : 0, 200), true);
        }
Exemple #5
0
 private void load(OsuConfigManager config, OsuRulesetConfigManager rulesetConfig)
 {
     rulesetConfig?.BindWith(OsuRulesetSetting.ShowCursorTrail, showTrail);
 }
Exemple #6
0
 private void load(OsuRulesetConfigManager config)
 {
     config?.BindWith(OsuRulesetSetting.PlayfieldBorderStyle, playfieldBorder.PlayfieldBorderStyle);
 }