mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 16:59:53 +09:00
Fix :
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:
@ -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)
|
||||
|
Reference in New Issue
Block a user