mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 20:13:21 +08:00
Adjust naming of component to give more context
This commit is contained in:
parent
dbc07bc6dc
commit
b4bedee49e
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user