1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-09 04:23:22 +08:00
osu-lazer/osu.Game.Rulesets.Mania/Edit/Layers/ManiaHitObjectMaskLayer.cs
smoogipoo 9f730dd784 Merge branch 'editor-composer-cleanup' into mania-mask-container
# Conflicts:
#	osu.Game/Rulesets/Edit/HitObjectComposer.cs
#	osu.Game/Screens/Edit/Screens/Compose/Layers/HitObjectMaskLayer.cs
2018-07-17 16:00:46 +09:00

25 lines
697 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.Configuration;
using osu.Game.Screens.Edit.Screens.Compose.Layers;
using OpenTK;
namespace osu.Game.Rulesets.Mania.Edit.Layers
{
public class ManiaHitObjectMaskLayer : HitObjectMaskLayer
{
public readonly IBindable<bool> Inverted = new Bindable<bool>();
public ManiaHitObjectMaskLayer()
{
Inverted.ValueChanged += invertedChanged;
}
private void invertedChanged(bool newValue)
{
Scale = new Vector2(1, newValue ? -1 : 1);
}
}
}