2019-01-24 08:43:03 +00:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
2018-12-20 08:33:55 +00:00
|
|
|
|
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
2019-02-21 10:04:31 +00:00
|
|
|
using osu.Framework.Bindables;
|
2018-12-20 08:33:55 +00:00
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Game.Screens.Multi.Match.Components;
|
|
|
|
using osu.Game.Users;
|
|
|
|
|
2019-03-24 16:02:36 +00:00
|
|
|
namespace osu.Game.Tests.Visual.Multiplayer
|
2018-12-20 08:33:55 +00:00
|
|
|
{
|
2019-05-14 19:37:25 +00:00
|
|
|
public class TestSceneMatchHostInfo : OsuTestScene
|
2018-12-20 08:33:55 +00:00
|
|
|
{
|
|
|
|
public override IReadOnlyList<Type> RequiredTypes => new[]
|
|
|
|
{
|
|
|
|
typeof(HostInfo)
|
|
|
|
};
|
|
|
|
|
2018-12-25 09:07:19 +00:00
|
|
|
private readonly Bindable<User> host = new Bindable<User>(new User { Username = "SomeHost" });
|
|
|
|
|
2019-05-14 19:37:25 +00:00
|
|
|
public TestSceneMatchHostInfo()
|
2018-12-20 08:33:55 +00:00
|
|
|
{
|
2018-12-25 09:07:19 +00:00
|
|
|
HostInfo hostInfo;
|
|
|
|
|
|
|
|
Child = hostInfo = new HostInfo
|
2018-12-20 08:33:55 +00:00
|
|
|
{
|
|
|
|
Anchor = Anchor.Centre,
|
|
|
|
Origin = Anchor.Centre
|
|
|
|
};
|
2018-12-25 09:07:19 +00:00
|
|
|
|
|
|
|
hostInfo.Host.BindTo(host);
|
2018-12-20 08:33:55 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|