mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 14:52:57 +08:00
SpecialColumn -> SpecialColumnPosition
This commit is contained in:
parent
351be4308f
commit
8a8b3f25e7
@ -54,7 +54,7 @@ namespace osu.Game.Rulesets.Mania.UI
|
||||
for (int i = 0; i < stageDefinitions.Count; i++)
|
||||
{
|
||||
var newStage = new ManiaStage(firstColumnIndex, stageDefinitions[i], ref normalColumnAction, ref specialColumnAction);
|
||||
newStage.SpecialColumn.BindTo(SpecialColumnPosition);
|
||||
newStage.SpecialColumnPosition.BindTo(SpecialColumnPosition);
|
||||
newStage.VisibleTimeRange.BindTo(VisibleTimeRange);
|
||||
newStage.Inverted.BindTo(Inverted);
|
||||
|
||||
|
@ -33,7 +33,7 @@ namespace osu.Game.Rulesets.Mania.UI
|
||||
/// </summary>
|
||||
public readonly Bindable<bool> Inverted = new Bindable<bool>(true);
|
||||
|
||||
public readonly Bindable<SpecialColumnPosition> SpecialColumn = new Bindable<SpecialColumnPosition>();
|
||||
public readonly Bindable<SpecialColumnPosition> SpecialColumnPosition = new Bindable<SpecialColumnPosition>();
|
||||
|
||||
public IReadOnlyList<Column> Columns => columnFlow.Children;
|
||||
private readonly FillFlowContainer<Column> columnFlow;
|
||||
@ -169,14 +169,14 @@ namespace osu.Game.Rulesets.Mania.UI
|
||||
/// <returns>Whether the column is a special column.</returns>
|
||||
private bool isSpecialColumn(int column)
|
||||
{
|
||||
switch (SpecialColumn.Value)
|
||||
switch (SpecialColumnPosition.Value)
|
||||
{
|
||||
default:
|
||||
case SpecialColumnPosition.Normal:
|
||||
case UI.SpecialColumnPosition.Normal:
|
||||
return definition.Columns % 2 == 1 && column == definition.Columns / 2;
|
||||
case SpecialColumnPosition.Left:
|
||||
case UI.SpecialColumnPosition.Left:
|
||||
return column == 0;
|
||||
case SpecialColumnPosition.Right:
|
||||
case UI.SpecialColumnPosition.Right:
|
||||
return column == definition.Columns - 1;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user