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