osu/osu.Game/Screens/OnlinePlay/Multiplayer/CreateMultiplayerMatchButto...

24 lines
712 B
C#
Raw Normal View History

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