Add processing overlay to room creation process

This commit is contained in:
smoogipoo
2018-12-26 20:45:56 +09:00
parent 2e5cd8b4e3
commit 0c384417f1
5 changed files with 22 additions and 8 deletions

View File

@ -140,13 +140,15 @@ namespace osu.Game.Tests.Visual
public IBindableCollection<Room> Rooms { get; } = null;
public void CreateRoom(Room room, Action<string> onError = null)
public void CreateRoom(Room room, Action onSuccess = null, Action<string> onError = null)
{
if (CreateRequested == null)
return;
if (!CreateRequested.Invoke(room))
onError?.Invoke(FAILED_TEXT);
else
onSuccess?.Invoke();
}
public void JoinRoom(Room room) => throw new NotImplementedException();