1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 14:57:52 +08:00

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(); base.UpdateInitialState();
// sane defaults // Hide() cannot be used here, because when rewinding, we need these to be the final values
ring.Show();
circle.Show();
number.Show();
glow.Show();
ApproachCircle.Hide(); ring.Alpha = 1;
ApproachCircle.ScaleTo(new Vector2(4)); circle.Alpha = 1;
explode.Hide(); 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() protected override void UpdatePreemptState()

View File

@ -23,7 +23,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
protected sealed override void UpdateState(ArmedState state) protected sealed override void UpdateState(ArmedState state)
{ {
FinishTransforms(); ClearTransforms(true);
using (BeginAbsoluteSequence(HitObject.StartTime - TIME_PREEMPT, true)) using (BeginAbsoluteSequence(HitObject.StartTime - TIME_PREEMPT, true))
{ {
@ -38,7 +38,8 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
protected virtual void UpdateInitialState() protected virtual void UpdateInitialState()
{ {
Hide(); // Hide() cannot be used here, because when rewinding, we need these to be the final values
Alpha = 0;
} }
protected virtual void UpdatePreemptState() protected virtual void UpdatePreemptState()