mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 14:17:26 +08:00
Apply naming suggestions
This commit is contained in:
parent
0f74389389
commit
ccfc361626
@ -44,7 +44,7 @@ namespace osu.Game.Beatmaps.Drawables.Cards
|
||||
|
||||
private readonly BeatmapDownloadTracker downloadTracker;
|
||||
|
||||
private BeatmapCardDropdown dropdown = null!;
|
||||
private BeatmapCardContent content = null!;
|
||||
|
||||
private BeatmapCardThumbnail thumbnail = null!;
|
||||
|
||||
@ -82,9 +82,9 @@ namespace osu.Game.Beatmaps.Drawables.Cards
|
||||
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 @@ namespace osu.Game.Beatmaps.Drawables.Cards
|
||||
{
|
||||
Hovered = _ =>
|
||||
{
|
||||
dropdown.ScheduleShow();
|
||||
content.ScheduleShow();
|
||||
return false;
|
||||
},
|
||||
Unhovered = _ => dropdown.ScheduleHide()
|
||||
Unhovered = _ => content.ScheduleHide()
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -304,7 +304,7 @@ namespace osu.Game.Beatmaps.Drawables.Cards
|
||||
}
|
||||
}
|
||||
},
|
||||
Dropdown = new Container
|
||||
ExpandedContent = new Container
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
|
@ -19,14 +19,14 @@ using osuTK;
|
||||
|
||||
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 @@ namespace osu.Game.Beatmaps.Drawables.Cards
|
||||
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 @@ namespace osu.Game.Beatmaps.Drawables.Cards
|
||||
return true;
|
||||
},
|
||||
Unhovered = _ => checkForHide(),
|
||||
Child = dropdownScroll = new DropdownScrollContainer
|
||||
Child = dropdownScroll = new ExpandedContentScrollContainer
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
ScrollbarVisible = false
|
||||
@ -179,9 +179,9 @@ namespace osu.Game.Beatmaps.Drawables.Cards
|
||||
}, BeatmapCard.TRANSITION_DURATION, Easing.OutQuint);
|
||||
}
|
||||
|
||||
private class DropdownScrollContainer : OsuScrollContainer
|
||||
private class ExpandedContentScrollContainer : OsuScrollContainer
|
||||
{
|
||||
public DropdownScrollContainer()
|
||||
public ExpandedContentScrollContainer()
|
||||
{
|
||||
ScrollbarVisible = false;
|
||||
}
|
Loading…
Reference in New Issue
Block a user