mirror of
https://github.com/ppy/osu
synced 2024-12-12 01:48:49 +00:00
Bind event to activation delay change
This commit is contained in:
parent
911094e790
commit
7904f77cd5
@ -63,9 +63,13 @@ namespace osu.Game.Screens.Play.HUD
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(OsuConfigManager config)
|
||||
{
|
||||
text.Text = config.Get<int>(OsuSetting.UIHoldActivationDelay) > 0
|
||||
? "hold for menu"
|
||||
: "press for menu";
|
||||
var activationDelay = config.GetBindable<int>(OsuSetting.UIHoldActivationDelay).GetBoundCopy();
|
||||
activationDelay.BindValueChanged(v =>
|
||||
{
|
||||
text.Text = v.NewValue > 0
|
||||
? "hold for menu"
|
||||
: "press for menu";
|
||||
}, true);
|
||||
}
|
||||
|
||||
protected override void LoadComplete()
|
||||
|
Loading…
Reference in New Issue
Block a user