2023-05-16 15:52:26 +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.
|
|
|
|
|
|
|
|
#nullable disable
|
|
|
|
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Game.Graphics;
|
|
|
|
using osu.Game.Graphics.Containers;
|
|
|
|
|
|
|
|
namespace osu.Game.Screens.OnlinePlay.Lounge.Components
|
|
|
|
{
|
|
|
|
public partial class OnlinePlayPill : OnlinePlayComposite
|
|
|
|
{
|
2023-05-16 16:06:48 +08:00
|
|
|
protected PillContainer Pill;
|
|
|
|
protected OsuTextFlowContainer TextFlow;
|
2023-05-16 15:52:26 +08:00
|
|
|
|
|
|
|
public OnlinePlayPill()
|
|
|
|
{
|
|
|
|
AutoSizeAxes = Axes.Both;
|
|
|
|
}
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
private void load()
|
|
|
|
{
|
2023-05-16 16:06:48 +08:00
|
|
|
InternalChild = Pill = new PillContainer
|
2023-05-16 15:52:26 +08:00
|
|
|
{
|
2023-05-16 16:06:48 +08:00
|
|
|
Child = TextFlow = new OsuTextFlowContainer(s => s.Font = OsuFont.GetFont(size: 12))
|
2023-05-16 15:52:26 +08:00
|
|
|
{
|
|
|
|
AutoSizeAxes = Axes.Both,
|
|
|
|
Anchor = Anchor.CentreLeft,
|
|
|
|
Origin = Anchor.CentreLeft
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|