mirror of https://github.com/ppy/osu
Apply naming suggestions
This commit is contained in:
parent
0f74389389
commit
ccfc361626
|
@ -44,7 +44,7 @@ public class BeatmapCard : OsuClickableContainer
|
|||
|
||||
private readonly BeatmapDownloadTracker downloadTracker;
|
||||
|
||||
private BeatmapCardDropdown dropdown = null!;
|
||||
private BeatmapCardContent content = null!;
|
||||
|
||||
private BeatmapCardThumbnail thumbnail = null!;
|
||||
|
||||
|
@ -82,9 +82,9 @@ private void load(BeatmapSetOverlay? beatmapSetOverlay)
|
|||
GridContainer titleContainer;
|
||||
GridContainer artistContainer;
|
||||
|
||||
InternalChild = dropdown = new BeatmapCardDropdown(height)
|
||||
InternalChild = content = new BeatmapCardContent(height)
|
||||
{
|
||||
Body = new Container
|
||||
MainContent = new Container
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Children = new Drawable[]
|
||||
|
@ -282,10 +282,10 @@ private void load(BeatmapSetOverlay? beatmapSetOverlay)
|
|||
{
|
||||
Hovered = _ =>
|
||||
{
|
||||
dropdown.ScheduleShow();
|
||||
content.ScheduleShow();
|
||||
return false;
|
||||
},
|
||||
Unhovered = _ => dropdown.ScheduleHide()
|
||||
Unhovered = _ => content.ScheduleHide()
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -304,7 +304,7 @@ private void load(BeatmapSetOverlay? beatmapSetOverlay)
|
|||
}
|
||||
}
|
||||
},
|
||||
Dropdown = new Container
|
||||
ExpandedContent = new Container
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
|
|
|
@ -19,14 +19,14 @@
|
|||
|
||||
namespace osu.Game.Beatmaps.Drawables.Cards
|
||||
{
|
||||
public class BeatmapCardDropdown : CompositeDrawable
|
||||
public class BeatmapCardContent : CompositeDrawable
|
||||
{
|
||||
public Drawable Body
|
||||
public Drawable MainContent
|
||||
{
|
||||
set => bodyContent.Child = value;
|
||||
}
|
||||
|
||||
public Drawable Dropdown
|
||||
public Drawable ExpandedContent
|
||||
{
|
||||
set => dropdownScroll.Child = value;
|
||||
}
|
||||
|
@ -40,7 +40,7 @@ public Drawable Dropdown
|
|||
private readonly OsuScrollContainer dropdownScroll;
|
||||
private readonly Container borderContainer;
|
||||
|
||||
public BeatmapCardDropdown(float height)
|
||||
public BeatmapCardContent(float height)
|
||||
{
|
||||
RelativeSizeAxes = Axes.X;
|
||||
Height = height;
|
||||
|
@ -77,7 +77,7 @@ public BeatmapCardDropdown(float height)
|
|||
return true;
|
||||
},
|
||||
Unhovered = _ => checkForHide(),
|
||||
Child = dropdownScroll = new DropdownScrollContainer
|
||||
Child = dropdownScroll = new ExpandedContentScrollContainer
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
ScrollbarVisible = false
|
||||
|
@ -179,9 +179,9 @@ private void updateState()
|
|||
}, BeatmapCard.TRANSITION_DURATION, Easing.OutQuint);
|
||||
}
|
||||
|
||||
private class DropdownScrollContainer : OsuScrollContainer
|
||||
private class ExpandedContentScrollContainer : OsuScrollContainer
|
||||
{
|
||||
public DropdownScrollContainer()
|
||||
public ExpandedContentScrollContainer()
|
||||
{
|
||||
ScrollbarVisible = false;
|
||||
}
|
Loading…
Reference in New Issue