mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 08:49:59 +09:00
Add pending and graveyarded beatmapsets to profile page
This commit is contained in:
@ -26,6 +26,8 @@ namespace osu.Game.Online.API.Requests
|
|||||||
{
|
{
|
||||||
MostPlayed,
|
MostPlayed,
|
||||||
Favourite,
|
Favourite,
|
||||||
RankedAndApproved
|
RankedAndApproved,
|
||||||
|
Unranked,
|
||||||
|
Graveyard
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ namespace osu.Game.Overlays.Profile.Sections.Beatmaps
|
|||||||
|
|
||||||
private DirectPanel playing;
|
private DirectPanel playing;
|
||||||
|
|
||||||
public PaginatedBeatmapContainer(BeatmapSetType type, Bindable<User> user, string header, string missing)
|
public PaginatedBeatmapContainer(BeatmapSetType type, Bindable<User> user, string header, string missing = "None... yet.")
|
||||||
: base(user, header, missing)
|
: base(user, header, missing)
|
||||||
{
|
{
|
||||||
this.type = type;
|
this.type = type;
|
||||||
@ -27,7 +27,6 @@ namespace osu.Game.Overlays.Profile.Sections.Beatmaps
|
|||||||
ItemsPerPage = 6;
|
ItemsPerPage = 6;
|
||||||
|
|
||||||
ItemsContainer.Spacing = new Vector2(panel_padding);
|
ItemsContainer.Spacing = new Vector2(panel_padding);
|
||||||
ItemsContainer.Margin = new MarginPadding { Bottom = panel_padding };
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void ShowMore()
|
protected override void ShowMore()
|
||||||
|
@ -16,8 +16,10 @@ namespace osu.Game.Overlays.Profile.Sections
|
|||||||
{
|
{
|
||||||
Children = new[]
|
Children = new[]
|
||||||
{
|
{
|
||||||
new PaginatedBeatmapContainer(BeatmapSetType.Favourite, User, "Favourite Beatmaps", "None... yet."),
|
new PaginatedBeatmapContainer(BeatmapSetType.Favourite, User, "Favourite Beatmaps"),
|
||||||
new PaginatedBeatmapContainer(BeatmapSetType.RankedAndApproved, User, "Ranked & Approved Beatmaps", "None... yet."),
|
new PaginatedBeatmapContainer(BeatmapSetType.RankedAndApproved, User, "Ranked & Approved Beatmaps"),
|
||||||
|
new PaginatedBeatmapContainer(BeatmapSetType.Unranked, User, "Pending Beatmaps"),
|
||||||
|
new PaginatedBeatmapContainer(BeatmapSetType.Graveyard, User, "Graveyarded Beatmaps"),
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -51,6 +51,7 @@ namespace osu.Game.Overlays.Profile.Sections
|
|||||||
{
|
{
|
||||||
AutoSizeAxes = Axes.Y,
|
AutoSizeAxes = Axes.Y,
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
|
Margin = new MarginPadding { Bottom = 10 }
|
||||||
},
|
},
|
||||||
ShowMoreButton = new OsuHoverContainer
|
ShowMoreButton = new OsuHoverContainer
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user