1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-14 21:57:55 +08:00
osu-lazer/osu.Game/Users/Profile/ProfileSection.cs
2017-06-09 14:53:00 +08:00

42 lines
1.3 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 osu.Framework.Graphics;
using osu.Framework.Graphics.Containers;
using osu.Framework.Graphics.Sprites;
using osu.Game.Graphics;
using osu.Game.Graphics.Sprites;
namespace osu.Game.Users.Profile
{
public abstract class ProfileSection : FillFlowContainer
{
public abstract string Title { get; }
protected ProfileSection()
{
Margin = new MarginPadding { Horizontal = UserProfile.CONTENT_X_MARGIN };
Direction = FillDirection.Vertical;
AutoSizeAxes = Axes.Y;
RelativeSizeAxes = Axes.X;
Children = new Drawable[]
{
new OsuSpriteText
{
Text = Title,
TextSize = 16,
Font = @"Exo2.0-RegularItalic",
Margin = new MarginPadding { Vertical = 20 }
},
new Box
{
RelativeSizeAxes = Axes.X,
Height = 1,
Colour = OsuColour.Gray(34),
Depth = float.MinValue
}
};
}
}
}