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:
parent
0e59b55a12
commit
a82f1a6abd
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user