mirror of
https://github.com/osukey/osukey.git
synced 2025-06-08 04:48:04 +09:00
Add to inspector also
This commit is contained in:
parent
3550e5b30f
commit
3e62da119e
22
osu.Game/Screens/Multi/Components/OverlinedPlaylistHeader.cs
Normal file
22
osu.Game/Screens/Multi/Components/OverlinedPlaylistHeader.cs
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
// 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.Game.Online.Multiplayer;
|
||||||
|
|
||||||
|
namespace osu.Game.Screens.Multi.Components
|
||||||
|
{
|
||||||
|
public class OverlinedPlaylistHeader : OverlinedHeader
|
||||||
|
{
|
||||||
|
public OverlinedPlaylistHeader()
|
||||||
|
: base("Playlist")
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
protected override void LoadComplete()
|
||||||
|
{
|
||||||
|
base.LoadComplete();
|
||||||
|
|
||||||
|
Playlist.BindCollectionChanged((_, __) => Details.Value = Playlist.GetTotalDuration());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -67,7 +67,7 @@ namespace osu.Game.Screens.Multi.Lounge.Components
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
new Drawable[] { new OverlinedHeader("Playlist"), },
|
new Drawable[] { new OverlinedPlaylistHeader(), },
|
||||||
new Drawable[]
|
new Drawable[]
|
||||||
{
|
{
|
||||||
new DrawableRoomPlaylist(false, false)
|
new DrawableRoomPlaylist(false, false)
|
||||||
|
@ -57,7 +57,6 @@ namespace osu.Game.Screens.Multi.Match
|
|||||||
|
|
||||||
private IBindable<WeakReference<BeatmapSetInfo>> managerUpdated;
|
private IBindable<WeakReference<BeatmapSetInfo>> managerUpdated;
|
||||||
private OverlinedHeader participantsHeader;
|
private OverlinedHeader participantsHeader;
|
||||||
private OverlinedHeader playlistHeader;
|
|
||||||
|
|
||||||
public MatchSubScreen(Room room)
|
public MatchSubScreen(Room room)
|
||||||
{
|
{
|
||||||
@ -136,7 +135,7 @@ namespace osu.Game.Screens.Multi.Match
|
|||||||
RelativeSizeAxes = Axes.Both,
|
RelativeSizeAxes = Axes.Both,
|
||||||
Content = new[]
|
Content = new[]
|
||||||
{
|
{
|
||||||
new Drawable[] { playlistHeader = new OverlinedHeader("Playlist"), },
|
new Drawable[] { new OverlinedPlaylistHeader(), },
|
||||||
new Drawable[]
|
new Drawable[]
|
||||||
{
|
{
|
||||||
new DrawableRoomPlaylistWithResults
|
new DrawableRoomPlaylistWithResults
|
||||||
@ -244,8 +243,6 @@ namespace osu.Game.Screens.Multi.Match
|
|||||||
|
|
||||||
managerUpdated = beatmapManager.ItemUpdated.GetBoundCopy();
|
managerUpdated = beatmapManager.ItemUpdated.GetBoundCopy();
|
||||||
managerUpdated.BindValueChanged(beatmapUpdated);
|
managerUpdated.BindValueChanged(beatmapUpdated);
|
||||||
|
|
||||||
playlist.BindCollectionChanged((_, __) => playlistHeader.Details.Value = playlist.GetTotalDuration(), true);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public override bool OnExiting(IScreen next)
|
public override bool OnExiting(IScreen next)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user