1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 11:42:54 +08:00

Fix IDE0055

This commit is contained in:
Huo Yaoyuan 2022-05-02 21:51:28 +08:00
parent 7cf4dabe29
commit 5513710b2e
3 changed files with 44 additions and 40 deletions

View File

@ -29,13 +29,14 @@ namespace osu.Game.Rulesets.Catch.Tests.Editor
protected CatchSelectionBlueprintTestScene() protected CatchSelectionBlueprintTestScene()
{ {
EditorBeatmap = new EditorBeatmap(new CatchBeatmap var catchBeatmap = new CatchBeatmap
{ {
BeatmapInfo = BeatmapInfo =
{ {
Ruleset = new CatchRuleset().RulesetInfo, Ruleset = new CatchRuleset().RulesetInfo,
} }
}) { Difficulty = { CircleSize = 0 } }; };
EditorBeatmap = new EditorBeatmap(catchBeatmap) { Difficulty = { CircleSize = 0 } };
EditorBeatmap.ControlPointInfo.Add(0, new TimingControlPoint EditorBeatmap.ControlPointInfo.Add(0, new TimingControlPoint
{ {
BeatLength = 100 BeatLength = 100

View File

@ -141,7 +141,8 @@ namespace osu.Game.Tests.Visual.Collections
{ {
AddStep("add dropdown", () => AddStep("add dropdown", () =>
{ {
Add(new CollectionFilterDropdown Add(
new CollectionFilterDropdown
{ {
Anchor = Anchor.TopRight, Anchor = Anchor.TopRight,
Origin = Anchor.TopRight, Origin = Anchor.TopRight,

View File

@ -87,44 +87,46 @@ namespace osu.Game.Screens.OnlinePlay.Components
}, },
}; };
// case MatchType.TagCoop: #pragma warning disable IDE0055 // Indentation of commented code
// return new SpriteIcon // case MatchType.TagCoop:
// { // return new SpriteIcon
// Anchor = Anchor.Centre, // {
// Origin = Anchor.Centre, // Anchor = Anchor.Centre,
// Size = new Vector2(size), // Origin = Anchor.Centre,
// Icon = FontAwesome.Solid.Sync, // Size = new Vector2(size),
// Colour = colours.Blue, // Icon = FontAwesome.Solid.Sync,
// // Colour = colours.Blue,
// Shadow = false //
// }; // Shadow = false
// };
// case MatchType.TagTeamCoop: // case MatchType.TagTeamCoop:
// return new FillFlowContainer // return new FillFlowContainer
// { // {
// Anchor = Anchor.Centre, // Anchor = Anchor.Centre,
// Origin = Anchor.Centre, // Origin = Anchor.Centre,
// AutoSizeAxes = Axes.Both, // AutoSizeAxes = Axes.Both,
// Direction = FillDirection.Horizontal, // Direction = FillDirection.Horizontal,
// Spacing = new Vector2(2f), // Spacing = new Vector2(2f),
// Children = new[] // Children = new[]
// { // {
// new SpriteIcon // new SpriteIcon
// { // {
// Icon = FontAwesome.Solid.Sync, // Icon = FontAwesome.Solid.Sync,
// Size = new Vector2(size * 0.75f), // Size = new Vector2(size * 0.75f),
// Colour = colours.Blue, // Colour = colours.Blue,
// Shadow = false, // Shadow = false,
// }, // },
// new SpriteIcon // new SpriteIcon
// { // {
// Icon = FontAwesome.Solid.Sync, // Icon = FontAwesome.Solid.Sync,
// Size = new Vector2(size * 0.75f), // Size = new Vector2(size * 0.75f),
// Colour = colours.Pink, // Colour = colours.Pink,
// Shadow = false, // Shadow = false,
// }, // },
// }, // },
// }; // };
#pragma warning restore IDE0055
} }
} }