mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 17:32:54 +08:00
33 lines
982 B
C#
33 lines
982 B
C#
// 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.Bindables;
|
|
using osu.Framework.Graphics;
|
|
using osu.Game.Rulesets;
|
|
|
|
namespace osu.Game.Overlays.BeatmapSet
|
|
{
|
|
public class BeatmapSetHeader : OverlayHeader
|
|
{
|
|
public readonly Bindable<RulesetInfo> Ruleset = new Bindable<RulesetInfo>();
|
|
|
|
public BeatmapRulesetSelector RulesetSelector { get; private set; }
|
|
|
|
protected override OverlayTitle CreateTitle() => new BeatmapHeaderTitle();
|
|
|
|
protected override Drawable CreateTitleContent() => RulesetSelector = new BeatmapRulesetSelector
|
|
{
|
|
Current = Ruleset
|
|
};
|
|
|
|
private class BeatmapHeaderTitle : OverlayTitle
|
|
{
|
|
public BeatmapHeaderTitle()
|
|
{
|
|
Title = "beatmap info";
|
|
IconTexture = "Icons/changelog";
|
|
}
|
|
}
|
|
}
|
|
}
|