1. This (along with OnJudgement above) should be done in the following three steps:
2. How about giving the stages an Inverted BindableBool, and having them decide their scale?
This commit is contained in:
ANDY840119-PC\andy840119
2018-01-14 12:49:01 +09:00
parent f7a908fbfa
commit d07636a105
2 changed files with 23 additions and 20 deletions

View File

@ -81,8 +81,9 @@ namespace osu.Game.Rulesets.Mania.UI
{
var drawableStage = new ManiaStage();
drawableStage.VisibleTimeRange.BindTo(VisibleTimeRange);
drawableStage.Inverted.BindTo(Inverted);
drawableStage.ColumnStartIndex = stageIndex;
stages.Add(drawableStage);
AddNested(drawableStage);
@ -100,19 +101,6 @@ namespace osu.Game.Rulesets.Mania.UI
stageIndex = stageIndex + stage.Columns;
}
Inverted.ValueChanged += invertedChanged;
Inverted.TriggerChange();
}
private void invertedChanged(bool newValue)
{
Scale = new Vector2(1, newValue ? -1 : 1);
foreach (var single in stages)
{
single.Judgements.Scale = Scale;
}
}
public override void OnJudgement(DrawableHitObject judgedObject, Judgement judgement)