2021-03-28 23:36:22 +08:00
|
|
|
// 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.
|
|
|
|
|
2022-06-17 15:37:17 +08:00
|
|
|
#nullable disable
|
|
|
|
|
2021-03-28 23:36:22 +08:00
|
|
|
using osu.Framework.Allocation;
|
2021-04-07 20:38:43 +08:00
|
|
|
using osu.Framework.Bindables;
|
2021-03-28 23:36:22 +08:00
|
|
|
using osu.Framework.Graphics;
|
|
|
|
using osu.Framework.Graphics.Containers;
|
2021-05-12 15:53:49 +08:00
|
|
|
using osu.Game.Beatmaps;
|
2021-04-10 19:04:39 +08:00
|
|
|
using osu.Game.Rulesets.Edit.Checks.Components;
|
2021-03-28 23:36:22 +08:00
|
|
|
|
|
|
|
namespace osu.Game.Screens.Edit.Verify
|
|
|
|
{
|
2021-05-12 15:53:49 +08:00
|
|
|
[Cached]
|
2022-11-24 13:32:20 +08:00
|
|
|
public partial class VerifyScreen : EditorScreen
|
2021-03-28 23:36:22 +08:00
|
|
|
{
|
2021-05-12 15:53:49 +08:00
|
|
|
public readonly Bindable<Issue> SelectedIssue = new Bindable<Issue>();
|
|
|
|
|
|
|
|
public readonly Bindable<DifficultyRating> InterpretedDifficulty = new Bindable<DifficultyRating>();
|
|
|
|
|
2021-05-13 10:50:32 +08:00
|
|
|
public readonly BindableList<IssueType> HiddenIssueTypes = new BindableList<IssueType> { IssueType.Negligible };
|
2021-05-13 10:29:27 +08:00
|
|
|
|
2021-05-12 15:53:49 +08:00
|
|
|
public IssueList IssueList { get; private set; }
|
2021-04-10 19:04:39 +08:00
|
|
|
|
2021-03-28 23:36:22 +08:00
|
|
|
public VerifyScreen()
|
|
|
|
: base(EditorScreenMode.Verify)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2021-04-07 20:38:43 +08:00
|
|
|
[BackgroundDependencyLoader]
|
|
|
|
private void load()
|
|
|
|
{
|
2022-06-23 18:46:59 +08:00
|
|
|
InterpretedDifficulty.Default = StarDifficulty.GetDifficultyRating(EditorBeatmap.BeatmapInfo.StarRating);
|
2021-05-13 10:36:20 +08:00
|
|
|
InterpretedDifficulty.SetDefault();
|
|
|
|
|
2021-04-07 20:38:43 +08:00
|
|
|
Child = new Container
|
2021-03-28 23:36:22 +08:00
|
|
|
{
|
2021-04-07 20:38:43 +08:00
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
Child = new GridContainer
|
2021-03-28 23:36:22 +08:00
|
|
|
{
|
2021-04-07 20:38:43 +08:00
|
|
|
RelativeSizeAxes = Axes.Both,
|
|
|
|
ColumnDimensions = new[]
|
|
|
|
{
|
|
|
|
new Dimension(),
|
2022-05-28 09:51:39 +08:00
|
|
|
new Dimension(GridSizeMode.Absolute, 250),
|
2021-04-07 20:38:43 +08:00
|
|
|
},
|
|
|
|
Content = new[]
|
|
|
|
{
|
|
|
|
new Drawable[]
|
|
|
|
{
|
2022-05-24 16:13:44 +08:00
|
|
|
IssueList = new IssueList(),
|
2021-05-12 15:53:49 +08:00
|
|
|
new IssueSettings(),
|
2021-04-07 20:38:43 +08:00
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
2023-11-06 18:34:34 +08:00
|
|
|
|
|
|
|
protected override void PopIn()
|
|
|
|
{
|
|
|
|
base.PopIn();
|
|
|
|
IssueList.Refresh();
|
|
|
|
}
|
2021-03-28 23:36:22 +08:00
|
|
|
}
|
|
|
|
}
|