Sync changes on composition tools

This commit is contained in:
AlFasGD 2018-05-22 09:00:11 +03:00
parent 61a18b952f
commit 44cf2aa7a3
2 changed files with 5 additions and 8 deletions

View File

@ -12,8 +12,11 @@ public class HitObjectCompositionTool<T> : ICompositionTool
{
public string Name { get; } = typeof(T).Name;
public Action<InputState, MouseDownEventArgs, bool> OnMouseDown { get; }
public Action<InputState, MouseDownEventArgs, bool> OnMouseUp { get; }
public Func<InputState, MouseDownEventArgs, bool> OnMouseDown;
public Func<InputState, MouseDownEventArgs, bool> OnMouseUp;
public Func<InputState, MouseDownEventArgs, bool> OnDragStart;
public Func<InputState, MouseDownEventArgs, bool> OnDragRequested;
public Func<InputState, MouseDownEventArgs, bool> OnDragEnd;
public HitObjectCompositionTool()
{

View File

@ -1,16 +1,10 @@
// 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.Input;
using System;
namespace osu.Game.Rulesets.Edit.Tools
{
public interface ICompositionTool
{
string Name { get; }
Action<InputState, MouseDownEventArgs, bool> OnMouseDown { get; }
Action<InputState, MouseDownEventArgs, bool> OnMouseUp { get; }
}
}