1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-13 21:12:55 +08:00

Rename button to more appropriate name

This commit is contained in:
Dean Herbert 2022-06-01 17:46:05 +09:00
parent b03b0c9303
commit 8c54bd46bb
2 changed files with 7 additions and 4 deletions

View File

@ -92,7 +92,7 @@ namespace osu.Game.Screens.Edit.Timing
Padding = new MarginPadding(10),
Children = new Drawable[]
{
new AdjustButton(1)
new TimingAdjustButton(1)
{
Text = "Offset",
RelativeSizeAxes = Axes.X,
@ -100,7 +100,7 @@ namespace osu.Game.Screens.Edit.Timing
Height = 50,
Action = adjustOffset,
},
new AdjustButton(0.1)
new TimingAdjustButton(0.1)
{
Anchor = Anchor.TopRight,
Origin = Anchor.TopRight,

View File

@ -16,7 +16,10 @@ using osu.Game.Overlays;
namespace osu.Game.Screens.Edit.Timing
{
public class AdjustButton : CompositeDrawable
/// <summary>
/// A button with variable constant output based on hold position and length.
/// </summary>
public class TimingAdjustButton : CompositeDrawable
{
public Action<double> Action;
@ -50,7 +53,7 @@ namespace osu.Game.Screens.Edit.Timing
[Resolved]
private OverlayColourProvider colourProvider { get; set; }
public AdjustButton(double adjustAmount)
public TimingAdjustButton(double adjustAmount)
{
this.adjustAmount = adjustAmount;