mirror of
https://github.com/ppy/osu.git
synced 2024-11-14 18:47:27 +08:00
39 lines
1.1 KiB
C#
39 lines
1.1 KiB
C#
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
using System.ComponentModel;
|
|
using OpenTK.Graphics;
|
|
using osu.Framework.Graphics;
|
|
using osu.Game.Graphics;
|
|
using osu.Game.Graphics.Sprites;
|
|
using osu.Game.Overlays.SearchableList;
|
|
|
|
namespace osu.Game.Overlays.Direct
|
|
{
|
|
public class Header : SearchableListHeader<DirectTab>
|
|
{
|
|
protected override Color4 BackgroundColour => OsuColour.FromHex(@"252f3a");
|
|
protected override float TabStripWidth => 298;
|
|
|
|
protected override DirectTab DefaultTab => DirectTab.Search;
|
|
protected override Drawable CreateHeaderText() => new OsuSpriteText { Text = @"osu!direct", TextSize = 25 };
|
|
|
|
public Header()
|
|
{
|
|
Tabs.Current.Value = DirectTab.Search;
|
|
Tabs.Current.TriggerChange();
|
|
}
|
|
}
|
|
|
|
public enum DirectTab
|
|
{
|
|
Search,
|
|
[Description("Newest Maps")]
|
|
NewestMaps,
|
|
[Description("Top Rated")]
|
|
TopRated,
|
|
[Description("Most Played")]
|
|
MostPlayed
|
|
}
|
|
}
|