Start all counters hidden to fix pop out animation when some portions are hidden

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

View File

@ -76,8 +76,14 @@ namespace osu.Game.Screens.Play.HUD.JudgementCounter
private void updateMode() private void updateMode()
{ {
foreach (var counter in CounterFlow.Children.Where(counter => !counter.Result.Type.IsBasic())) foreach (var counter in CounterFlow.Children)
{ {
if (counter.Result.Type.IsBasic())
{
counter.Show();
continue;
}
switch (Mode.Value) switch (Mode.Value)
{ {
case DisplayMode.Simple: case DisplayMode.Simple:
@ -116,7 +122,7 @@ namespace osu.Game.Screens.Play.HUD.JudgementCounter
private JudgementCounter createCounter(JudgementTally.JudgementCount info) => private JudgementCounter createCounter(JudgementTally.JudgementCount info) =>
new JudgementCounter(info) new JudgementCounter(info)
{ {
State = { Value = Visibility.Visible }, State = { Value = Visibility.Hidden },
ShowName = { BindTarget = ShowJudgementNames } ShowName = { BindTarget = ShowJudgementNames }
}; };