1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-22 10:07:36 +08:00

Rename "Hidden" to "Collapsed"

This commit is contained in:
Dean Herbert 2017-12-16 23:56:14 +09:00
parent da0940ae0b
commit 29a8ade59f
3 changed files with 7 additions and 7 deletions

View File

@ -15,7 +15,7 @@ namespace osu.Game.Screens.Select.Carousel
public CarouselBeatmap(BeatmapInfo beatmap)
{
Beatmap = beatmap;
State.Value = CarouselItemState.Hidden;
State.Value = CarouselItemState.Collapsed;
}
protected override DrawableCarouselItem CreateDrawableRepresentation() => new DrawableCarouselBeatmap(this);

View File

@ -21,7 +21,7 @@ namespace osu.Game.Screens.Select.Carousel
/// <summary>
/// This item is not in a hidden state.
/// </summary>
public bool Visible => State.Value != CarouselItemState.Hidden && !Filtered;
public bool Visible => State.Value != CarouselItemState.Collapsed && !Filtered;
public IEnumerable<DrawableCarouselItem> Drawables
{
@ -63,14 +63,14 @@ namespace osu.Game.Screens.Select.Carousel
switch (v)
{
case CarouselItemState.Hidden:
case CarouselItemState.Collapsed:
case CarouselItemState.NotSelected:
InternalChildren.ForEach(c => c.State.Value = CarouselItemState.Hidden);
InternalChildren.ForEach(c => c.State.Value = CarouselItemState.Collapsed);
break;
case CarouselItemState.Selected:
InternalChildren.ForEach(c =>
{
if (c.State == CarouselItemState.Hidden) c.State.Value = CarouselItemState.NotSelected;
if (c.State == CarouselItemState.Collapsed) c.State.Value = CarouselItemState.NotSelected;
});
break;
}
@ -98,7 +98,7 @@ namespace osu.Game.Screens.Select.Carousel
public enum CarouselItemState
{
Hidden,
Collapsed,
NotSelected,
Selected,
}

View File

@ -160,7 +160,7 @@ namespace osu.Game.Screens.Select.Carousel
protected override void ApplyState()
{
if (Item.State.Value != CarouselItemState.Hidden && Alpha == 0)
if (Item.State.Value != CarouselItemState.Collapsed && Alpha == 0)
starCounter.ReplayAnimation();
base.ApplyState();