mirror of
https://github.com/ppy/osu
synced 2024-12-27 17:32:56 +00:00
Split out score transform logic to method
This commit is contained in:
parent
0febefd8eb
commit
5df27ce3d4
@ -27,7 +27,7 @@ namespace osu.Game.Tournament.Screens.Gameplay.Components
|
||||
showScore = value;
|
||||
|
||||
if (IsLoaded)
|
||||
score.FadeTo(value ? 1 : 0, 200);
|
||||
updateDisplay();
|
||||
}
|
||||
}
|
||||
|
||||
@ -108,7 +108,14 @@ namespace osu.Game.Tournament.Screens.Gameplay.Components
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
score.Alpha = ShowScore ? 1 : 0;
|
||||
|
||||
updateDisplay();
|
||||
FinishTransforms(true);
|
||||
}
|
||||
|
||||
private void updateDisplay()
|
||||
{
|
||||
score.FadeTo(ShowScore ? 1 : 0, 200);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user