mirror of
https://github.com/ppy/osu.git
synced 2026-05-23 16:20:30 +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" /> |
33 lines
1.1 KiB
C#
33 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.Sliders;
|
|
using osu.Game.Rulesets.Osu.Objects;
|
|
|
|
namespace osu.Game.Rulesets.Osu.Edit
|
|
{
|
|
public class SliderCompositionTool : CompositionTool
|
|
{
|
|
public SliderCompositionTool()
|
|
: base(nameof(Slider))
|
|
{
|
|
TooltipText = """
|
|
Left click for new point.
|
|
Left click twice or S key for new segment.
|
|
Tab, Shift-Tab, or Alt-1~4 to change current segment type.
|
|
Right click to finish.
|
|
Click and drag for drawing mode.
|
|
""";
|
|
}
|
|
|
|
public override Drawable CreateIcon() => new SpriteIcon { Icon = OsuIcon.EditorSlider };
|
|
|
|
public override HitObjectPlacementBlueprint CreatePlacementBlueprint() => new SliderPlacementBlueprint();
|
|
}
|
|
}
|