From cb8a07b65331027c59bb1f9fec08948a962a69f3 Mon Sep 17 00:00:00 2001 From: Huo Yaoyuan Date: Mon, 5 Dec 2016 01:06:28 +0800 Subject: [PATCH] Function of changing FadeTime. --- osu.Desktop.VisualTests/Tests/TestCaseKeyCounter.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/osu.Desktop.VisualTests/Tests/TestCaseKeyCounter.cs b/osu.Desktop.VisualTests/Tests/TestCaseKeyCounter.cs index 50779abb39..1441cc93be 100644 --- a/osu.Desktop.VisualTests/Tests/TestCaseKeyCounter.cs +++ b/osu.Desktop.VisualTests/Tests/TestCaseKeyCounter.cs @@ -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));