2017-05-26 11:52:01 +08:00
|
|
|
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
|
|
|
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
|
|
|
|
2017-05-26 13:44:09 +08:00
|
|
|
using osu.Game.Overlays.SearchableList;
|
2017-05-26 11:52:01 +08:00
|
|
|
using OpenTK.Graphics;
|
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Game.Graphics.Sprites;
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
using osu.Game.Graphics;
|
|
|
|
using osu.Framework.Allocation;
|
2017-05-26 12:32:20 +08:00
|
|
|
using System.ComponentModel;
|
2017-05-26 11:52:01 +08:00
|
|
|
|
|
|
|
namespace osu.Game.Overlays.Social
|
|
|
|
{
|
2017-05-26 13:44:09 +08:00
|
|
|
public class Header : SearchableListHeader<SocialTab>
|
2017-05-26 11:52:01 +08:00
|
|
|
{
|
|
|
|
private OsuSpriteText browser;
|
|
|
|
|
2017-05-26 13:49:04 +08:00
|
|
|
protected override Color4 BackgroundColour => OsuColour.FromHex(@"38202e");
|
2017-05-26 11:52:01 +08:00
|
|
|
protected override float TabStripWidth => 438;
|
|
|
|
protected override SocialTab DefaultTab => SocialTab.OnlinePlayers;
|
2017-06-07 19:06:02 +08:00
|
|
|
protected override FontAwesome Icon => FontAwesome.fa_users;
|
2017-05-26 11:52:01 +08:00
|
|
|
|
|
|
|
protected override Drawable CreateHeaderText()
|
|
|
|
{
|
|
|
|
return new FillFlowContainer
|
|
|
|
{
|
|
|
|
AutoSizeAxes = Axes.Both,
|
|
|
|
Direction = FillDirection.Horizontal,
|
|
|
|
Children = new[]
|
|
|
|
{
|
|
|
|
new OsuSpriteText
|
|
|
|
{
|
|
|
|
Text = "social ",
|
|
|
|
TextSize = 25,
|
|
|
|
},
|
|
|
|
browser = new OsuSpriteText
|
|
|
|
{
|
|
|
|
Text = "browser",
|
|
|
|
TextSize = 25,
|
|
|
|
Font = @"Exo2.0-Light",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
private void load(OsuColour colours)
|
|
|
|
{
|
|
|
|
browser.Colour = colours.Pink;
|
|
|
|
}
|
|
|
|
}
|
2017-05-26 12:32:20 +08:00
|
|
|
|
|
|
|
public enum SocialTab
|
|
|
|
{
|
|
|
|
[Description("Online Players")]
|
|
|
|
OnlinePlayers,
|
2017-06-07 19:06:02 +08:00
|
|
|
//[Description("Online Friends")]
|
|
|
|
//OnlineFriends,
|
|
|
|
//[Description("Online Team Members")]
|
|
|
|
//OnlineTeamMembers,
|
|
|
|
//[Description("Chat Channels")]
|
|
|
|
//ChatChannels,
|
2017-05-26 12:32:20 +08:00
|
|
|
}
|
2017-05-26 11:52:01 +08:00
|
|
|
}
|