mirror of
https://github.com/ppy/osu
synced 2025-02-20 12:26:59 +00:00
Rename "Hidden" to "Collapsed"
This commit is contained in:
parent
da0940ae0b
commit
29a8ade59f
@ -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);
|
||||
|
@ -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,
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user