Update with framework state transformation

Removes explicit initial state setting in DrawableOsuHitObjects.
This commit is contained in:
smoogipoo
2017-11-09 14:04:59 +09:00
parent c7426ebed8
commit 348083f589
7 changed files with 15 additions and 56 deletions

View File

@ -24,13 +24,10 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
this.repeatPoint = repeatPoint;
this.drawableSlider = drawableSlider;
// The containing DrawableSlider is updated before us and clears our transforms, so we need to be
// present to get updated and have UpdateState correctly called when rewinding.
AlwaysPresent = true;
AutoSizeAxes = Axes.Both;
Blending = BlendingMode.Additive;
Origin = Anchor.Centre;
Scale = new Vector2(0.5f);
Children = new Drawable[]
{
@ -50,13 +47,6 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
AddJudgement(new OsuJudgement { Result = drawableSlider.Tracking ? HitResult.Great : HitResult.Miss });
}
protected override void UpdateInitialState()
{
base.UpdateInitialState();
Scale = new Vector2(0.5f);
}
protected override void UpdatePreemptState()
{
var animIn = Math.Min(150, repeatPoint.StartTime - FadeInTime);