mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 15:07:44 +08:00
Document OpenSongSelection
and mark null param
This commit is contained in:
parent
50bf2f368d
commit
88670c3b01
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user