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); }
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); }
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); }
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); }
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); }); }
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(); }
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); }
private void load(TauRulesetConfigManager config) { config?.BindWith(TauRulesetSettings.PlayfieldDim, PlayfieldDimLevel); PlayfieldDimLevel.ValueChanged += _ => updateVisuals(); }
private void load(TauRulesetConfigManager config) { config?.BindWith(TauRulesetSettings.BeatSize, size); size.BindValueChanged(value => Size = new Vector2(value.NewValue), true); }
private void load(TauRulesetConfigManager config) { config?.BindWith(TauRulesetSettings.PlayfieldDim, playfieldDimLevel); }