mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 12:57:36 +08:00
Rename PaginatedContainerHeader to ProfileSubsectionHeader
This commit is contained in:
parent
09f905355d
commit
c4cb1440ab
@ -11,12 +11,12 @@ using osu.Framework.Allocation;
|
||||
|
||||
namespace osu.Game.Tests.Visual.UserInterface
|
||||
{
|
||||
public class TestScenePaginatedContainerHeader : OsuTestScene
|
||||
public class TestSceneProfileSubsectionHeader : OsuTestScene
|
||||
{
|
||||
[Cached]
|
||||
private readonly OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Pink);
|
||||
|
||||
private PaginatedContainerHeader header;
|
||||
private ProfileSubsectionHeader header;
|
||||
|
||||
[Test]
|
||||
public void TestHiddenCounter()
|
||||
@ -69,7 +69,7 @@ namespace osu.Game.Tests.Visual.UserInterface
|
||||
private void createHeader(string text, CounterVisibilityState state, int initialValue = 0)
|
||||
{
|
||||
Clear();
|
||||
Add(header = new PaginatedContainerHeader(text, state)
|
||||
Add(header = new ProfileSubsectionHeader(text, state)
|
||||
{
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
@ -36,7 +36,7 @@ namespace osu.Game.Overlays.Profile.Sections
|
||||
private readonly string missingText;
|
||||
private ShowMoreButton moreButton;
|
||||
private OsuSpriteText missing;
|
||||
private PaginatedContainerHeader header;
|
||||
private ProfileSubsectionHeader header;
|
||||
|
||||
private readonly string headerText;
|
||||
private readonly CounterVisibilityState counterVisibilityState;
|
||||
@ -58,7 +58,7 @@ namespace osu.Game.Overlays.Profile.Sections
|
||||
|
||||
Children = new Drawable[]
|
||||
{
|
||||
header = new PaginatedContainerHeader(headerText, counterVisibilityState)
|
||||
header = new ProfileSubsectionHeader(headerText, counterVisibilityState)
|
||||
{
|
||||
Alpha = string.IsNullOrEmpty(headerText) ? 0 : 1
|
||||
},
|
||||
|
@ -14,7 +14,7 @@ using osu.Game.Graphics;
|
||||
|
||||
namespace osu.Game.Overlays.Profile.Sections
|
||||
{
|
||||
public class PaginatedContainerHeader : CompositeDrawable, IHasCurrentValue<int>
|
||||
public class ProfileSubsectionHeader : CompositeDrawable, IHasCurrentValue<int>
|
||||
{
|
||||
private readonly BindableWithCurrent<int> current = new BindableWithCurrent<int>();
|
||||
|
||||
@ -29,7 +29,7 @@ namespace osu.Game.Overlays.Profile.Sections
|
||||
|
||||
private CounterPill counterPill;
|
||||
|
||||
public PaginatedContainerHeader(string text, CounterVisibilityState counterState)
|
||||
public ProfileSubsectionHeader(string text, CounterVisibilityState counterState)
|
||||
{
|
||||
this.text = text;
|
||||
this.counterState = counterState;
|
Loading…
Reference in New Issue
Block a user