1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-15 22:37:26 +08:00
osu-lazer/osu.Game.Rulesets.Osu/Edit/GridFromPointsTool.cs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

31 lines
1.1 KiB
C#
Raw Normal View History

2024-01-01 01:58:29 +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 osu.Framework.Graphics;
using osu.Framework.Graphics.Sprites;
using osu.Game.Graphics;
2024-01-01 01:58:29 +08:00
using osu.Game.Rulesets.Edit;
using osu.Game.Rulesets.Edit.Tools;
using osu.Game.Rulesets.Osu.Edit.Blueprints;
2024-01-01 01:58:29 +08:00
namespace osu.Game.Rulesets.Osu.Edit
{
public partial class GridFromPointsTool : CompositionTool
2024-01-01 01:58:29 +08:00
{
public GridFromPointsTool()
: base("Change grid")
2024-01-01 01:58:29 +08:00
{
TooltipText = """
Left click to set the origin.
Left click again to set the spacing and rotation.
Right click to only set the origin.
Click and drag to set the origin, spacing and rotation.
""";
2024-01-01 01:58:29 +08:00
}
2024-10-07 22:51:53 +08:00
public override Drawable CreateIcon() => new SpriteIcon { Icon = OsuIcon.EditorPlaceGrid };
public override PlacementBlueprint CreatePlacementBlueprint() => new GridPlacementBlueprint();
2024-01-01 01:58:29 +08:00
}
}