1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-24 06:47:36 +08:00
osu-lazer/osu.Game/Screens/Edit/Verify/VerifyScreen.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

61 lines
1.9 KiB
C#
Raw Normal View History

// 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
using osu.Framework.Allocation;
2021-04-07 20:38:43 +08:00
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 class VerifyScreen : EditorScreen
{
public readonly Bindable<Issue> SelectedIssue = new Bindable<Issue>();
public readonly Bindable<DifficultyRating> InterpretedDifficulty = new Bindable<DifficultyRating>();
public readonly BindableList<IssueType> HiddenIssueTypes = new BindableList<IssueType> { IssueType.Negligible };
public IssueList IssueList { get; private set; }
public VerifyScreen()
: base(EditorScreenMode.Verify)
{
}
2021-04-07 20:38:43 +08:00
[BackgroundDependencyLoader]
private void load()
{
InterpretedDifficulty.Default = StarDifficulty.GetDifficultyRating(EditorBeatmap.BeatmapInfo.StarRating);
InterpretedDifficulty.SetDefault();
2021-04-07 20:38:43 +08:00
Child = new Container
{
2021-04-07 20:38:43 +08:00
RelativeSizeAxes = Axes.Both,
Child = new GridContainer
{
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[]
{
IssueList = new IssueList(),
new IssueSettings(),
2021-04-07 20:38:43 +08:00
},
}
}
};
}
}
}