1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-17 11:12:55 +08:00
osu-lazer/osu.Game/Overlays/Dashboard/DashboardOverlayHeader.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
1.1 KiB
C#
Raw Normal View History

2020-04-16 16:01:36 +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 System.ComponentModel;
2021-07-01 02:28:27 +08:00
using osu.Framework.Localisation;
using osu.Game.Graphics;
using osu.Game.Localisation;
2021-07-01 02:28:27 +08:00
using osu.Game.Resources.Localisation.Web;
2020-04-16 16:01:36 +08:00
namespace osu.Game.Overlays.Dashboard
{
public partial class DashboardOverlayHeader : TabControlOverlayHeader<DashboardOverlayTabs>
2020-04-16 16:01:36 +08:00
{
protected override OverlayTitle CreateTitle() => new DashboardTitle();
private partial class DashboardTitle : OverlayTitle
{
public DashboardTitle()
{
2021-08-03 15:34:21 +08:00
Title = PageTitleStrings.MainHomeControllerIndex;
Description = NamedOverlayComponentStrings.DashboardDescription;
Icon = OsuIcon.Global;
2020-04-16 16:01:36 +08:00
}
}
}
public enum DashboardOverlayTabs
2020-04-16 16:01:36 +08:00
{
[LocalisableDescription(typeof(FriendsStrings), nameof(FriendsStrings.TitleCompact))]
Friends,
[Description("Currently online")]
CurrentlyPlaying
2020-04-16 16:01:36 +08:00
}
}