mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 08:22:56 +08:00
Remove temporary comments
> Removes unnecessary xmldoc comments
This commit is contained in:
parent
0c60b10757
commit
82190a07b8
@ -16,9 +16,6 @@ namespace osu.Game.Online.API.Requests
|
|||||||
|
|
||||||
public abstract class ResponseWithCursor<T> : ResponseWithCursor where T : class
|
public abstract class ResponseWithCursor<T> : ResponseWithCursor where T : class
|
||||||
{
|
{
|
||||||
/// <summary>
|
|
||||||
/// Cursor deserialized into T class type (cannot implicitly convert type to object using raw Cursor)
|
|
||||||
/// </summary>
|
|
||||||
[JsonProperty("cursor")]
|
[JsonProperty("cursor")]
|
||||||
public T Cursor;
|
public T Cursor;
|
||||||
}
|
}
|
||||||
|
@ -22,7 +22,6 @@ namespace osu.Game.Overlays.BeatmapListing
|
|||||||
{
|
{
|
||||||
public Action<List<BeatmapSetInfo>> SearchFinished;
|
public Action<List<BeatmapSetInfo>> SearchFinished;
|
||||||
public Action SearchStarted;
|
public Action SearchStarted;
|
||||||
/// <summary> List of currently displayed beatmap entries </summary>
|
|
||||||
private List<BeatmapSetInfo> currentBeatmaps;
|
private List<BeatmapSetInfo> currentBeatmaps;
|
||||||
|
|
||||||
[Resolved]
|
[Resolved]
|
||||||
@ -169,7 +168,6 @@ namespace osu.Game.Overlays.BeatmapListing
|
|||||||
|
|
||||||
public void TakeFocus() => searchControl.TakeFocus();
|
public void TakeFocus() => searchControl.TakeFocus();
|
||||||
|
|
||||||
/// <summary> Request next 50 matches if available </summary>
|
|
||||||
public void AddPageToResult()
|
public void AddPageToResult()
|
||||||
{
|
{
|
||||||
if (beatmapListingPager == null || !beatmapListingPager.CanFetchNextPage)
|
if (beatmapListingPager == null || !beatmapListingPager.CanFetchNextPage)
|
||||||
|
@ -24,13 +24,9 @@ namespace osu.Game.Overlays.BeatmapListing
|
|||||||
private SearchBeatmapSetsRequest getSetsRequest;
|
private SearchBeatmapSetsRequest getSetsRequest;
|
||||||
private SearchBeatmapSetsResponse lastResponse;
|
private SearchBeatmapSetsResponse lastResponse;
|
||||||
|
|
||||||
/// <summary> Reports end of results </summary>
|
|
||||||
private bool isLastPageFetched = false;
|
private bool isLastPageFetched = false;
|
||||||
/// <summary> Job in process lock flag </summary>
|
|
||||||
private bool isFetching => getSetsRequest != null;
|
private bool isFetching => getSetsRequest != null;
|
||||||
/// <summary> Whether beatmaps should be appended or replaced </summary>
|
|
||||||
public bool IsPastFirstPage { get; private set; } = false;
|
public bool IsPastFirstPage { get; private set; } = false;
|
||||||
/// <summary> call FetchNextPage() safe-check </summary>
|
|
||||||
public bool CanFetchNextPage => !isLastPageFetched && !isFetching;
|
public bool CanFetchNextPage => !isLastPageFetched && !isFetching;
|
||||||
|
|
||||||
public BeatmapListingPager(IAPIProvider api, RulesetStore rulesets, string query, RulesetInfo ruleset, SearchCategory searchCategory = SearchCategory.Any, SortCriteria sortCriteria = SortCriteria.Ranked, SortDirection sortDirection = SortDirection.Descending)
|
public BeatmapListingPager(IAPIProvider api, RulesetStore rulesets, string query, RulesetInfo ruleset, SearchCategory searchCategory = SearchCategory.Any, SortCriteria sortCriteria = SortCriteria.Ranked, SortDirection sortDirection = SortDirection.Descending)
|
||||||
|
@ -34,9 +34,7 @@ namespace osu.Game.Overlays
|
|||||||
private NotFoundDrawable notFoundContent;
|
private NotFoundDrawable notFoundContent;
|
||||||
|
|
||||||
private OverlayScrollContainer resultScrollContainer;
|
private OverlayScrollContainer resultScrollContainer;
|
||||||
/// <summary> Scroll distance threshold from results tail, higher means sooner </summary>
|
|
||||||
private const int pagination_scroll_distance = 500;
|
private const int pagination_scroll_distance = 500;
|
||||||
/// <summary> This is paging event flag </summary>
|
|
||||||
private bool shouldAddNextPage => resultScrollContainer.ScrollableExtent > 0 && resultScrollContainer.IsScrolledToEnd(pagination_scroll_distance);
|
private bool shouldAddNextPage => resultScrollContainer.ScrollableExtent > 0 && resultScrollContainer.IsScrolledToEnd(pagination_scroll_distance);
|
||||||
|
|
||||||
public BeatmapListingOverlay()
|
public BeatmapListingOverlay()
|
||||||
|
Loading…
Reference in New Issue
Block a user