mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 22:26:41 +09:00
after resharper : (
. 裝上Resharper,從此VS的速度一片黑暗
This commit is contained in:
@ -9,7 +9,7 @@ namespace osu.Game.Rulesets.Mania.UI
|
||||
internal class DrawableManiaJudgement : DrawableJudgement
|
||||
{
|
||||
public DrawableManiaJudgement(Judgement judgement)
|
||||
: base(judgement)
|
||||
: base(judgement)
|
||||
{
|
||||
JudgementText.TextSize = 25;
|
||||
}
|
||||
|
@ -3,21 +3,16 @@
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using OpenTK;
|
||||
using OpenTK.Graphics;
|
||||
using System.Linq;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Framework.Graphics.Shapes;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using osu.Game.Graphics;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Game.Rulesets.Judgements;
|
||||
using osu.Game.Rulesets.UI;
|
||||
using osu.Game.Rulesets.Timing;
|
||||
using OpenTK;
|
||||
using OpenTK.Graphics;
|
||||
|
||||
namespace osu.Game.Rulesets.Mania.UI
|
||||
{
|
||||
@ -61,7 +56,8 @@ namespace osu.Game.Rulesets.Mania.UI
|
||||
|
||||
public int ColumnCount { get; protected set; }
|
||||
|
||||
public ManiaColumnGroup(int columnCount) : base(Axes.Y)
|
||||
public ManiaColumnGroup(int columnCount)
|
||||
: base(Axes.Y)
|
||||
{
|
||||
ColumnCount = columnCount;
|
||||
Name = "Playfield elements";
|
||||
@ -91,7 +87,7 @@ namespace osu.Game.Rulesets.Mania.UI
|
||||
{
|
||||
Name = "Background",
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
Colour = new Color4(0,0,0,0.8f)
|
||||
Colour = new Color4(0, 0, 0, 0.8f)
|
||||
},
|
||||
columns = new FillFlowContainer<Column>
|
||||
{
|
||||
@ -133,7 +129,6 @@ namespace osu.Game.Rulesets.Mania.UI
|
||||
topLevelContainer = new Container { RelativeSizeAxes = Axes.Both }
|
||||
}
|
||||
}
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -1,33 +1,23 @@
|
||||
// Copyright (c) 2007-2017 ppy Pty Ltd <contact@ppy.sh>.
|
||||
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using osu.Framework.Configuration;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Game.Rulesets.Judgements;
|
||||
using osu.Game.Rulesets.Mania.Objects;
|
||||
using osu.Game.Rulesets.Mania.Objects.Drawables;
|
||||
using osu.Game.Rulesets.Objects.Drawables;
|
||||
using osu.Game.Rulesets.UI;
|
||||
using OpenTK;
|
||||
using OpenTK.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using System;
|
||||
using osu.Game.Graphics;
|
||||
using osu.Framework.Allocation;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using osu.Framework.Configuration;
|
||||
using osu.Game.Rulesets.Objects.Drawables;
|
||||
using osu.Game.Rulesets.Mania.Objects.Drawables;
|
||||
using osu.Framework.Graphics.Shapes;
|
||||
using osu.Game.Rulesets.Judgements;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Rulesets.Objects.Types;
|
||||
using osu.Game.Beatmaps.ControlPoints;
|
||||
using osu.Framework.MathUtils;
|
||||
using osu.Framework.Extensions.IEnumerableExtensions;
|
||||
|
||||
namespace osu.Game.Rulesets.Mania.UI
|
||||
{
|
||||
public class ManiaPlayfield : ScrollingPlayfield
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// list mania column group
|
||||
/// </summary>
|
||||
@ -53,7 +43,8 @@ namespace osu.Game.Rulesets.Mania.UI
|
||||
|
||||
private readonly int columnCount;
|
||||
|
||||
public ManiaPlayfield(int columnCount,bool coop): base(Axes.Y)
|
||||
public ManiaPlayfield(int columnCount, bool coop)
|
||||
: base(Axes.Y)
|
||||
{
|
||||
this.columnCount = columnCount;
|
||||
|
||||
@ -64,13 +55,13 @@ namespace osu.Game.Rulesets.Mania.UI
|
||||
|
||||
InternalChildren = new Drawable[]
|
||||
{
|
||||
ListColumnGroup=new FillFlowContainer<ManiaColumnGroup>()
|
||||
ListColumnGroup = new FillFlowContainer<ManiaColumnGroup>()
|
||||
{
|
||||
Direction= FillDirection.Horizontal,
|
||||
Direction = FillDirection.Horizontal,
|
||||
RelativeSizeAxes = Axes.Y,
|
||||
Anchor= Anchor.Centre,
|
||||
Origin= Anchor.Centre,
|
||||
Spacing=new Vector2(400),
|
||||
Anchor = Anchor.Centre,
|
||||
Origin = Anchor.Centre,
|
||||
Spacing = new Vector2(400),
|
||||
}
|
||||
};
|
||||
|
||||
@ -78,7 +69,7 @@ namespace osu.Game.Rulesets.Mania.UI
|
||||
if (coop)
|
||||
numberOfGroup = 2;
|
||||
|
||||
for (int i = 0; i < numberOfGroup; i ++)
|
||||
for (int i = 0; i < numberOfGroup; i++)
|
||||
{
|
||||
var group = new ManiaColumnGroup(columnCount / numberOfGroup);
|
||||
ListColumnGroup.Add(group);
|
||||
@ -87,7 +78,7 @@ namespace osu.Game.Rulesets.Mania.UI
|
||||
|
||||
foreach (var single in ListColumnGroup)
|
||||
{
|
||||
single.VisibleTimeRange.BindTo(this.VisibleTimeRange);
|
||||
single.VisibleTimeRange.BindTo(VisibleTimeRange);
|
||||
AddNested(single);
|
||||
}
|
||||
|
||||
@ -109,7 +100,6 @@ namespace osu.Game.Rulesets.Mania.UI
|
||||
|
||||
Inverted.ValueChanged += invertedChanged;
|
||||
Inverted.TriggerChange();
|
||||
|
||||
}
|
||||
|
||||
private void invertedChanged(bool newValue)
|
||||
@ -141,7 +131,7 @@ namespace osu.Game.Rulesets.Mania.UI
|
||||
{
|
||||
single.HitObjects.Add(new DrawableBarLine(barline));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private ManiaColumnGroup getFallDownControlContainerByActualColumn(int actualColumn)
|
||||
{
|
||||
|
@ -4,7 +4,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using OpenTK;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Extensions.IEnumerableExtensions;
|
||||
using osu.Framework.Graphics;
|
||||
@ -13,6 +12,7 @@ using osu.Framework.MathUtils;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Beatmaps.ControlPoints;
|
||||
using osu.Game.Rulesets.Mania.Beatmaps;
|
||||
using osu.Game.Rulesets.Mania.Mods;
|
||||
using osu.Game.Rulesets.Mania.Objects;
|
||||
using osu.Game.Rulesets.Mania.Objects.Drawables;
|
||||
using osu.Game.Rulesets.Mania.Replays;
|
||||
@ -24,7 +24,7 @@ using osu.Game.Rulesets.Replays;
|
||||
using osu.Game.Rulesets.Scoring;
|
||||
using osu.Game.Rulesets.Timing;
|
||||
using osu.Game.Rulesets.UI;
|
||||
using osu.Game.Rulesets.Mania.Mods;
|
||||
using OpenTK;
|
||||
|
||||
namespace osu.Game.Rulesets.Mania.UI
|
||||
{
|
||||
@ -108,7 +108,7 @@ namespace osu.Game.Rulesets.Mania.UI
|
||||
}
|
||||
|
||||
//get mods to change column and coop
|
||||
foreach (var single in this.WorkingBeatmap.Mods.Value)
|
||||
foreach (var single in WorkingBeatmap.Mods.Value)
|
||||
{
|
||||
if (single is ManiaKeyMod maniaKeyMod)
|
||||
{
|
||||
|
Reference in New Issue
Block a user