1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 02:13:21 +08:00

Drop container from name

This commit is contained in:
smoogipoo 2019-08-13 14:09:10 +09:00
parent 5681d1097c
commit 8d3f2f7645
2 changed files with 12 additions and 5 deletions

View File

@ -1,6 +1,8 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence. // 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. // See the LICENCE file in the repository root for full licence text.
using System;
using System.Collections.Generic;
using NUnit.Framework; using NUnit.Framework;
using osu.Framework.Allocation; using osu.Framework.Allocation;
using osu.Framework.Bindables; using osu.Framework.Bindables;
@ -13,16 +15,21 @@ using osu.Game.Users;
namespace osu.Game.Tests.Visual.Online namespace osu.Game.Tests.Visual.Online
{ {
[TestFixture] [TestFixture]
public class TestScenePreviousUsernamesContainer : OsuTestScene public class TestSceneUserProfilePreviousUsernames : OsuTestScene
{ {
public override IReadOnlyList<Type> RequiredTypes => new[]
{
typeof(PreviousUsernames)
};
[Resolved] [Resolved]
private IAPIProvider api { get; set; } private IAPIProvider api { get; set; }
private readonly Bindable<User> user = new Bindable<User>(); private readonly Bindable<User> user = new Bindable<User>();
public TestScenePreviousUsernamesContainer() public TestSceneUserProfilePreviousUsernames()
{ {
Child = new PreviousUsernamesContainer Child = new PreviousUsernames
{ {
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre, Origin = Anchor.Centre,

View File

@ -16,7 +16,7 @@ using osuTK;
namespace osu.Game.Overlays.Profile.Header.Components namespace osu.Game.Overlays.Profile.Header.Components
{ {
public class PreviousUsernamesContainer : CompositeDrawable public class PreviousUsernames : CompositeDrawable
{ {
private const int duration = 200; private const int duration = 200;
private const int margin = 10; private const int margin = 10;
@ -29,7 +29,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
private readonly Box background; private readonly Box background;
private readonly SpriteText header; private readonly SpriteText header;
public PreviousUsernamesContainer() public PreviousUsernames()
{ {
HoverIconContainer hoverIcon; HoverIconContainer hoverIcon;