mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 19:22:54 +08:00
Make Player.Autoplay can be set.
This commit is contained in:
parent
f2f6fe8e00
commit
dcd3ba0915
@ -26,7 +26,7 @@ namespace osu.Game.GameModes.Play
|
||||
{
|
||||
public class Player : OsuGameMode
|
||||
{
|
||||
const bool autoplay = false;
|
||||
public bool Autoplay;
|
||||
|
||||
protected override BackgroundMode CreateBackground() => new BackgroundModeCustom(@"Backgrounds/bg4");
|
||||
|
||||
@ -61,7 +61,7 @@ namespace osu.Game.GameModes.Play
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -129,7 +129,7 @@ namespace osu.Game.GameModes.Play
|
||||
hitRenderer.OnHit += delegate (HitObject h) { scoreOverlay.OnHit(h); };
|
||||
hitRenderer.OnMiss += delegate (HitObject h) { scoreOverlay.OnMiss(h); };
|
||||
|
||||
if (autoplay)
|
||||
if (Autoplay)
|
||||
hitRenderer.Schedule(() => hitRenderer.DrawableObjects.ForEach(h => h.State = ArmedState.Armed));
|
||||
|
||||
Children = new Drawable[]
|
||||
@ -152,4 +152,4 @@ namespace osu.Game.GameModes.Play
|
||||
playerClock.ProcessFrame();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user