1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 14:17:26 +08:00

Rename PaginatedContainerHeader to ProfileSubsectionHeader

This commit is contained in:
Andrei Zavatski 2020-11-21 02:59:01 +03:00
parent 09f905355d
commit c4cb1440ab
3 changed files with 7 additions and 7 deletions

View File

@ -11,12 +11,12 @@ using osu.Framework.Allocation;
namespace osu.Game.Tests.Visual.UserInterface namespace osu.Game.Tests.Visual.UserInterface
{ {
public class TestScenePaginatedContainerHeader : OsuTestScene public class TestSceneProfileSubsectionHeader : OsuTestScene
{ {
[Cached] [Cached]
private readonly OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Pink); private readonly OverlayColourProvider colourProvider = new OverlayColourProvider(OverlayColourScheme.Pink);
private PaginatedContainerHeader header; private ProfileSubsectionHeader header;
[Test] [Test]
public void TestHiddenCounter() public void TestHiddenCounter()
@ -69,7 +69,7 @@ namespace osu.Game.Tests.Visual.UserInterface
private void createHeader(string text, CounterVisibilityState state, int initialValue = 0) private void createHeader(string text, CounterVisibilityState state, int initialValue = 0)
{ {
Clear(); Clear();
Add(header = new PaginatedContainerHeader(text, state) Add(header = new ProfileSubsectionHeader(text, state)
{ {
Anchor = Anchor.Centre, Anchor = Anchor.Centre,
Origin = Anchor.Centre, Origin = Anchor.Centre,

View File

@ -36,7 +36,7 @@ namespace osu.Game.Overlays.Profile.Sections
private readonly string missingText; private readonly string missingText;
private ShowMoreButton moreButton; private ShowMoreButton moreButton;
private OsuSpriteText missing; private OsuSpriteText missing;
private PaginatedContainerHeader header; private ProfileSubsectionHeader header;
private readonly string headerText; private readonly string headerText;
private readonly CounterVisibilityState counterVisibilityState; private readonly CounterVisibilityState counterVisibilityState;
@ -58,7 +58,7 @@ namespace osu.Game.Overlays.Profile.Sections
Children = new Drawable[] Children = new Drawable[]
{ {
header = new PaginatedContainerHeader(headerText, counterVisibilityState) header = new ProfileSubsectionHeader(headerText, counterVisibilityState)
{ {
Alpha = string.IsNullOrEmpty(headerText) ? 0 : 1 Alpha = string.IsNullOrEmpty(headerText) ? 0 : 1
}, },

View File

@ -14,7 +14,7 @@ using osu.Game.Graphics;
namespace osu.Game.Overlays.Profile.Sections 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>(); private readonly BindableWithCurrent<int> current = new BindableWithCurrent<int>();
@ -29,7 +29,7 @@ namespace osu.Game.Overlays.Profile.Sections
private CounterPill counterPill; private CounterPill counterPill;
public PaginatedContainerHeader(string text, CounterVisibilityState counterState) public ProfileSubsectionHeader(string text, CounterVisibilityState counterState)
{ {
this.text = text; this.text = text;
this.counterState = counterState; this.counterState = counterState;