2019-01-24 08:43:03 +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.
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
|
|
using osu.Game.Overlays.SearchableList;
|
2018-11-20 07:51:59 +00:00
|
|
|
using osuTK.Graphics;
|
2018-04-13 09:19:50 +00:00
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Game.Graphics.Sprites;
|
|
|
|
using osu.Framework.Graphics.Containers;
|
|
|
|
using osu.Game.Graphics;
|
|
|
|
using osu.Framework.Allocation;
|
|
|
|
using System.ComponentModel;
|
2019-03-27 10:29:27 +00:00
|
|
|
using osu.Framework.Graphics.Sprites;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
|
|
namespace osu.Game.Overlays.Social
|
|
|
|
{
|
|
|
|
public class Header : SearchableListHeader<SocialTab>
|
|
|
|
{
|
|
|
|
private OsuSpriteText browser;
|
|
|
|
|
|
|
|
protected override Color4 BackgroundColour => OsuColour.FromHex(@"38202e");
|
|
|
|
|
|
|
|
protected override SocialTab DefaultTab => SocialTab.AllPlayers;
|
2019-04-02 10:55:24 +00:00
|
|
|
protected override IconUsage Icon => FontAwesome.Solid.Users;
|
2018-04-13 09:19:50 +00:00
|
|
|
|
|
|
|
protected override Drawable CreateHeaderText()
|
|
|
|
{
|
|
|
|
return new FillFlowContainer
|
|
|
|
{
|
|
|
|
AutoSizeAxes = Axes.Both,
|
|
|
|
Direction = FillDirection.Horizontal,
|
|
|
|
Children = new[]
|
|
|
|
{
|
|
|
|
new OsuSpriteText
|
|
|
|
{
|
|
|
|
Text = "social ",
|
2019-02-12 04:04:46 +00:00
|
|
|
Font = OsuFont.GetFont(size: 25),
|
2018-04-13 09:19:50 +00:00
|
|
|
},
|
|
|
|
browser = new OsuSpriteText
|
|
|
|
{
|
|
|
|
Text = "browser",
|
2019-02-12 04:04:46 +00:00
|
|
|
Font = OsuFont.GetFont(size: 25, weight: FontWeight.Light),
|
2018-04-13 09:19:50 +00:00
|
|
|
},
|
|
|
|
},
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
private void load(OsuColour colours)
|
|
|
|
{
|
|
|
|
browser.Colour = colours.Pink;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public enum SocialTab
|
|
|
|
{
|
|
|
|
[Description("All Players")]
|
|
|
|
AllPlayers,
|
2019-02-28 04:31:40 +00:00
|
|
|
|
2018-04-13 09:19:50 +00:00
|
|
|
[Description("Friends")]
|
|
|
|
Friends,
|
|
|
|
//[Description("Team Members")]
|
|
|
|
//TeamMembers,
|
|
|
|
//[Description("Chat Channels")]
|
|
|
|
//ChatChannels,
|
|
|
|
}
|
|
|
|
}
|