2020-12-24 05:02:37 +08: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.
|
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
using osu.Framework.Bindables;
|
2020-12-25 12:38:11 +08:00
|
|
|
using osu.Game.Online.Multiplayer;
|
2020-12-24 05:02:37 +08:00
|
|
|
using osu.Game.Screens.Multi.Match.Components;
|
|
|
|
|
2020-12-25 12:38:11 +08:00
|
|
|
namespace osu.Game.Screens.Multi.Multiplayer
|
2020-12-24 05:02:37 +08:00
|
|
|
{
|
2020-12-25 12:38:11 +08:00
|
|
|
public class CreateMultiplayerMatchButton : PurpleTriangleButton
|
2020-12-24 05:02:37 +08:00
|
|
|
{
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
private void load(StatefulMultiplayerClient multiplayerClient)
|
|
|
|
{
|
|
|
|
Triangles.TriangleScale = 1.5f;
|
|
|
|
|
2020-12-24 23:10:29 +08:00
|
|
|
Text = "Create room";
|
2020-12-24 05:02:37 +08:00
|
|
|
|
|
|
|
((IBindable<bool>)Enabled).BindTo(multiplayerClient.IsConnected);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|