// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. #nullable disable using osu.Framework.Allocation; using osu.Framework.Bindables; using osu.Framework.Graphics; using osu.Framework.Graphics.Containers; using osu.Game.Beatmaps; using osu.Game.Rulesets.Edit.Checks.Components; namespace osu.Game.Screens.Edit.Verify { [Cached] public partial class VerifyScreen : EditorScreen { public readonly Bindable SelectedIssue = new Bindable(); public readonly Bindable InterpretedDifficulty = new Bindable(); public readonly BindableList HiddenIssueTypes = new BindableList { IssueType.Negligible }; public IssueList IssueList { get; private set; } public VerifyScreen() : base(EditorScreenMode.Verify) { } [BackgroundDependencyLoader] private void load() { InterpretedDifficulty.Default = StarDifficulty.GetDifficultyRating(EditorBeatmap.BeatmapInfo.StarRating); InterpretedDifficulty.SetDefault(); Child = new GridContainer { RelativeSizeAxes = Axes.Both, ColumnDimensions = new[] { new Dimension(), new Dimension(GridSizeMode.Absolute, 250), }, Content = new[] { new Drawable[] { IssueList = new IssueList(), new IssueSettings(), }, } }; } protected override void PopIn() { base.PopIn(); IssueList.Refresh(); } } }