1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-07 05:47:18 +08:00
osu-lazer/osu.Game/Overlays/Rankings/RankingsOverlayHeader.cs

44 lines
1.5 KiB
C#
Raw Normal View History

// 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.
2022-06-17 16:37:17 +09:00
#nullable disable
using osu.Framework.Bindables;
using osu.Game.Localisation;
2021-08-03 15:34:21 +08:00
using osu.Game.Resources.Localisation.Web;
2021-08-03 18:29:02 +09:00
using osu.Framework.Graphics;
using osu.Game.Graphics;
using osu.Game.Rulesets;
using osu.Game.Users;
namespace osu.Game.Overlays.Rankings
{
2022-11-24 14:32:20 +09:00
public partial class RankingsOverlayHeader : TabControlOverlayHeader<RankingsScope>
{
2020-02-18 21:26:25 +03:00
public Bindable<RulesetInfo> Ruleset => rulesetSelector.Current;
2020-02-18 21:28:38 +03:00
2022-07-18 08:40:34 +03:00
public Bindable<CountryCode> Country => countryFilter.Current;
2020-02-18 21:26:25 +03:00
private OverlayRulesetSelector rulesetSelector;
private CountryFilter countryFilter;
protected override OverlayTitle CreateTitle() => new RankingsTitle();
protected override Drawable CreateTabControlContent() => rulesetSelector = new OverlayRulesetSelector();
2020-02-18 21:26:25 +03:00
protected override Drawable CreateContent() => countryFilter = new CountryFilter();
2020-02-03 20:32:20 +03:00
protected override Drawable CreateBackground() => new OverlayHeaderBackground("Headers/rankings");
2020-02-13 14:12:10 +03:00
2022-11-24 14:32:20 +09:00
private partial class RankingsTitle : OverlayTitle
{
public RankingsTitle()
{
2021-08-03 15:34:21 +08:00
Title = PageTitleStrings.MainRankingControllerDefault;
Description = NamedOverlayComponentStrings.RankingsDescription;
Icon = HexaconsIcons.Rankings;
}
}
}
}