Skip to content

Commit

Permalink
Improve object inspection visibility
Browse files Browse the repository at this point in the history
  • Loading branch information
stanriders committed Sep 10, 2024
1 parent 5196551 commit 5f03791
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using osu.Game.Beatmaps;
using osu.Game.Rulesets;
using osu.Game.Rulesets.Mods;
using osu.Game.Rulesets.Objects;
using osu.Game.Rulesets.Objects.Drawables;
using osu.Game.Rulesets.Osu.Difficulty.Preprocessing;
using osu.Game.Rulesets.Osu.Edit;
Expand Down Expand Up @@ -88,7 +89,15 @@ private void updateState(DrawableHitObject hitObject, ArmedState state)
hitObject.RemoveTransform(existing);

using (hitObject.BeginAbsoluteSequence(hitObject.StartTimeBindable.Value))
hitObject.Delay(nextHitObject.StartTime - hitObject.StartTimeBindable.Value).FadeOut().Expire();
{
var hitObjectDuration = hitObject.HitObject.GetEndTime() - hitObject.StartTimeBindable.Value;

hitObject.Delay(hitObjectDuration)
.FadeTo(0.25f, 200f, Easing.Out)
.Delay(nextHitObject.StartTime - hitObject.StartTimeBindable.Value - hitObjectDuration)
.FadeOut(100f, Easing.Out)
.Expire();
}
}

break;
Expand Down

0 comments on commit 5f03791

Please sign in to comment.