mirror of
https://github.com/ppy/osu
synced 2025-01-06 14:20:03 +00:00
Merge branch 'master' into replay_keycounter
This commit is contained in:
commit
2356588508
@ -407,9 +407,7 @@ namespace osu.Game.Rulesets.Catch.UI
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public void Explode()
|
public void Explode()
|
||||||
{
|
{
|
||||||
var fruit = caughtFruit.ToArray();
|
foreach (var f in caughtFruit.ToArray())
|
||||||
|
|
||||||
foreach (var f in fruit)
|
|
||||||
Explode(f);
|
Explode(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -422,15 +420,15 @@ namespace osu.Game.Rulesets.Catch.UI
|
|||||||
fruit.Anchor = Anchor.TopLeft;
|
fruit.Anchor = Anchor.TopLeft;
|
||||||
fruit.Position = caughtFruit.ToSpaceOfOtherDrawable(fruit.DrawPosition, ExplodingFruitTarget);
|
fruit.Position = caughtFruit.ToSpaceOfOtherDrawable(fruit.DrawPosition, ExplodingFruitTarget);
|
||||||
|
|
||||||
caughtFruit.Remove(fruit);
|
if (!caughtFruit.Remove(fruit))
|
||||||
|
// we may have already been removed by a previous operation (due to the weird OnLoadComplete scheduling).
|
||||||
|
// this avoids a crash on potentially attempting to Add a fruit to ExplodingFruitTarget twice.
|
||||||
|
return;
|
||||||
|
|
||||||
ExplodingFruitTarget.Add(fruit);
|
ExplodingFruitTarget.Add(fruit);
|
||||||
}
|
}
|
||||||
|
|
||||||
fruit.MoveToY(fruit.Y - 50, 250, Easing.OutSine)
|
fruit.MoveToY(fruit.Y - 50, 250, Easing.OutSine).Then().MoveToY(fruit.Y + 50, 500, Easing.InSine);
|
||||||
.Then()
|
|
||||||
.MoveToY(fruit.Y + 50, 500, Easing.InSine);
|
|
||||||
|
|
||||||
fruit.MoveToX(fruit.X + originalX * 6, 1000);
|
fruit.MoveToX(fruit.X + originalX * 6, 1000);
|
||||||
fruit.FadeOut(750);
|
fruit.FadeOut(750);
|
||||||
|
|
||||||
|
@ -103,6 +103,11 @@ namespace osu.Game.Beatmaps
|
|||||||
b.BeatmapSet = beatmapSet;
|
b.BeatmapSet = beatmapSet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
validateOnlineIds(beatmapSet.Beatmaps);
|
||||||
|
|
||||||
|
foreach (BeatmapInfo b in beatmapSet.Beatmaps)
|
||||||
|
fetchAndPopulateOnlineIDs(b, beatmapSet.Beatmaps);
|
||||||
|
|
||||||
// check if a set already exists with the same online id, delete if it does.
|
// check if a set already exists with the same online id, delete if it does.
|
||||||
if (beatmapSet.OnlineBeatmapSetID != null)
|
if (beatmapSet.OnlineBeatmapSetID != null)
|
||||||
{
|
{
|
||||||
@ -114,11 +119,6 @@ namespace osu.Game.Beatmaps
|
|||||||
Logger.Log($"Found existing beatmap set with same OnlineBeatmapSetID ({beatmapSet.OnlineBeatmapSetID}). It has been purged.", LoggingTarget.Database);
|
Logger.Log($"Found existing beatmap set with same OnlineBeatmapSetID ({beatmapSet.OnlineBeatmapSetID}). It has been purged.", LoggingTarget.Database);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
validateOnlineIds(beatmapSet.Beatmaps);
|
|
||||||
|
|
||||||
foreach (BeatmapInfo b in beatmapSet.Beatmaps)
|
|
||||||
fetchAndPopulateOnlineIDs(b, beatmapSet.Beatmaps);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void validateOnlineIds(List<BeatmapInfo> beatmaps)
|
private void validateOnlineIds(List<BeatmapInfo> beatmaps)
|
||||||
|
@ -187,7 +187,7 @@ namespace osu.Game.Overlays.Direct
|
|||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
this.FadeInFromZero(200, Easing.Out);
|
this.FadeInFromZero(200, Easing.Out);
|
||||||
|
|
||||||
PreviewPlaying.ValueChanged += newValue => PlayButton.FadeTo(newValue || IsHovered ? 1 : 0, 120, Easing.InOutQuint);
|
PreviewPlaying.ValueChanged += newValue => PlayButton.FadeTo(newValue || IsHovered || !FadePlayButton ? 1 : 0, 120, Easing.InOutQuint);
|
||||||
PreviewPlaying.ValueChanged += newValue => PreviewBar.FadeTo(newValue ? 1 : 0, 120, Easing.InOutQuint);
|
PreviewPlaying.ValueChanged += newValue => PreviewBar.FadeTo(newValue ? 1 : 0, 120, Easing.InOutQuint);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user