mirror of
https://github.com/osukey/osukey.git
synced 2025-05-24 23:17:25 +09:00
put count and tabs into new fillflowcontainer
This commit is contained in:
parent
c2e7ff7e3e
commit
faa36c78e5
@ -12,6 +12,7 @@ using osu.Game.Graphics.Sprites;
|
|||||||
using osu.Game.Graphics.UserInterface;
|
using osu.Game.Graphics.UserInterface;
|
||||||
using osu.Game.Online.Multiplayer;
|
using osu.Game.Online.Multiplayer;
|
||||||
using osu.Game.Online.Rooms;
|
using osu.Game.Online.Rooms;
|
||||||
|
using osuTK;
|
||||||
|
|
||||||
namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match.Playlist
|
namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match.Playlist
|
||||||
{
|
{
|
||||||
@ -34,23 +35,38 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer.Match.Playlist
|
|||||||
private OsuSpriteText queueListCount;
|
private OsuSpriteText queueListCount;
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
private void load()
|
private void load(OsuColour osuColour)
|
||||||
{
|
{
|
||||||
const float tab_control_height = 25;
|
const float tab_control_height = 25;
|
||||||
|
|
||||||
InternalChildren = new Drawable[]
|
InternalChildren = new Drawable[]
|
||||||
{
|
{
|
||||||
|
new FillFlowContainer
|
||||||
|
{
|
||||||
|
Anchor = Anchor.TopCentre,
|
||||||
|
Origin = Anchor.TopCentre,
|
||||||
|
Direction = FillDirection.Horizontal,
|
||||||
|
RelativeSizeAxes = Axes.X,
|
||||||
|
AutoSizeAxes = Axes.Y,
|
||||||
|
Spacing = new Vector2(OsuTabControl<MultiplayerPlaylistDisplayMode>.HORIZONTAL_SPACING, 0),
|
||||||
|
Children = new Drawable[]
|
||||||
|
{
|
||||||
|
queueListCount = new OsuSpriteText
|
||||||
|
{
|
||||||
|
Font = OsuFont.Default.With(weight: FontWeight.Bold),
|
||||||
|
Anchor = Anchor.CentreLeft,
|
||||||
|
Origin = Anchor.CentreLeft,
|
||||||
|
Colour = osuColour.Yellow,
|
||||||
|
},
|
||||||
new OsuTabControl<MultiplayerPlaylistDisplayMode>
|
new OsuTabControl<MultiplayerPlaylistDisplayMode>
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
Height = tab_control_height,
|
Height = tab_control_height,
|
||||||
Current = { BindTarget = DisplayMode }
|
Anchor = Anchor.CentreLeft,
|
||||||
|
Origin = Anchor.CentreLeft,
|
||||||
|
Current = { BindTarget = DisplayMode },
|
||||||
},
|
},
|
||||||
queueListCount = new OsuSpriteText
|
}
|
||||||
{
|
|
||||||
Font = OsuFont.Default.With(weight: FontWeight.Bold),
|
|
||||||
Anchor = Anchor.TopCentre,
|
|
||||||
Origin = Anchor.TopCentre,
|
|
||||||
},
|
},
|
||||||
new Container
|
new Container
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user