1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 05:02:55 +08:00

Document OpenSongSelection and mark null param

This commit is contained in:
Dean Herbert 2021-12-10 14:14:22 +09:00
parent 50bf2f368d
commit 88670c3b01

View File

@ -138,7 +138,7 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
RelativeSizeAxes = Axes.X,
Height = 40,
Text = "Add item",
Action = () => OpenSongSelection(null)
Action = () => OpenSongSelection()
},
},
null,
@ -220,7 +220,11 @@ namespace osu.Game.Screens.OnlinePlay.Multiplayer
}
};
internal void OpenSongSelection(PlaylistItem itemToEdit)
/// <summary>
/// Opens the song selection screen to add or edit an item.
/// </summary>
/// <param name="itemToEdit">An optional playlist item to edit. If null, a new item will be added instead.</param>
internal void OpenSongSelection([CanBeNull] PlaylistItem itemToEdit = null)
{
if (!this.IsCurrentScreen())
return;