1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 19:12:54 +08:00

Rename variable back to withFlair to match parent class

This commit is contained in:
Dean Herbert 2021-06-09 18:46:38 +09:00
parent 330bb7cb45
commit 21a63efd78

View File

@ -121,12 +121,12 @@ namespace osu.Game.Screens.Ranking.Expanded.Accuracy
private double lastTickPlaybackTime; private double lastTickPlaybackTime;
private bool isTicking; private bool isTicking;
private readonly bool sfxEnabled; private readonly bool withFlair;
public AccuracyCircle(ScoreInfo score, bool sfxEnabled = false) public AccuracyCircle(ScoreInfo score, bool withFlair = false)
{ {
this.score = score; this.score = score;
this.sfxEnabled = sfxEnabled; this.withFlair = withFlair;
} }
[BackgroundDependencyLoader] [BackgroundDependencyLoader]
@ -250,7 +250,7 @@ namespace osu.Game.Screens.Ranking.Expanded.Accuracy
rankText = new RankText(score.Rank) rankText = new RankText(score.Rank)
}; };
if (sfxEnabled) if (withFlair)
{ {
tickPlaybackRate = new Bindable<double>(sfx_score_tick_debounce_rate_start); tickPlaybackRate = new Bindable<double>(sfx_score_tick_debounce_rate_start);
@ -329,7 +329,7 @@ namespace osu.Game.Screens.Ranking.Expanded.Accuracy
this.ScaleTo(0).Then().ScaleTo(1, APPEAR_DURATION, Easing.OutQuint); this.ScaleTo(0).Then().ScaleTo(1, APPEAR_DURATION, Easing.OutQuint);
if (sfxEnabled) if (withFlair)
{ {
this.Delay(sfx_swoosh_pre_delay).Schedule(() => this.Delay(sfx_swoosh_pre_delay).Schedule(() =>
{ {
@ -347,7 +347,7 @@ namespace osu.Game.Screens.Ranking.Expanded.Accuracy
accuracyCircle.FillTo(targetAccuracy, ACCURACY_TRANSFORM_DURATION, ACCURACY_TRANSFORM_EASING); accuracyCircle.FillTo(targetAccuracy, ACCURACY_TRANSFORM_DURATION, ACCURACY_TRANSFORM_EASING);
if (sfxEnabled) if (withFlair)
{ {
Schedule(() => Schedule(() =>
{ {
@ -370,7 +370,7 @@ namespace osu.Game.Screens.Ranking.Expanded.Accuracy
{ {
badge.Appear(); badge.Appear();
if (sfxEnabled) if (withFlair)
{ {
Schedule(() => Schedule(() =>
{ {
@ -388,7 +388,7 @@ namespace osu.Game.Screens.Ranking.Expanded.Accuracy
{ {
rankText.Appear(); rankText.Appear();
if (!sfxEnabled) return; if (!withFlair) return;
Schedule(() => Schedule(() =>
{ {