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.
|
|
|
|
|
|
2020-10-28 08:19:14 +00:00
|
|
|
|
using System.ComponentModel;
|
2021-06-30 18:28:27 +00:00
|
|
|
|
using osu.Framework.Localisation;
|
2023-11-24 04:16:04 +00:00
|
|
|
|
using osu.Game.Graphics;
|
2021-07-17 18:44:09 +00:00
|
|
|
|
using osu.Game.Localisation;
|
2021-06-30 18:28:27 +00:00
|
|
|
|
using osu.Game.Resources.Localisation.Web;
|
2020-10-28 08:19:14 +00:00
|
|
|
|
|
2020-04-16 08:01:36 +00:00
|
|
|
|
namespace osu.Game.Overlays.Dashboard
|
|
|
|
|
{
|
2020-04-16 09:05:51 +00:00
|
|
|
|
public partial class DashboardOverlayHeader : TabControlOverlayHeader<DashboardOverlayTabs>
|
2020-04-16 08:01:36 +00:00
|
|
|
|
{
|
|
|
|
|
protected override OverlayTitle CreateTitle() => new DashboardTitle();
|
|
|
|
|
|
|
|
|
|
private partial class DashboardTitle : OverlayTitle
|
|
|
|
|
{
|
|
|
|
|
public DashboardTitle()
|
|
|
|
|
{
|
2021-08-03 07:34:21 +00:00
|
|
|
|
Title = PageTitleStrings.MainHomeControllerIndex;
|
2021-07-18 02:12:24 +00:00
|
|
|
|
Description = NamedOverlayComponentStrings.DashboardDescription;
|
2023-12-27 14:35:03 +00:00
|
|
|
|
Icon = OsuIcon.Global;
|
2020-04-16 08:01:36 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-04-16 09:05:51 +00:00
|
|
|
|
public enum DashboardOverlayTabs
|
2020-04-16 08:01:36 +00:00
|
|
|
|
{
|
2021-07-30 22:38:54 +00:00
|
|
|
|
[LocalisableDescription(typeof(FriendsStrings), nameof(FriendsStrings.TitleCompact))]
|
2020-10-28 08:19:14 +00:00
|
|
|
|
Friends,
|
|
|
|
|
|
2023-12-06 17:25:16 +00:00
|
|
|
|
[Description("Currently online")]
|
2020-10-28 08:19:14 +00:00
|
|
|
|
CurrentlyPlaying
|
2020-04-16 08:01:36 +00:00
|
|
|
|
}
|
|
|
|
|
}
|