1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 10:43:04 +08:00
osu-lazer/osu.Game.Rulesets.Mania/UI/ManiaScrollingPlayfield.cs

22 lines
744 B
C#
Raw Normal View History

2018-06-11 13:36:19 +08:00
// Copyright (c) 2007-2018 ppy Pty Ltd <contact@ppy.sh>.
// Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE
using osu.Framework.Allocation;
using osu.Framework.Configuration;
using osu.Game.Rulesets.UI.Scrolling;
namespace osu.Game.Rulesets.Mania.UI
{
2018-09-21 13:35:50 +08:00
public abstract class ManiaScrollingPlayfield : ScrollingPlayfield
2018-06-11 13:36:19 +08:00
{
private readonly IBindable<ScrollingDirection> direction = new Bindable<ScrollingDirection>();
[BackgroundDependencyLoader]
private void load(IScrollingInfo scrollingInfo)
{
direction.BindTo(scrollingInfo.Direction);
direction.BindValueChanged(direction => Direction.Value = direction, true);
}
}
}