1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-28 09:43:10 +08:00

Keep track of local bound copy

This commit is contained in:
Naxess 2021-05-13 07:57:32 +02:00
parent e7c7786db3
commit 4eeeaf6a1a

View File

@ -35,6 +35,8 @@ namespace osu.Game.Screens.Edit.Verify
[Resolved]
private VerifyScreen verify { get; set; }
private Bindable<DifficultyRating> interpretedDifficulty;
private IBeatmapVerifier rulesetVerifier;
private BeatmapVerifier generalVerifier;
private BeatmapVerifierContext context;
@ -45,8 +47,10 @@ namespace osu.Game.Screens.Edit.Verify
generalVerifier = new BeatmapVerifier();
rulesetVerifier = beatmap.BeatmapInfo.Ruleset?.CreateInstance()?.CreateBeatmapVerifier();
interpretedDifficulty = verify.InterpretedDifficulty.GetBoundCopy();
context = new BeatmapVerifierContext(workingBeatmap.Value);
context.InterpretedDifficulty.BindTo(verify.InterpretedDifficulty.GetBoundCopy());
context.InterpretedDifficulty.BindTo(interpretedDifficulty);
RelativeSizeAxes = Axes.Both;