Scale pieces individually and use skin source directly

This commit is contained in:
iiSaLMaN
2019-10-03 05:58:20 +03:00
parent ef8f9aa276
commit 957bbee3e4
2 changed files with 13 additions and 28 deletions

View File

@ -21,10 +21,6 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
{
public ApproachCircle ApproachCircle { get; }
public IBindable<bool> ExpandNumberPiece => expandNumberPiece;
private readonly BindableBool expandNumberPiece = new BindableBool();
private readonly IBindable<Vector2> positionBindable = new Bindable<Vector2>();
private readonly IBindable<int> stackHeightBindable = new Bindable<int>();
private readonly IBindable<float> scaleBindable = new Bindable<float>();
@ -111,13 +107,6 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
}
}
protected override void ApplySkin(ISkinSource skin, bool allowFallback)
{
base.ApplySkin(skin, allowFallback);
expandNumberPiece.Value = skin.GetConfig<OsuSkinConfiguration, bool>(OsuSkinConfiguration.ExpandNumberPiece)?.Value ?? false;
}
protected override void CheckForResult(bool userTriggered, double timeOffset)
{
Debug.Assert(HitObject.HitWindows != null);