Add *very* basic ranking screen.

This commit is contained in:
Dean Herbert
2016-11-29 23:59:56 +09:00
parent 30e62eb53c
commit 74e3a87f78
5 changed files with 106 additions and 15 deletions

View File

@ -16,10 +16,19 @@ namespace osu.Game.Modes.UI
{
public event Action<JudgementInfo> OnJudgement;
protected void TriggerOnJudgement(JudgementInfo j) => OnJudgement?.Invoke(j);
public event Action OnAllJudged;
protected void TriggerOnJudgement(JudgementInfo j)
{
OnJudgement?.Invoke(j);
if (AllObjectsJudged)
OnAllJudged?.Invoke();
}
protected Playfield Playfield;
public bool AllObjectsJudged => Playfield.HitObjects.Children.First()?.Judgement.Result != null; //reverse depth sort means First() instead of Last().
public IEnumerable<DrawableHitObject> DrawableObjects => Playfield.HitObjects.Children;
}