mirror of
https://github.com/osukey/osukey.git
synced 2025-08-05 07:33:55 +09:00
Rename classes
This commit is contained in:
@ -49,10 +49,10 @@ namespace osu.Game.Screens.Select.Carousel
|
||||
private BeatmapDifficultyManager difficultyManager { get; set; }
|
||||
|
||||
[Resolved]
|
||||
private CollectionManager collectionManager { get; set; }
|
||||
private BeatmapCollectionManager collectionManager { get; set; }
|
||||
|
||||
[Resolved(CanBeNull = true)]
|
||||
private CollectionDialog collectionDialog { get; set; }
|
||||
private ManageCollectionDialog manageCollectionDialog { get; set; }
|
||||
|
||||
private IBindable<StarDifficulty> starDifficultyBindable;
|
||||
private CancellationTokenSource starDifficultyCancellationSource;
|
||||
@ -228,8 +228,8 @@ namespace osu.Game.Screens.Select.Carousel
|
||||
items.Add(new OsuMenuItem("Details", MenuItemType.Standard, () => beatmapOverlay.FetchAndShowBeatmap(beatmap.OnlineBeatmapID.Value)));
|
||||
|
||||
var collectionItems = collectionManager.Collections.OrderByDescending(c => c.LastModifyTime).Take(3).Select(createCollectionMenuItem).ToList();
|
||||
if (collectionDialog != null)
|
||||
collectionItems.Add(new OsuMenuItem("More...", MenuItemType.Standard, collectionDialog.Show));
|
||||
if (manageCollectionDialog != null)
|
||||
collectionItems.Add(new OsuMenuItem("More...", MenuItemType.Standard, manageCollectionDialog.Show));
|
||||
|
||||
items.Add(new OsuMenuItem("Add to...") { Items = collectionItems });
|
||||
|
||||
|
@ -36,10 +36,10 @@ namespace osu.Game.Screens.Select.Carousel
|
||||
private DialogOverlay dialogOverlay { get; set; }
|
||||
|
||||
[Resolved]
|
||||
private CollectionManager collectionManager { get; set; }
|
||||
private BeatmapCollectionManager collectionManager { get; set; }
|
||||
|
||||
[Resolved(CanBeNull = true)]
|
||||
private CollectionDialog collectionDialog { get; set; }
|
||||
private ManageCollectionDialog manageCollectionDialog { get; set; }
|
||||
|
||||
private readonly BeatmapSetInfo beatmapSet;
|
||||
|
||||
@ -149,8 +149,8 @@ namespace osu.Game.Screens.Select.Carousel
|
||||
items.Add(new OsuMenuItem("Delete", MenuItemType.Destructive, () => dialogOverlay.Push(new BeatmapDeleteDialog(beatmapSet))));
|
||||
|
||||
var collectionItems = collectionManager.Collections.OrderByDescending(c => c.LastModifyTime).Take(3).Select(createCollectionMenuItem).ToList();
|
||||
if (collectionDialog != null)
|
||||
collectionItems.Add(new OsuMenuItem("More...", MenuItemType.Standard, collectionDialog.Show));
|
||||
if (manageCollectionDialog != null)
|
||||
collectionItems.Add(new OsuMenuItem("More...", MenuItemType.Standard, manageCollectionDialog.Show));
|
||||
|
||||
items.Add(new OsuMenuItem("Add all to...") { Items = collectionItems });
|
||||
|
||||
|
@ -216,7 +216,7 @@ namespace osu.Game.Screens.Select
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load(CollectionManager collectionManager)
|
||||
private void load(BeatmapCollectionManager collectionManager)
|
||||
{
|
||||
collections.BindTo(collectionManager.Collections);
|
||||
collections.CollectionChanged += (_, __) => collectionsChanged();
|
||||
|
Reference in New Issue
Block a user