// Copyright (c) 2007-2018 ppy Pty Ltd . // Licensed under the MIT Licence - https://raw.githubusercontent.com/ppy/osu/master/LICENCE using osu.Framework.Configuration; using osu.Game.Rulesets.Edit; using osu.Game.Rulesets.UI; using osu.Game.Screens.Edit.Screens.Compose.Layers; using OpenTK; namespace osu.Game.Rulesets.Mania.Edit.Layers { public class ManiaHitObjectMaskLayer : HitObjectMaskLayer { public readonly IBindable Inverted = new Bindable(); public ManiaHitObjectMaskLayer(Playfield playfield, HitObjectComposer composer) : base(playfield, composer) { Inverted.ValueChanged += invertedChanged; } private void invertedChanged(bool newValue) { Scale = new Vector2(1, newValue ? -1 : 1); } } }