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