1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 08:22:56 +08:00

Function of changing FadeTime.

This commit is contained in:
Huo Yaoyuan 2016-12-05 01:06:28 +08:00
parent 63ba3455fb
commit cb8a07b653

View File

@ -37,7 +37,8 @@ namespace osu.Desktop.VisualTests.Tests
new KeyCounterMouse(@"M2", MouseButton.Right),
},
};
BindableInt bindable = new BindableInt { MinValue = 0, MaxValue = 1000, Default = 50 };
BindableInt bindable = new BindableInt { MinValue = 0, MaxValue = 200, Default = 50 };
bindable.ValueChanged += delegate { kc.FadeTime = bindable.Value; };
AddButton("Add Random", () =>
{
Key key = (Key)((int)Key.A + RNG.Next(26));