1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-12 19:03:08 +08:00

Adjust method naming and copy

This commit is contained in:
Bartłomiej Dach 2023-01-01 18:48:56 +01:00
parent 0e59b55a12
commit a82f1a6abd
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View File

@ -19,7 +19,7 @@ namespace osu.Game.Tests.Visual.Editing
{
AddStep("seek to 1000", () => EditorClock.Seek(1000));
AddAssert("time is 1000", () => EditorClock.CurrentTime == 1000);
AddStep("set current time as preview point", () => Editor.SetCurrentTimeAsPreview());
AddStep("set current time as preview point", () => Editor.SetPreviewPointToCurrentTime());
AddAssert("preview time is 1000", () => EditorBeatmap.PreviewTime.Value == 1000);
}

View File

@ -327,7 +327,7 @@ namespace osu.Game.Screens.Edit
{
Items = new MenuItem[]
{
new EditorMenuItem("Set Current Position as Preview Point", MenuItemType.Standard, SetCurrentTimeAsPreview)
new EditorMenuItem("Set preview point to current time", MenuItemType.Standard, SetPreviewPointToCurrentTime)
}
}
}
@ -808,7 +808,7 @@ namespace osu.Game.Screens.Edit
protected void Redo() => changeHandler?.RestoreState(1);
protected void SetCurrentTimeAsPreview()
protected void SetPreviewPointToCurrentTime()
{
editorBeatmap.PreviewTime.Value = (int)clock.CurrentTime;
}

View File

@ -102,7 +102,7 @@ namespace osu.Game.Tests.Visual
public new void Redo() => base.Redo();
public new void SetCurrentTimeAsPreview() => base.SetCurrentTimeAsPreview();
public new void SetPreviewPointToCurrentTime() => base.SetPreviewPointToCurrentTime();
public new bool Save() => base.Save();