Tidy up direction assignment

This commit is contained in:
Dean Herbert 2023-01-17 18:31:08 +09:00
parent ca17993769
commit 448abf897a

View File

@ -57,13 +57,16 @@ namespace osu.Game.Screens.Play.HUD.JudgementCounter
FlowDirection.BindValueChanged(direction =>
{
CounterFlow.Direction = getFillDirection(direction.NewValue);
var convertedDirection = getFillDirection(direction.NewValue);
CounterFlow.Direction = convertedDirection;
//Can't pass directly due to Enum conversion
foreach (var counter in CounterFlow.Children)
counter.Direction.Value = getFillDirection(direction.NewValue);
counter.Direction.Value = convertedDirection;
}, true);
Mode.BindValueChanged(_ => updateMode(), true);
ShowMaxJudgement.BindValueChanged(value =>
{
var firstChild = CounterFlow.Children.FirstOrDefault();