mirror of
https://github.com/osukey/osukey.git
synced 2025-05-03 20:57:28 +09: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,
|
AutoSizeAxes = Axes.Both,
|
||||||
Margin = new MarginPadding { Left = 70 }
|
Margin = new MarginPadding { Left = 70 }
|
||||||
});
|
});
|
||||||
|
|
||||||
Current.ValueChanged += _ => updateMultiplierText();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
[BackgroundDependencyLoader]
|
||||||
@ -75,6 +73,13 @@ namespace osu.Game.Screens.Select
|
|||||||
Hotkey = Key.F1;
|
Hotkey = Key.F1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override void LoadComplete()
|
||||||
|
{
|
||||||
|
base.LoadComplete();
|
||||||
|
|
||||||
|
Current.BindValueChanged(_ => updateMultiplierText(), true);
|
||||||
|
}
|
||||||
|
|
||||||
private void updateMultiplierText()
|
private void updateMultiplierText()
|
||||||
{
|
{
|
||||||
var multiplier = Current.Value.Aggregate(1.0, (current, mod) => current * mod.ScoreMultiplier);
|
var multiplier = Current.Value.Aggregate(1.0, (current, mod) => current * mod.ScoreMultiplier);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user