1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 22:07:25 +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();
// 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()

View File

@ -23,7 +23,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
protected sealed override void UpdateState(ArmedState state)
{
FinishTransforms();
ClearTransforms(true);
using (BeginAbsoluteSequence(HitObject.StartTime - TIME_PREEMPT, true))
{
@ -38,7 +38,8 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
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()