Update usage design.

This commit is contained in:
Huo Yaoyuan
2017-06-15 20:01:46 +08:00
parent 13d9f3b9bb
commit 53bd22cf9c
2 changed files with 23 additions and 10 deletions

View File

@ -22,8 +22,10 @@ namespace osu.Game.Overlays
public const float CONTENT_X_MARGIN = 50;
public UserProfileOverlay(User user)
public void ShowUser(User user)
{
Clear();
lastSection = null;
var sections = new ProfileSection[]
{
new AboutSection(),
@ -87,6 +89,7 @@ namespace osu.Game.Overlays
sectionsContainer.ScrollContainer.ScrollIntoView(lastSection);
}
};
Show();
}
private class ProfileTabControl : PageTabControl<ProfileSection>