2020-02-03 19:35:07 +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.
|
|
|
|
|
|
|
|
|
|
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>();
|
2020-02-04 11:55:09 +08:00
|
|
|
|
|
|
|
|
|
public BeatmapRulesetSelector RulesetSelector { get; private set; }
|
2020-02-03 19:35:07 +08:00
|
|
|
|
|
2020-03-25 05:08:20 +08:00
|
|
|
|
protected override OverlayTitle CreateTitle() => new BeatmapHeaderTitle();
|
2020-02-03 19:35:07 +08:00
|
|
|
|
|
|
|
|
|
protected override Drawable CreateTitleContent() => RulesetSelector = new BeatmapRulesetSelector
|
|
|
|
|
{
|
|
|
|
|
Current = Ruleset
|
|
|
|
|
};
|
|
|
|
|
|
2020-03-25 05:08:20 +08:00
|
|
|
|
private class BeatmapHeaderTitle : OverlayTitle
|
2020-02-03 19:35:07 +08:00
|
|
|
|
{
|
|
|
|
|
public BeatmapHeaderTitle()
|
|
|
|
|
{
|
2020-03-25 05:08:20 +08:00
|
|
|
|
Title = "beatmap info";
|
2020-09-03 16:05:45 +08:00
|
|
|
|
IconTexture = "Icons/Hexacons/beatmap";
|
2020-02-03 19:35:07 +08:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|