1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-16 12:37:47 +08:00
osu-lazer/osu.Game/Overlays/DashboardOverlay.cs

39 lines
1.2 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;
2020-04-16 16:01:36 +08:00
using osu.Game.Overlays.Dashboard;
using osu.Game.Overlays.Dashboard.Friends;
2020-04-16 16:01:36 +08:00
namespace osu.Game.Overlays
{
2022-11-24 13:32:20 +08:00
public partial class DashboardOverlay : TabbableOnlineOverlay<DashboardOverlayHeader, DashboardOverlayTabs>
2020-04-16 16:01:36 +08:00
{
public DashboardOverlay()
2021-01-18 15:48:12 +08:00
: base(OverlayColourScheme.Purple)
2020-04-20 14:34:48 +08:00
{
}
2021-01-18 15:48:12 +08:00
protected override DashboardOverlayHeader CreateHeader() => new DashboardOverlayHeader();
public override bool AcceptsFocus => false;
protected override void CreateDisplayToLoad(DashboardOverlayTabs tab)
{
switch (tab)
{
case DashboardOverlayTabs.Friends:
LoadDisplay(new FriendDisplay());
break;
case DashboardOverlayTabs.CurrentlyPlaying:
LoadDisplay(new CurrentlyPlayingDisplay());
break;
default:
throw new NotImplementedException($"Display for {tab} tab is not implemented");
}
}
2020-04-16 16:01:36 +08:00
}
}