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

View File

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