2020-12-03 16:59:39 +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.
|
|
|
|
|
|
2024-06-25 17:28:10 +08:00
|
|
|
|
using osu.Framework.Allocation;
|
2020-12-25 12:38:11 +08:00
|
|
|
|
using osu.Game.Online.Rooms;
|
2024-06-25 17:28:10 +08:00
|
|
|
|
using osu.Game.Rulesets;
|
2020-12-03 16:59:39 +08:00
|
|
|
|
|
2020-12-25 23:50:00 +08:00
|
|
|
|
namespace osu.Game.Screens.OnlinePlay.Components
|
2020-12-03 16:59:39 +08:00
|
|
|
|
{
|
|
|
|
|
public partial class OverlinedPlaylistHeader : OverlinedHeader
|
|
|
|
|
{
|
2024-06-25 17:28:10 +08:00
|
|
|
|
[Resolved]
|
|
|
|
|
private RulesetStore rulesets { get; set; } = null!;
|
|
|
|
|
|
2020-12-03 16:59:39 +08:00
|
|
|
|
public OverlinedPlaylistHeader()
|
|
|
|
|
: base("Playlist")
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected override void LoadComplete()
|
|
|
|
|
{
|
|
|
|
|
base.LoadComplete();
|
|
|
|
|
|
2024-06-25 17:28:10 +08:00
|
|
|
|
Playlist.BindCollectionChanged((_, _) => Details.Value = Playlist.GetTotalDuration(rulesets), true);
|
2020-12-03 16:59:39 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|