mirror of
https://github.com/ppy/osu.git
synced 2024-12-14 12:33:01 +08:00
Naming adjustments
This commit is contained in:
parent
2131164a60
commit
ca57c70961
@ -26,16 +26,16 @@ namespace osu.Game.Overlays.Dashboard.Dashboard
|
||||
{
|
||||
RelativeSizeAxes = Axes.X;
|
||||
AutoSizeAxes = Axes.Y;
|
||||
InternalChild = new FillFlowContainer<DrawableBeatmapsList>
|
||||
InternalChild = new FillFlowContainer<DrawableBeatmapList>
|
||||
{
|
||||
RelativeSizeAxes = Axes.X,
|
||||
AutoSizeAxes = Axes.Y,
|
||||
Direction = FillDirection.Vertical,
|
||||
Spacing = new Vector2(0, 10),
|
||||
Children = new DrawableBeatmapsList[]
|
||||
Children = new DrawableBeatmapList[]
|
||||
{
|
||||
new DrawableNewBeatmapsList(newBeatmaps),
|
||||
new DrawablePopularBeatmapsList(popularBeatmaps)
|
||||
new DrawableNewBeatmapList(newBeatmaps),
|
||||
new DrawablePopularBeatmapList(popularBeatmaps)
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ namespace osu.Game.Overlays.Dashboard.Dashboard
|
||||
|
||||
protected readonly BeatmapSetInfo SetInfo;
|
||||
|
||||
private Box background;
|
||||
private Box hoverBackground;
|
||||
private SpriteIcon chevron;
|
||||
|
||||
protected DashboardBeatmapPanel(BeatmapSetInfo setInfo)
|
||||
@ -41,7 +41,7 @@ namespace osu.Game.Overlays.Dashboard.Dashboard
|
||||
Height = 60;
|
||||
Children = new Drawable[]
|
||||
{
|
||||
background = new Box
|
||||
hoverBackground = new Box
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Colour = ColourProvider.Background3,
|
||||
@ -149,7 +149,7 @@ namespace osu.Game.Overlays.Dashboard.Dashboard
|
||||
protected override bool OnHover(HoverEvent e)
|
||||
{
|
||||
base.OnHover(e);
|
||||
background.FadeIn(200, Easing.OutQuint);
|
||||
hoverBackground.FadeIn(200, Easing.OutQuint);
|
||||
chevron.FadeColour(ColourProvider.Light1, 200, Easing.OutQuint);
|
||||
return true;
|
||||
}
|
||||
@ -157,7 +157,7 @@ namespace osu.Game.Overlays.Dashboard.Dashboard
|
||||
protected override void OnHoverLost(HoverLostEvent e)
|
||||
{
|
||||
base.OnHoverLost(e);
|
||||
background.FadeOut(200, Easing.OutQuint);
|
||||
hoverBackground.FadeOut(200, Easing.OutQuint);
|
||||
chevron.FadeColour(ColourProvider.Foreground1, 200, Easing.OutQuint);
|
||||
}
|
||||
}
|
||||
|
@ -13,11 +13,11 @@ using osuTK;
|
||||
|
||||
namespace osu.Game.Overlays.Dashboard.Dashboard
|
||||
{
|
||||
public abstract class DrawableBeatmapsList : CompositeDrawable
|
||||
public abstract class DrawableBeatmapList : CompositeDrawable
|
||||
{
|
||||
private readonly List<BeatmapSetInfo> beatmaps;
|
||||
|
||||
protected DrawableBeatmapsList(List<BeatmapSetInfo> beatmaps)
|
||||
protected DrawableBeatmapList(List<BeatmapSetInfo> beatmaps)
|
||||
{
|
||||
this.beatmaps = beatmaps;
|
||||
}
|
@ -6,9 +6,9 @@ using osu.Game.Beatmaps;
|
||||
|
||||
namespace osu.Game.Overlays.Dashboard.Dashboard
|
||||
{
|
||||
public class DrawableNewBeatmapsList : DrawableBeatmapsList
|
||||
public class DrawableNewBeatmapList : DrawableBeatmapList
|
||||
{
|
||||
public DrawableNewBeatmapsList(List<BeatmapSetInfo> beatmaps)
|
||||
public DrawableNewBeatmapList(List<BeatmapSetInfo> beatmaps)
|
||||
: base(beatmaps)
|
||||
{
|
||||
}
|
@ -6,9 +6,9 @@ using osu.Game.Beatmaps;
|
||||
|
||||
namespace osu.Game.Overlays.Dashboard.Dashboard
|
||||
{
|
||||
public class DrawablePopularBeatmapsList : DrawableBeatmapsList
|
||||
public class DrawablePopularBeatmapList : DrawableBeatmapList
|
||||
{
|
||||
public DrawablePopularBeatmapsList(List<BeatmapSetInfo> beatmaps)
|
||||
public DrawablePopularBeatmapList(List<BeatmapSetInfo> beatmaps)
|
||||
: base(beatmaps)
|
||||
{
|
||||
}
|
Loading…
Reference in New Issue
Block a user