mirror of
https://github.com/osukey/osukey.git
synced 2025-08-08 09:03:50 +09:00
not sure is it a goodway to delete mania ManiaAction.Special or add more
This commit is contained in:
@ -19,6 +19,8 @@ namespace osu.Game.Rulesets.Mania
|
|||||||
{
|
{
|
||||||
[Description("Special")]
|
[Description("Special")]
|
||||||
Special,
|
Special,
|
||||||
|
[Description("Special")]
|
||||||
|
Specia2,
|
||||||
[Description("Key 1")]
|
[Description("Key 1")]
|
||||||
Key1 = 10,
|
Key1 = 10,
|
||||||
[Description("Key 2")]
|
[Description("Key 2")]
|
||||||
|
@ -148,7 +148,7 @@ namespace osu.Game.Rulesets.Mania
|
|||||||
bindings.Add(new KeyBinding(rightKeys[i], currentKey++));
|
bindings.Add(new KeyBinding(rightKeys[i], currentKey++));
|
||||||
|
|
||||||
if (variant % 2 == 1)
|
if (variant % 2 == 1)
|
||||||
bindings.Add(new KeyBinding(InputKey.Space, ManiaAction.Special));
|
bindings.Insert(variant / 2, new KeyBinding(InputKey.Space, ManiaAction.Special));
|
||||||
|
|
||||||
return bindings;
|
return bindings;
|
||||||
}
|
}
|
||||||
|
@ -32,7 +32,7 @@ namespace osu.Game.Rulesets.Mania.UI
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The style to use for the special column.
|
/// The style to use for the special column.
|
||||||
/// </summary>
|
/// </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();
|
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)
|
foreach (var stage in stageDefinition)
|
||||||
{
|
{
|
||||||
var drawableStage = new ManiaStage();
|
var drawableStage = new ManiaStage();
|
||||||
|
drawableStage.SpecialColumn.BindTo(SpecialColumnPosition);
|
||||||
drawableStage.VisibleTimeRange.BindTo(VisibleTimeRange);
|
drawableStage.VisibleTimeRange.BindTo(VisibleTimeRange);
|
||||||
drawableStage.Inverted.BindTo(Inverted);
|
drawableStage.Inverted.BindTo(Inverted);
|
||||||
drawableStage.ColumnStartIndex = stageIndex;
|
drawableStage.ColumnStartIndex = stageIndex;
|
||||||
@ -99,7 +100,6 @@ namespace osu.Game.Rulesets.Mania.UI
|
|||||||
|
|
||||||
public override void Add(DrawableHitObject h)
|
public override void Add(DrawableHitObject h)
|
||||||
{
|
{
|
||||||
// => Columns.ElementAt(((ManiaHitObject)h.HitObject).Column).Add(h)
|
|
||||||
int column = ((ManiaHitObject)h.HitObject).Column;
|
int column = ((ManiaHitObject)h.HitObject).Column;
|
||||||
var stage = getStageByColumn(column);
|
var stage = getStageByColumn(column);
|
||||||
stage.Add(h);
|
stage.Add(h);
|
||||||
|
@ -55,8 +55,6 @@ namespace osu.Game.Rulesets.Mania.UI
|
|||||||
Name = "Playfield elements";
|
Name = "Playfield elements";
|
||||||
Anchor = Anchor.Centre;
|
Anchor = Anchor.Centre;
|
||||||
Origin = Anchor.Centre;
|
Origin = Anchor.Centre;
|
||||||
//RelativeSizeAxes = Axes.Y;
|
|
||||||
//AutoSizeAxes = Axes.X;
|
|
||||||
InternalChildren = new Drawable[]
|
InternalChildren = new Drawable[]
|
||||||
{
|
{
|
||||||
new Container
|
new Container
|
||||||
|
Reference in New Issue
Block a user