mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 06:42:56 +08:00
Add interpreted difficulty info to BeatmapVerifierContext
Enables checks to make use of the difficulty level as shown in the settings UI.
This commit is contained in:
parent
c13b93e6f1
commit
64d96b06a6
@ -17,9 +17,15 @@ namespace osu.Game.Rulesets.Edit
|
||||
/// </summary>
|
||||
public readonly IWorkingBeatmap WorkingBeatmap;
|
||||
|
||||
public BeatmapVerifierContext(IWorkingBeatmap workingBeatmap)
|
||||
/// <summary>
|
||||
/// The difficulty level which the current beatmap is considered to be.
|
||||
/// </summary>
|
||||
public readonly Bindable<DifficultyRating> InterpretedDifficulty;
|
||||
|
||||
public BeatmapVerifierContext(IWorkingBeatmap workingBeatmap, DifficultyRating difficultyRating = DifficultyRating.ExpertPlus)
|
||||
{
|
||||
WorkingBeatmap = workingBeatmap;
|
||||
InterpretedDifficulty = new Bindable<DifficultyRating>(difficultyRating);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -59,6 +59,7 @@ namespace osu.Game.Screens.Edit.Verify
|
||||
InterpretedDifficulty = new Bindable<DifficultyRating>(beatmap.BeatmapInfo.DifficultyRating);
|
||||
|
||||
context = new BeatmapVerifierContext(workingBeatmap.Value);
|
||||
context.InterpretedDifficulty.BindTo(InterpretedDifficulty);
|
||||
|
||||
RelativeSizeAxes = Axes.Both;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user