mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 16:43:52 +09:00
More sorting rookie mistakes
This commit is contained in:
@ -16,7 +16,7 @@ namespace osu.Desktop.VisualTests.Tests
|
|||||||
private BeatmapDatabase db, oldDb;
|
private BeatmapDatabase db, oldDb;
|
||||||
private TestStorage storage;
|
private TestStorage storage;
|
||||||
private Random rnd = new Random();
|
private Random rnd = new Random();
|
||||||
private PlaySongSelect SongSelect = new PlaySongSelect();
|
private PlaySongSelect SongSelect;
|
||||||
|
|
||||||
public override string Name => @"Song Select";
|
public override string Name => @"Song Select";
|
||||||
public override string Description => @"with fake data";
|
public override string Description => @"with fake data";
|
||||||
@ -43,6 +43,8 @@ namespace osu.Desktop.VisualTests.Tests
|
|||||||
|
|
||||||
db.Import(sets);
|
db.Import(sets);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Add(SongSelect = new PlaySongSelect());
|
||||||
OnArtist = () => { SongSelect.Filter.Sort = FilterControl.SortMode.Artist; };
|
OnArtist = () => { SongSelect.Filter.Sort = FilterControl.SortMode.Artist; };
|
||||||
OnTitle = () => { SongSelect.Filter.Sort = FilterControl.SortMode.Title; };
|
OnTitle = () => { SongSelect.Filter.Sort = FilterControl.SortMode.Title; };
|
||||||
OnAuthor = () => { SongSelect.Filter.Sort = FilterControl.SortMode.Author; };
|
OnAuthor = () => { SongSelect.Filter.Sort = FilterControl.SortMode.Author; };
|
||||||
@ -52,8 +54,6 @@ namespace osu.Desktop.VisualTests.Tests
|
|||||||
AddButton(@"Sort by Title", OnTitle);
|
AddButton(@"Sort by Title", OnTitle);
|
||||||
AddButton(@"Sort by Author", OnAuthor);
|
AddButton(@"Sort by Author", OnAuthor);
|
||||||
AddButton(@"Sort by Difficulty", OnDifficulty);
|
AddButton(@"Sort by Difficulty", OnDifficulty);
|
||||||
|
|
||||||
Add(SongSelect);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected override void Dispose(bool isDisposing)
|
protected override void Dispose(bool isDisposing)
|
||||||
|
@ -56,7 +56,15 @@ namespace osu.Game.Screens.Select
|
|||||||
|
|
||||||
private FilterControl filter;
|
private FilterControl filter;
|
||||||
public FilterControl Filter {
|
public FilterControl Filter {
|
||||||
get; private set;
|
get {
|
||||||
|
return filter;
|
||||||
|
}
|
||||||
|
private set {
|
||||||
|
if (filter != value) {
|
||||||
|
filter = value;
|
||||||
|
filterChanged();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Player player;
|
Player player;
|
||||||
|
Reference in New Issue
Block a user