mirror of
https://github.com/ppy/osu
synced 2025-01-19 20:40:52 +00:00
Do not show nomination info if hype info not present to match web
This commit is contained in:
parent
1f405a7e71
commit
0e09edfce2
@ -55,6 +55,11 @@ namespace osu.Game.Tests.Visual.Beatmaps
|
|||||||
someDifficulties.Status = BeatmapSetOnlineStatus.Qualified;
|
someDifficulties.Status = BeatmapSetOnlineStatus.Qualified;
|
||||||
someDifficulties.HasFavourited = true;
|
someDifficulties.HasFavourited = true;
|
||||||
someDifficulties.FavouriteCount = 1;
|
someDifficulties.FavouriteCount = 1;
|
||||||
|
someDifficulties.NominationStatus = new BeatmapSetNominationStatus
|
||||||
|
{
|
||||||
|
Current = 2,
|
||||||
|
Required = 2
|
||||||
|
};
|
||||||
|
|
||||||
var manyDifficulties = getManyDifficultiesBeatmapSet(100);
|
var manyDifficulties = getManyDifficultiesBeatmapSet(100);
|
||||||
manyDifficulties.Status = BeatmapSetOnlineStatus.Pending;
|
manyDifficulties.Status = BeatmapSetOnlineStatus.Pending;
|
||||||
|
@ -282,7 +282,9 @@ namespace osu.Game.Beatmaps.Drawables.Cards
|
|||||||
if (beatmapSet.HypeStatus != null)
|
if (beatmapSet.HypeStatus != null)
|
||||||
yield return new HypesStatistic(beatmapSet.HypeStatus);
|
yield return new HypesStatistic(beatmapSet.HypeStatus);
|
||||||
|
|
||||||
if (beatmapSet.NominationStatus != null)
|
// web does not show nominations unless hypes are also present.
|
||||||
|
// see: https://github.com/ppy/osu-web/blob/8ed7d071fd1d3eaa7e43cf0e4ff55ca2fef9c07c/resources/assets/lib/beatmapset-panel.tsx#L443
|
||||||
|
if (beatmapSet.HypeStatus != null && beatmapSet.NominationStatus != null)
|
||||||
yield return new NominationsStatistic(beatmapSet.NominationStatus);
|
yield return new NominationsStatistic(beatmapSet.NominationStatus);
|
||||||
|
|
||||||
yield return new FavouritesStatistic(beatmapSet);
|
yield return new FavouritesStatistic(beatmapSet);
|
||||||
|
Loading…
Reference in New Issue
Block a user