mirror of
https://github.com/osukey/osukey.git
synced 2025-07-01 16:29:58 +09:00
Add *very* basic ranking screen.
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user