mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 21:02:55 +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");
|
||||
|
||||
@ -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[]
|
||||
|
Loading…
Reference in New Issue
Block a user