mirror of
https://github.com/ppy/osu.git
synced 2025-03-28 10:17:19 +08:00
Rename method to be less misleading
As it doesn't only change colour, but also width.
This commit is contained in:
parent
1b34f2115f
commit
6b6b1514e2
@ -52,7 +52,7 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
positionText.Text = $"#{scorePosition.Value.FormatRank()}";
|
positionText.Text = $"#{scorePosition.Value.FormatRank()}";
|
||||||
|
|
||||||
positionText.FadeTo(scorePosition.HasValue ? 1 : 0);
|
positionText.FadeTo(scorePosition.HasValue ? 1 : 0);
|
||||||
updateColour();
|
updateState();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -231,20 +231,20 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
TotalScore.BindValueChanged(v => scoreText.Text = v.NewValue.ToString("N0"), true);
|
TotalScore.BindValueChanged(v => scoreText.Text = v.NewValue.ToString("N0"), true);
|
||||||
Accuracy.BindValueChanged(v => accuracyText.Text = v.NewValue.FormatAccuracy(), true);
|
Accuracy.BindValueChanged(v => accuracyText.Text = v.NewValue.FormatAccuracy(), true);
|
||||||
Combo.BindValueChanged(v => comboText.Text = $"{v.NewValue}x", true);
|
Combo.BindValueChanged(v => comboText.Text = $"{v.NewValue}x", true);
|
||||||
HasQuit.BindValueChanged(v => updateColour());
|
HasQuit.BindValueChanged(v => updateState());
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void LoadComplete()
|
protected override void LoadComplete()
|
||||||
{
|
{
|
||||||
base.LoadComplete();
|
base.LoadComplete();
|
||||||
|
|
||||||
updateColour();
|
updateState();
|
||||||
FinishTransforms(true);
|
FinishTransforms(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
private const double panel_transition_duration = 500;
|
private const double panel_transition_duration = 500;
|
||||||
|
|
||||||
private void updateColour()
|
private void updateState()
|
||||||
{
|
{
|
||||||
if (HasQuit.Value)
|
if (HasQuit.Value)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user