1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-16 05:32:35 +08:00

Adjust naming of component to give more context

This commit is contained in:
Dean Herbert
2023-09-12 15:43:59 +09:00
Unverified
parent dbc07bc6dc
commit b4bedee49e
3 changed files with 8 additions and 8 deletions
@@ -11,9 +11,9 @@ using osu.Game.Overlays.Profile.Header.Components;
namespace osu.Game.Tests.Visual.Online
{
[TestFixture]
public partial class TestSceneUserProfilePreviousUsernames : OsuTestScene
public partial class TestSceneUserProfilePreviousUsernamesDisplay : OsuTestScene
{
private PreviousUsernames container = null!;
private PreviousUsernamesDisplay container = null!;
private OverlayColourProvider colourProvider = null!;
[SetUp]
@@ -22,7 +22,7 @@ namespace osu.Game.Tests.Visual.Online
colourProvider = new OverlayColourProvider(OverlayColourScheme.Pink);
Child = new DependencyProvidingContainer
{
Child = container = new PreviousUsernames
Child = container = new PreviousUsernamesDisplay
{
Anchor = Anchor.Centre,
Origin = Anchor.Centre,
@@ -18,7 +18,7 @@ using osuTK;
namespace osu.Game.Overlays.Profile.Header.Components
{
public partial class PreviousUsernames : CompositeDrawable
public partial class PreviousUsernamesDisplay : CompositeDrawable
{
private const int duration = 200;
private const int margin = 10;
@@ -32,7 +32,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
private readonly Box background;
private readonly SpriteText header;
public PreviousUsernames()
public PreviousUsernamesDisplay()
{
HoverIconContainer hoverIcon;
@@ -46,7 +46,7 @@ namespace osu.Game.Overlays.Profile.Header
private OsuSpriteText userCountryText = null!;
private GroupBadgeFlow groupBadgeFlow = null!;
private ToggleCoverButton coverToggle = null!;
private PreviousUsernames previousUsernames = null!;
private PreviousUsernamesDisplay previousUsernamesDisplay = null!;
private Bindable<bool> coverExpanded = null!;
@@ -146,7 +146,7 @@ namespace osu.Game.Overlays.Profile.Header
},
new Container
{
Child = previousUsernames = new PreviousUsernames
Child = previousUsernamesDisplay = new PreviousUsernamesDisplay
{
Anchor = Anchor.TopLeft,
Origin = Anchor.TopLeft,
@@ -228,7 +228,7 @@ namespace osu.Game.Overlays.Profile.Header
titleText.Text = user?.Title ?? string.Empty;
titleText.Colour = Color4Extensions.FromHex(user?.Colour ?? "fff");
groupBadgeFlow.User.Value = user;
previousUsernames.User.Value = user;
previousUsernamesDisplay.User.Value = user;
}
private void updateCoverState()