Reverse direction of binding to allow for better abstract class definitions

This commit is contained in:
Dean Herbert
2021-05-12 16:53:49 +09:00
parent 17e3764576
commit d2e0e8ad94
14 changed files with 42 additions and 51 deletions

View File

@ -8,12 +8,10 @@ using osu.Game.Overlays.Settings;
namespace osu.Game.Screens.Edit.Verify
{
internal class InterpretationSection : Section
internal class InterpretationSection : EditorRoundedScreenSettingsSection
{
public InterpretationSection(IssueList issueList)
: base(issueList)
{
}
[Resolved]
private VerifyScreen verify { get; set; }
protected override string Header => "Interpretation";
@ -26,7 +24,8 @@ namespace osu.Game.Screens.Edit.Verify
Origin = Anchor.CentreLeft,
TooltipText = "Affects checks that depend on difficulty level"
};
dropdown.Current.BindTo(IssueList.InterpretedDifficulty);
dropdown.Current.BindTo(verify.InterpretedDifficulty);
Flow.Add(dropdown);
}