mirror of
https://github.com/ppy/osu.git
synced 2025-02-14 02:43:02 +08:00
Rename button to more appropriate name
This commit is contained in:
parent
b03b0c9303
commit
8c54bd46bb
@ -92,7 +92,7 @@ namespace osu.Game.Screens.Edit.Timing
|
|||||||
Padding = new MarginPadding(10),
|
Padding = new MarginPadding(10),
|
||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
new AdjustButton(1)
|
new TimingAdjustButton(1)
|
||||||
{
|
{
|
||||||
Text = "Offset",
|
Text = "Offset",
|
||||||
RelativeSizeAxes = Axes.X,
|
RelativeSizeAxes = Axes.X,
|
||||||
@ -100,7 +100,7 @@ namespace osu.Game.Screens.Edit.Timing
|
|||||||
Height = 50,
|
Height = 50,
|
||||||
Action = adjustOffset,
|
Action = adjustOffset,
|
||||||
},
|
},
|
||||||
new AdjustButton(0.1)
|
new TimingAdjustButton(0.1)
|
||||||
{
|
{
|
||||||
Anchor = Anchor.TopRight,
|
Anchor = Anchor.TopRight,
|
||||||
Origin = Anchor.TopRight,
|
Origin = Anchor.TopRight,
|
||||||
|
@ -16,7 +16,10 @@ using osu.Game.Overlays;
|
|||||||
|
|
||||||
namespace osu.Game.Screens.Edit.Timing
|
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;
|
public Action<double> Action;
|
||||||
|
|
||||||
@ -50,7 +53,7 @@ namespace osu.Game.Screens.Edit.Timing
|
|||||||
[Resolved]
|
[Resolved]
|
||||||
private OverlayColourProvider colourProvider { get; set; }
|
private OverlayColourProvider colourProvider { get; set; }
|
||||||
|
|
||||||
public AdjustButton(double adjustAmount)
|
public TimingAdjustButton(double adjustAmount)
|
||||||
{
|
{
|
||||||
this.adjustAmount = adjustAmount;
|
this.adjustAmount = adjustAmount;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user