1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 21:02:54 +08:00

group -> stage

This commit is contained in:
ANDY840119-PC\andy840119 2018-01-03 23:04:51 +09:00
parent 5326f71ed9
commit a855a21ccb

View File

@ -20,7 +20,7 @@ namespace osu.Game.Rulesets.Mania.UI
public class ManiaPlayfield : ScrollingPlayfield public class ManiaPlayfield : ScrollingPlayfield
{ {
/// <summary> /// <summary>
/// list mania column group /// list mania column stages
/// </summary> /// </summary>
private readonly FillFlowContainer<ManiaColumnStage> listColumnStages; private readonly FillFlowContainer<ManiaColumnStage> listColumnStages;
@ -37,9 +37,9 @@ namespace osu.Game.Rulesets.Mania.UI
get => listColumnStages.FirstOrDefault()?.SpecialColumnPosition ?? SpecialColumnPosition.Normal; get => listColumnStages.FirstOrDefault()?.SpecialColumnPosition ?? SpecialColumnPosition.Normal;
set set
{ {
foreach (var singleGroup in listColumnStages) foreach (var singleStage in listColumnStages)
{ {
singleGroup.SpecialColumnPosition = value; singleStage.SpecialColumnPosition = value;
} }
} }
} }
@ -81,11 +81,11 @@ namespace osu.Game.Rulesets.Mania.UI
foreach (var stage in stages) foreach (var stage in stages)
{ {
var group = new ManiaColumnStage(stage.Columns); var drawableStage = new ManiaColumnStage(stage.Columns);
group.VisibleTimeRange.BindTo(VisibleTimeRange); drawableStage.VisibleTimeRange.BindTo(VisibleTimeRange);
listColumnStages.Add(group); listColumnStages.Add(drawableStage);
AddNested(group); AddNested(drawableStage);
for (int i = 0; i < stage.Columns; i++) for (int i = 0; i < stage.Columns; i++)
{ {
@ -95,7 +95,7 @@ namespace osu.Game.Rulesets.Mania.UI
Action = currentAction++ Action = currentAction++
}; };
group.AddColumn(c); drawableStage.AddColumn(c);
AddNested(c); AddNested(c);
} }
} }
@ -108,7 +108,6 @@ namespace osu.Game.Rulesets.Mania.UI
{ {
Scale = new Vector2(1, newValue ? -1 : 1); Scale = new Vector2(1, newValue ? -1 : 1);
//judgements.Scale = Scale;
foreach (var single in listColumnStages) foreach (var single in listColumnStages)
{ {
single.Judgements.Scale = Scale; single.Judgements.Scale = Scale;