Add temporary means of getting the user which is responsible for a resulting play.

This commit is contained in:
Dean Herbert
2017-04-18 21:55:44 +09:00
parent 15d62a0c76
commit a0d9c14526
5 changed files with 21 additions and 2 deletions

View File

@ -22,6 +22,7 @@ using System.Linq;
using osu.Framework.Threading;
using osu.Game.Rulesets.Scoring;
using osu.Game.Screens.Ranking;
using osu.Game.Users;
namespace osu.Game.Screens.Play
{
@ -266,7 +267,9 @@ namespace osu.Game.Screens.Play
Delay(1000);
onCompletionEvent = Schedule(delegate
{
Push(new Results(scoreProcessor.CreateScore()));
var score = scoreProcessor.CreateScore();
score.User = HitRenderer.Replay?.User ?? (Game as OsuGame)?.API?.LocalUser?.Value;
Push(new Results(score));
});
}