osu/osu.Game/Overlays/Dashboard/DashboardOverlayHeader.cs

37 lines
1.1 KiB
C#
Raw Normal View History

2020-04-16 08:01:36 +00: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.
2022-06-17 07:37:17 +00:00
#nullable disable
using System.ComponentModel;
2021-06-30 18:28:27 +00:00
using osu.Framework.Localisation;
using osu.Game.Localisation;
2021-06-30 18:28:27 +00:00
using osu.Game.Resources.Localisation.Web;
2020-04-16 08:01:36 +00:00
namespace osu.Game.Overlays.Dashboard
{
public class DashboardOverlayHeader : TabControlOverlayHeader<DashboardOverlayTabs>
2020-04-16 08:01:36 +00:00
{
protected override OverlayTitle CreateTitle() => new DashboardTitle();
private class DashboardTitle : OverlayTitle
{
public DashboardTitle()
{
2021-08-03 07:34:21 +00:00
Title = PageTitleStrings.MainHomeControllerIndex;
Description = NamedOverlayComponentStrings.DashboardDescription;
IconTexture = "Icons/Hexacons/social";
2020-04-16 08:01:36 +00:00
}
}
}
public enum DashboardOverlayTabs
2020-04-16 08:01:36 +00:00
{
[LocalisableDescription(typeof(FriendsStrings), nameof(FriendsStrings.TitleCompact))]
Friends,
[Description("Currently Playing")]
CurrentlyPlaying
2020-04-16 08:01:36 +00:00
}
}