Skip to content

Commit

Permalink
Merge branch 'master' into fix-mods-masking
Browse files Browse the repository at this point in the history
  • Loading branch information
minisbett authored Oct 3, 2024
2 parents 043c25c + 7c63975 commit ffb133d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
3 changes: 3 additions & 0 deletions PerformanceCalculatorGUI/PerformanceCalculatorSceneManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ public partial class PerformanceCalculatorSceneManager : CompositeDrawable
[Resolved]
private DialogOverlay dialogOverlay { get; set; }

[Cached]
private OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Blue);

public PerformanceCalculatorSceneManager()
{
RelativeSizeAxes = Axes.Both;
Expand Down
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 ffb133d

Please sign in to comment.