mirror of
https://github.com/ppy/osu.git
synced 2026-06-02 23:41:00 +08:00
3e6233072c
Brings in new fresh icons for the toolbox (select, hitcircle, slider, spinner, grid) and toggles (new combo, whistle, finish, clap, grid/distance snap). Depends on https://github.com/ppy/osu-resources/pull/416. | Before | After | |--------|--------| | <img width="300" height="897" alt="image" src="https://github.com/user-attachments/assets/279ea162-c3e2-4312-a0a2-39ad08df16f9" /> | <img width="304" height="889" alt="image" src="https://github.com/user-attachments/assets/aab2a143-0e6b-45c1-bf84-8998c12bd960" /> |
31 lines
1.1 KiB
C#
31 lines
1.1 KiB
C#
// 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;
|
|
using osu.Game.Rulesets.Edit;
|
|
using osu.Game.Rulesets.Edit.Tools;
|
|
using osu.Game.Rulesets.Osu.Edit.Blueprints;
|
|
|
|
namespace osu.Game.Rulesets.Osu.Edit
|
|
{
|
|
public partial class GridFromPointsTool : CompositionTool
|
|
{
|
|
public GridFromPointsTool()
|
|
: base("Grid")
|
|
{
|
|
TooltipText = """
|
|
Left click to set the origin.
|
|
Left click again to set the spacing and rotation.
|
|
Right click to reset to default.
|
|
Click and drag to set the origin, spacing and rotation.
|
|
""";
|
|
}
|
|
|
|
public override Drawable CreateIcon() => new SpriteIcon { Icon = OsuIcon.EditorGrid };
|
|
|
|
public override PlacementBlueprint CreatePlacementBlueprint() => new GridPlacementBlueprint();
|
|
}
|
|
}
|