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