2019-09-26 08:18:16 +00:00
|
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
|
|
using osu.Framework.Bindables;
|
|
|
|
|
using osu.Game.Rulesets.Osu.Objects;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Osu.Tests
|
|
|
|
|
{
|
|
|
|
|
public partial class TestSceneHitCircleComboChange : TestSceneHitCircle
|
|
|
|
|
{
|
|
|
|
|
private readonly Bindable<int> comboIndex = new Bindable<int>();
|
|
|
|
|
|
|
|
|
|
protected override void LoadComplete()
|
|
|
|
|
{
|
|
|
|
|
base.LoadComplete();
|
|
|
|
|
Scheduler.AddDelayed(() => comboIndex.Value++, 250, true);
|
|
|
|
|
}
|
|
|
|
|
|
2021-06-17 06:06:56 +00:00
|
|
|
|
protected override TestDrawableHitCircle CreateDrawableHitCircle(HitCircle circle, bool auto, double hitOffset = 0)
|
2019-09-26 08:18:16 +00:00
|
|
|
|
{
|
|
|
|
|
circle.ComboIndexBindable.BindTo(comboIndex);
|
|
|
|
|
circle.IndexInCurrentComboBindable.BindTo(comboIndex);
|
2021-06-17 06:06:56 +00:00
|
|
|
|
return base.CreateDrawableHitCircle(circle, auto, hitOffset);
|
2019-09-26 08:18:16 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|