예제 #1
0
        private void load(ISkinSource skin, TauRulesetConfigManager config)
        {
            Anchor           = Anchor.Centre;
            Origin           = Anchor.Centre;
            RelativeSizeAxes = Axes.Both;

            AddRangeInternal(new Drawable[]
            {
                background = new Sprite
                {
                    Anchor           = Anchor.Centre,
                    Origin           = Anchor.Centre,
                    RelativeSizeAxes = Axes.Both,
                    FillMode         = FillMode.Fit,
                    Texture          = skin.GetTexture($"{TauRuleset.SHORT_NAME}-field-background")
                },
                new Sprite
                {
                    Anchor           = Anchor.Centre,
                    Origin           = Anchor.Centre,
                    RelativeSizeAxes = Axes.Both,
                    FillMode         = FillMode.Fit,
                    Texture          = skin.GetTexture($"{TauRuleset.SHORT_NAME}-ring-overlay")
                }
            });

            config?.BindWith(TauRulesetSettings.PlayfieldDim, playfieldDimLevel);
            playfieldDimLevel.BindValueChanged(v => { background.FadeTo(v.NewValue, 100); }, true);
        }
예제 #2
0
        private void load(ISkinSource skin, TauRulesetConfigManager config)
        {
            path.Colour = skin.GetConfig <TauSkinColour, Color4>(TauSkinColour.Slider)?.Value ?? Color4.White;
            config?.BindWith(TauRulesetSettings.KiaiEffect, effect);

            Tracking.BindValueChanged(updateSlidingSample);
        }
예제 #3
0
        private void load(TauRulesetConfigManager config)
        {
            config?.BindWith(TauRulesetSettings.BeatSize, size);
            size.BindValueChanged(value => Box.Size = new Vector2(value.NewValue), true);

            HitObject.AngleBindable.BindValueChanged(a => { Rotation = a.NewValue; }, true);
        }
예제 #4
0
        private void load(ISkinSource skin, TauRulesetConfigManager config)
        {
            config?.BindWith(TauRulesetSettings.KiaiEffect, effect);
            ACCENT_COLOR.Value = skin?.GetConfig <TauSkinColour, Color4>(TauSkinColour.Accent)?.Value ?? Color4Extensions.FromHex(@"FF0040");

            RegisterPool <Beat, DrawableBeat>(10);
            RegisterPool <HardBeat, DrawableHardBeat>(5);

            RegisterPool <Slider, DrawableSlider>(3);
            RegisterPool <SliderHeadBeat, DrawableSliderHead>(3);
        }
예제 #5
0
파일: TauPlayfield.cs 프로젝트: nyalter/tau
            private void load(TauRulesetConfigManager settings)
            {
                RelativeSizeAxes = Axes.Both;
                Anchor           = Anchor.Centre;
                Origin           = Anchor.Centre;

                Child = visualisation = new PlayfieldVisualisation
                {
                    RelativeSizeAxes = Axes.Both,
                    FillMode         = FillMode.Fit,
                    FillAspectRatio  = 1,
                    Blending         = BlendingParameters.Additive,
                    Anchor           = Anchor.Centre,
                    Origin           = Anchor.Centre,
                    Colour           = Color4.Transparent
                };

                settings?.BindWith(TauRulesetSettings.ShowVisualizer, showVisualisation);
                showVisualisation.BindValueChanged(value => { visualisation.FadeTo(value.NewValue ? 1 : 0, 500); });
            }
예제 #6
0
파일: tauPlayfield.cs 프로젝트: Niroe/tau
            private void load(TauRulesetConfigManager settings)
            {
                RelativeSizeAxes = Axes.Both;
                Size             = new Vector2(UNIVERSAL_SCALE);
                Anchor           = Anchor.Centre;
                Origin           = Anchor.Centre;

                Child = visualisation = new LogoVisualisation
                {
                    RelativeSizeAxes = Axes.Both,
                    FillMode         = FillMode.Fit,
                    FillAspectRatio  = 1,
                    Blending         = BlendingParameters.Additive,
                    Anchor           = Anchor.Centre,
                    Origin           = Anchor.Centre,
                    Colour           = Color4.Transparent
                };

                ShowVisualisation = settings.GetBindable <bool>(TauRulesetSettings.ShowVisualizer);

                ShowVisualisation.ValueChanged += value => { visualisation.FadeTo(value.NewValue ? 1 : 0, 500); };
                ShowVisualisation.TriggerChange();
            }
예제 #7
0
파일: DrawableBeat.cs 프로젝트: Altenhh/tau
        private void load(TauRulesetConfigManager config)
        {
            config?.BindWith(TauRulesetSettings.BeatSize, size);

            Anchor           = Anchor.Centre;
            Origin           = Anchor.Centre;
            RelativeSizeAxes = Axes.Both;
            Size             = Vector2.One;

            AddRangeInternal(new Drawable[]
            {
                Box = new Container
                {
                    RelativePositionAxes = Axes.Both,
                    Origin   = Anchor.Centre,
                    Anchor   = Anchor.Centre,
                    Alpha    = 0.05f,
                    Children = new Drawable[]
                    {
                        new SkinnableDrawable(new TauSkinComponent(TauSkinComponents.Beat), _ => new BeatPiece(), ConfineMode.ScaleToFit),
                        IntersectArea = new Container
                        {
                            Size             = new Vector2(16),
                            RelativeSizeAxes = Axes.None,
                            Origin           = Anchor.Centre,
                            Anchor           = Anchor.Centre,
                            AlwaysPresent    = true
                        }
                    }
                },
            });

            Position = Vector2.Zero;

            angleBindable.BindValueChanged(r => Rotation = r.NewValue);
            size.BindValueChanged(value => Box.Size      = new Vector2(value.NewValue), true);
        }
예제 #8
0
파일: TauPlayfield.cs 프로젝트: nyalter/tau
 private void load(TauRulesetConfigManager config)
 {
     config?.BindWith(TauRulesetSettings.PlayfieldDim, PlayfieldDimLevel);
     PlayfieldDimLevel.ValueChanged += _ => updateVisuals();
 }
예제 #9
0
 private void load(TauRulesetConfigManager config)
 {
     config?.BindWith(TauRulesetSettings.BeatSize, size);
     size.BindValueChanged(value => Size = new Vector2(value.NewValue), true);
 }
예제 #10
0
 private void load(TauRulesetConfigManager config)
 {
     config?.BindWith(TauRulesetSettings.PlayfieldDim, playfieldDimLevel);
 }