mirror of
https://github.com/ppy/osu.git
synced 2024-11-06 09:07:25 +08:00
Simplify event names.
This commit is contained in:
parent
d24403e58e
commit
ea4639932c
@ -138,8 +138,8 @@ namespace osu.Game.Screens.Select
|
|||||||
if (database == null)
|
if (database == null)
|
||||||
database = beatmaps;
|
database = beatmaps;
|
||||||
|
|
||||||
database.BeatmapSetAdded += onDatabaseOnBeatmapSetAdded;
|
database.BeatmapSetAdded += onBeatmapSetAdded;
|
||||||
database.BeatmapSetRemoved += onDatabaseOnBeatmapSetRemoved;
|
database.BeatmapSetRemoved += onBeatmapSetRemoved;
|
||||||
|
|
||||||
trackManager = audio.Track;
|
trackManager = audio.Track;
|
||||||
|
|
||||||
@ -185,15 +185,9 @@ namespace osu.Game.Screens.Select
|
|||||||
}, 250);
|
}, 250);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void onDatabaseOnBeatmapSetAdded(BeatmapSetInfo s)
|
private void onBeatmapSetAdded(BeatmapSetInfo s) => Schedule(() => addBeatmapSet(s, Game, true));
|
||||||
{
|
|
||||||
Schedule(() => addBeatmapSet(s, Game, true));
|
|
||||||
}
|
|
||||||
|
|
||||||
private void onDatabaseOnBeatmapSetRemoved(BeatmapSetInfo s)
|
private void onBeatmapSetRemoved(BeatmapSetInfo s) => Schedule(() => removeBeatmapSet(s));
|
||||||
{
|
|
||||||
Schedule(() => removeBeatmapSet(s));
|
|
||||||
}
|
|
||||||
|
|
||||||
protected override void OnEntering(Screen last)
|
protected override void OnEntering(Screen last)
|
||||||
{
|
{
|
||||||
@ -252,8 +246,8 @@ namespace osu.Game.Screens.Select
|
|||||||
if (playMode != null)
|
if (playMode != null)
|
||||||
playMode.ValueChanged -= playMode_ValueChanged;
|
playMode.ValueChanged -= playMode_ValueChanged;
|
||||||
|
|
||||||
database.BeatmapSetAdded -= onDatabaseOnBeatmapSetAdded;
|
database.BeatmapSetAdded -= onBeatmapSetAdded;
|
||||||
database.BeatmapSetRemoved -= onDatabaseOnBeatmapSetRemoved;
|
database.BeatmapSetRemoved -= onBeatmapSetRemoved;
|
||||||
|
|
||||||
initialAddSetsTask.Cancel();
|
initialAddSetsTask.Cancel();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user