1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-26 19:32:55 +08:00

UserPage -> Profile.

This commit is contained in:
Huo Yaoyuan 2017-06-05 21:07:57 +08:00
parent 1b8ef3bbbd
commit 428b44f7d9
6 changed files with 17 additions and 17 deletions

View File

@ -13,12 +13,12 @@ using osu.Game.Users;
namespace osu.Desktop.VisualTests.Tests namespace osu.Desktop.VisualTests.Tests
{ {
internal class TestCaseUserPage : TestCase internal class TestCaseUserProfile : TestCase
{ {
public override void Reset() public override void Reset()
{ {
base.Reset(); base.Reset();
var userpage = new UserPageOverlay(new User var userpage = new UserProfile(new User
{ {
Username = @"peppy", Username = @"peppy",
Id = 2, Id = 2,

View File

@ -210,7 +210,7 @@
<Compile Include="Tests\TestCasePlaySongSelect.cs" /> <Compile Include="Tests\TestCasePlaySongSelect.cs" />
<Compile Include="Tests\TestCaseTooltip.cs" /> <Compile Include="Tests\TestCaseTooltip.cs" />
<Compile Include="Tests\TestCaseTwoLayerButton.cs" /> <Compile Include="Tests\TestCaseTwoLayerButton.cs" />
<Compile Include="Tests\TestCaseUserPage.cs" /> <Compile Include="Tests\TestCaseUserProfile.cs" />
<Compile Include="VisualTestGame.cs" /> <Compile Include="VisualTestGame.cs" />
<Compile Include="Platform\TestStorage.cs" /> <Compile Include="Platform\TestStorage.cs" />
<Compile Include="Tests\TestCaseSettings.cs" /> <Compile Include="Tests\TestCaseSettings.cs" />

View File

@ -8,7 +8,7 @@ using System.Text;
using System.Threading.Tasks; using System.Threading.Tasks;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
namespace osu.Game.Users.UserPage namespace osu.Game.Users.Profile
{ {
public class UserPageHeader : Container public class UserPageHeader : Container
{ {

View File

@ -3,14 +3,14 @@
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
namespace osu.Game.Users.UserPage namespace osu.Game.Users.Profile
{ {
public abstract class UserPageSection : Container public abstract class ProfileSection : Container
{ {
protected readonly User User; protected readonly User User;
public abstract string Title { get; } public abstract string Title { get; }
protected UserPageSection(User user) protected ProfileSection(User user)
{ {
User = user; User = user;
} }

View File

@ -10,19 +10,19 @@ using osu.Framework.Graphics;
using osu.Framework.Graphics.Containers; using osu.Framework.Graphics.Containers;
using osu.Game.Graphics.Containers; using osu.Game.Graphics.Containers;
using osu.Game.Graphics.UserInterface; using osu.Game.Graphics.UserInterface;
using osu.Game.Users.UserPage; using osu.Game.Users.Profile;
namespace osu.Game.Users namespace osu.Game.Users
{ {
public class UserPageOverlay : FocusedOverlayContainer public class UserProfile : FocusedOverlayContainer
{ {
private readonly User user; private readonly User user;
private UserPageSection lastSection; private ProfileSection lastSection;
public UserPageOverlay(User user) public UserProfile(User user)
{ {
this.user = user; this.user = user;
var tab = new OsuTabControl<UserPageSection>(); var tab = new OsuTabControl<ProfileSection>();
var sections = new UserPageSection[] { }; var sections = new ProfileSection[] { };
var sectionsContainer = new SectionsContainer var sectionsContainer = new SectionsContainer
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
@ -37,7 +37,7 @@ namespace osu.Game.Users
{ {
if (lastSection != s) if (lastSection != s)
{ {
lastSection = s as UserPageSection; lastSection = s as ProfileSection;
tab.Current.Value = lastSection; tab.Current.Value = lastSection;
} }
}; };

View File

@ -86,9 +86,9 @@
<Compile Include="Overlays\Settings\Sections\Audio\MainMenuSettings.cs" /> <Compile Include="Overlays\Settings\Sections\Audio\MainMenuSettings.cs" />
<Compile Include="Overlays\Toolbar\ToolbarChatButton.cs" /> <Compile Include="Overlays\Toolbar\ToolbarChatButton.cs" />
<Compile Include="Users\UserCoverBackground.cs" /> <Compile Include="Users\UserCoverBackground.cs" />
<Compile Include="Users\UserPageOverlay.cs" /> <Compile Include="Users\UserProfile.cs" />
<Compile Include="Users\UserPage\UserPageHeader.cs" /> <Compile Include="Users\Profile\ProfileHeader.cs" />
<Compile Include="Users\UserPage\UserPageSection.cs" /> <Compile Include="Users\Profile\ProfileSection.cs" />
<Compile Include="Rulesets\Beatmaps\BeatmapConverter.cs" /> <Compile Include="Rulesets\Beatmaps\BeatmapConverter.cs" />
<Compile Include="Rulesets\Beatmaps\BeatmapProcessor.cs" /> <Compile Include="Rulesets\Beatmaps\BeatmapProcessor.cs" />
<Compile Include="Beatmaps\ControlPoints\ControlPoint.cs" /> <Compile Include="Beatmaps\ControlPoints\ControlPoint.cs" />