mirror of
https://github.com/ppy/osu
synced 2025-03-23 11:27:24 +00:00
Enable NRT on BeatmapDetails
This commit is contained in:
parent
97c3eea3aa
commit
86d019c2b2
@ -1,8 +1,6 @@
|
|||||||
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
||||||
// See the LICENCE file in the repository root for full licence text.
|
// See the LICENCE file in the repository root for full licence text.
|
||||||
|
|
||||||
#nullable disable
|
|
||||||
|
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using osu.Framework.Allocation;
|
using osu.Framework.Allocation;
|
||||||
using osu.Framework.Extensions.Color4Extensions;
|
using osu.Framework.Extensions.Color4Extensions;
|
||||||
@ -38,18 +36,18 @@ namespace osu.Game.Screens.Select
|
|||||||
private readonly LoadingLayer loading;
|
private readonly LoadingLayer loading;
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
private IAPIProvider api { get; set; }
|
private IAPIProvider api { get; set; } = null!;
|
||||||
|
|
||||||
[Resolved(canBeNull: true)]
|
[Resolved]
|
||||||
private SongSelect songSelect { get; set; }
|
private SongSelect? songSelect { get; set; }
|
||||||
|
|
||||||
private IBeatmapInfo beatmapInfo;
|
private IBeatmapInfo? beatmapInfo;
|
||||||
|
|
||||||
private APIFailTimes failTimes;
|
private APIFailTimes? failTimes;
|
||||||
|
|
||||||
private int[] ratings;
|
private int[]? ratings;
|
||||||
|
|
||||||
public IBeatmapInfo BeatmapInfo
|
public IBeatmapInfo? BeatmapInfo
|
||||||
{
|
{
|
||||||
get => beatmapInfo;
|
get => beatmapInfo;
|
||||||
set
|
set
|
||||||
@ -59,7 +57,7 @@ namespace osu.Game.Screens.Select
|
|||||||
beatmapInfo = value;
|
beatmapInfo = value;
|
||||||
|
|
||||||
var onlineInfo = beatmapInfo as IBeatmapOnlineInfo;
|
var onlineInfo = beatmapInfo as IBeatmapOnlineInfo;
|
||||||
var onlineSetInfo = beatmapInfo.BeatmapSet as IBeatmapSetOnlineInfo;
|
var onlineSetInfo = beatmapInfo?.BeatmapSet as IBeatmapSetOnlineInfo;
|
||||||
|
|
||||||
failTimes = onlineInfo?.FailTimes;
|
failTimes = onlineInfo?.FailTimes;
|
||||||
ratings = onlineSetInfo?.Ratings;
|
ratings = onlineSetInfo?.Ratings;
|
||||||
|
Loading…
Reference in New Issue
Block a user