Make initial DrawableOsuHitObject initial states not use transforms

This commit is contained in:
smoogipoo
2017-11-02 20:23:28 +09:00
parent f219b7f9fb
commit 6883b3742f
2 changed files with 15 additions and 10 deletions

View File

@ -86,15 +86,19 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
{
base.UpdateInitialState();
// sane defaults
ring.Show();
circle.Show();
number.Show();
glow.Show();
// Hide() cannot be used here, because when rewinding, we need these to be the final values
ApproachCircle.Hide();
ApproachCircle.ScaleTo(new Vector2(4));
explode.Hide();
ring.Alpha = 1;
circle.Alpha = 1;
number.Alpha = 1;
glow.Alpha = 1;
ApproachCircle.Alpha = 0;
ApproachCircle.Scale = new Vector2(4);
explode.Alpha = 0;
flash.Alpha = 0;
Scale = new Vector2(HitObject.Scale);
}
protected override void UpdatePreemptState()