2019-01-24 16:43:03 +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.
|
2018-04-13 17:19:50 +08:00
|
|
|
|
2020-09-09 17:35:25 +08:00
|
|
|
using osu.Framework.Graphics;
|
2024-06-18 14:16:22 +08:00
|
|
|
using osu.Framework.Localisation;
|
2020-09-09 17:35:25 +08:00
|
|
|
|
2018-04-13 17:19:50 +08:00
|
|
|
namespace osu.Game.Rulesets.Edit.Tools
|
|
|
|
{
|
2018-10-03 15:27:26 +08:00
|
|
|
public abstract class HitObjectCompositionTool
|
2018-04-13 17:19:50 +08:00
|
|
|
{
|
2018-10-03 15:27:26 +08:00
|
|
|
public readonly string Name;
|
2018-05-20 18:22:42 +08:00
|
|
|
|
2024-06-18 14:33:02 +08:00
|
|
|
public LocalisableString TooltipText { get; init; }
|
2024-06-18 14:16:22 +08:00
|
|
|
|
2018-10-03 15:27:26 +08:00
|
|
|
protected HitObjectCompositionTool(string name)
|
2018-05-20 18:22:42 +08:00
|
|
|
{
|
|
|
|
Name = name;
|
|
|
|
}
|
2018-10-03 15:27:26 +08:00
|
|
|
|
2024-06-18 14:33:02 +08:00
|
|
|
public abstract PlacementBlueprint? CreatePlacementBlueprint();
|
2020-01-28 14:00:45 +08:00
|
|
|
|
2024-06-18 14:16:22 +08:00
|
|
|
public virtual Drawable? CreateIcon() => null;
|
2020-09-09 17:35:25 +08:00
|
|
|
|
2020-01-28 14:00:45 +08:00
|
|
|
public override string ToString() => Name;
|
2018-04-13 17:19:50 +08:00
|
|
|
}
|
|
|
|
}
|