mirror of
https://github.com/ppy/osu.git
synced 2024-11-15 05:07:50 +08:00
22 lines
735 B
C#
22 lines
735 B
C#
// 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
|
|
{
|
|
public class ManiaScrollingPlayfield : ScrollingPlayfield
|
|
{
|
|
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);
|
|
}
|
|
}
|
|
}
|