mirror of
https://github.com/ppy/osu
synced 2025-01-19 04:20:59 +00:00
Tidy up direction assignment
This commit is contained in:
parent
ca17993769
commit
448abf897a
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user