2024-06-18 14:16:22 +08:00
|
|
|
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
|
|
|
|
using System;
|
|
|
|
using osu.Game.Rulesets.Edit.Tools;
|
|
|
|
using osu.Game.Screens.Edit.Components.RadioButtons;
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Edit
|
|
|
|
{
|
|
|
|
public class HitObjectCompositionToolButton : RadioButton
|
|
|
|
{
|
2024-09-23 22:33:36 +08:00
|
|
|
public CompositionTool Tool { get; }
|
2024-06-18 14:16:22 +08:00
|
|
|
|
2024-09-23 22:33:36 +08:00
|
|
|
public HitObjectCompositionToolButton(CompositionTool tool, Action? action)
|
2024-06-18 14:16:22 +08:00
|
|
|
: base(tool.Name, action, tool.CreateIcon)
|
|
|
|
{
|
|
|
|
Tool = tool;
|
|
|
|
|
|
|
|
TooltipText = tool.TooltipText;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|