1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 09:23:06 +08:00

not sure is it a goodway to delete mania ManiaAction.Special or add more

This commit is contained in:
ANDY840119-PC\andy840119 2018-01-14 21:20:01 +09:00
parent 2d266a8604
commit cf0d9e4d9b
4 changed files with 5 additions and 5 deletions

View File

@ -19,6 +19,8 @@ namespace osu.Game.Rulesets.Mania
{
[Description("Special")]
Special,
[Description("Special")]
Specia2,
[Description("Key 1")]
Key1 = 10,
[Description("Key 2")]

View File

@ -148,7 +148,7 @@ namespace osu.Game.Rulesets.Mania
bindings.Add(new KeyBinding(rightKeys[i], currentKey++));
if (variant % 2 == 1)
bindings.Add(new KeyBinding(InputKey.Space, ManiaAction.Special));
bindings.Insert(variant / 2, new KeyBinding(InputKey.Space, ManiaAction.Special));
return bindings;
}

View File

@ -32,7 +32,7 @@ namespace osu.Game.Rulesets.Mania.UI
/// <summary>
/// The style to use for the special column.
/// </summary>
public Bindable<SpecialColumnPosition> SpecialColumnPosition = new Bindable<UI.SpecialColumnPosition>();
public Bindable<SpecialColumnPosition> SpecialColumnPosition = new Bindable<SpecialColumnPosition>();
public List<Column> Columns => stages.SelectMany(x => x.Columns).ToList();
@ -68,6 +68,7 @@ namespace osu.Game.Rulesets.Mania.UI
foreach (var stage in stageDefinition)
{
var drawableStage = new ManiaStage();
drawableStage.SpecialColumn.BindTo(SpecialColumnPosition);
drawableStage.VisibleTimeRange.BindTo(VisibleTimeRange);
drawableStage.Inverted.BindTo(Inverted);
drawableStage.ColumnStartIndex = stageIndex;
@ -99,7 +100,6 @@ namespace osu.Game.Rulesets.Mania.UI
public override void Add(DrawableHitObject h)
{
// => Columns.ElementAt(((ManiaHitObject)h.HitObject).Column).Add(h)
int column = ((ManiaHitObject)h.HitObject).Column;
var stage = getStageByColumn(column);
stage.Add(h);

View File

@ -55,8 +55,6 @@ namespace osu.Game.Rulesets.Mania.UI
Name = "Playfield elements";
Anchor = Anchor.Centre;
Origin = Anchor.Centre;
//RelativeSizeAxes = Axes.Y;
//AutoSizeAxes = Axes.X;
InternalChildren = new Drawable[]
{
new Container