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