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:
parent
2d266a8604
commit
cf0d9e4d9b
@ -19,6 +19,8 @@ namespace osu.Game.Rulesets.Mania
|
||||
{
|
||||
[Description("Special")]
|
||||
Special,
|
||||
[Description("Special")]
|
||||
Specia2,
|
||||
[Description("Key 1")]
|
||||
Key1 = 10,
|
||||
[Description("Key 2")]
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user