mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 06:52:56 +08:00
Merge branch 'master' into progress-bar-show-seek
This commit is contained in:
commit
425154c264
@ -143,7 +143,7 @@ namespace osu.Game.Rulesets.UI
|
||||
public virtual PlayfieldAdjustmentContainer CreatePlayfieldAdjustmentContainer() => new PlayfieldAdjustmentContainer();
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuConfigManager config, CancellationToken cancellationToken)
|
||||
private void load(OsuConfigManager config, CancellationToken? cancellationToken)
|
||||
{
|
||||
InternalChildren = new Drawable[]
|
||||
{
|
||||
@ -172,18 +172,15 @@ namespace osu.Game.Rulesets.UI
|
||||
/// <summary>
|
||||
/// Creates and adds drawable representations of hit objects to the play field.
|
||||
/// </summary>
|
||||
private void loadObjects(CancellationToken cancellationToken)
|
||||
private void loadObjects(CancellationToken? cancellationToken)
|
||||
{
|
||||
foreach (TObject h in Beatmap.HitObjects)
|
||||
{
|
||||
if (cancellationToken.IsCancellationRequested)
|
||||
break;
|
||||
|
||||
cancellationToken?.ThrowIfCancellationRequested();
|
||||
addHitObject(h);
|
||||
}
|
||||
|
||||
if (cancellationToken.IsCancellationRequested)
|
||||
return;
|
||||
cancellationToken?.ThrowIfCancellationRequested();
|
||||
|
||||
Playfield.PostProcess();
|
||||
|
||||
|
@ -58,7 +58,7 @@ namespace osu.Game.Storyboards.Drawables
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader(true)]
|
||||
private void load(FileStore fileStore, GameplayClock clock, CancellationToken cancellationToken)
|
||||
private void load(FileStore fileStore, GameplayClock clock, CancellationToken? cancellationToken)
|
||||
{
|
||||
if (clock != null)
|
||||
Clock = clock;
|
||||
@ -67,8 +67,7 @@ namespace osu.Game.Storyboards.Drawables
|
||||
|
||||
foreach (var layer in Storyboard.Layers)
|
||||
{
|
||||
if (cancellationToken.IsCancellationRequested)
|
||||
break;
|
||||
cancellationToken?.ThrowIfCancellationRequested();
|
||||
|
||||
Add(layer.CreateDrawable());
|
||||
}
|
||||
|
@ -25,12 +25,11 @@ namespace osu.Game.Storyboards.Drawables
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(CancellationToken cancellationToken)
|
||||
private void load(CancellationToken? cancellationToken)
|
||||
{
|
||||
foreach (var element in Layer.Elements)
|
||||
{
|
||||
if (cancellationToken.IsCancellationRequested)
|
||||
break;
|
||||
cancellationToken?.ThrowIfCancellationRequested();
|
||||
|
||||
if (element.IsDrawable)
|
||||
AddInternal(element.CreateDrawable());
|
||||
|
Loading…
Reference in New Issue
Block a user