mirror of
https://github.com/ppy/osu
synced 2024-12-13 18:37:04 +00:00
Fix incorrect bindable valuechanged usage
This commit is contained in:
parent
4e11fb0fd7
commit
cb5a35f8f9
@ -60,8 +60,6 @@ namespace osu.Game.Screens.Select
|
||||
AutoSizeAxes = Axes.Both,
|
||||
Margin = new MarginPadding { Left = 70 }
|
||||
});
|
||||
|
||||
Current.ValueChanged += _ => updateMultiplierText();
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
@ -75,6 +73,13 @@ namespace osu.Game.Screens.Select
|
||||
Hotkey = Key.F1;
|
||||
}
|
||||
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
Current.BindValueChanged(_ => updateMultiplierText(), true);
|
||||
}
|
||||
|
||||
private void updateMultiplierText()
|
||||
{
|
||||
var multiplier = Current.Value.Aggregate(1.0, (current, mod) => current * mod.ScoreMultiplier);
|
||||
|
Loading…
Reference in New Issue
Block a user