This commit is contained in:
cdwcgt 2022-12-16 10:48:56 +09:00
parent 79e27c2d9d
commit a4d28aff6d
No known key found for this signature in database
GPG Key ID: 144396D01095C3A2
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.SetCurrectTimeAsPreview());
AddStep("set current time as preview point", () => Editor.SetCurrentTimeAsPreview());
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, SetCurrectTimeAsPreview)
new EditorMenuItem("Set Current Position as Preview Point", MenuItemType.Standard, SetCurrentTimeAsPreview)
}
}
}
@ -808,7 +808,7 @@ namespace osu.Game.Screens.Edit
protected void Redo() => changeHandler?.RestoreState(1);
protected void SetCurrectTimeAsPreview()
protected void SetCurrentTimeAsPreview()
{
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 SetCurrectTimeAsPreview() => base.SetCurrectTimeAsPreview();
public new void SetCurrentTimeAsPreview() => base.SetCurrentTimeAsPreview();
public new bool Save() => base.Save();