public SearchBeatmapSetsRequest(string query, RulesetInfo ruleset, RankStatus rankStatus = RankStatus.Any, DirectSortCriteria sortCriteria = DirectSortCriteria.Ranked, SortDirection direction = SortDirection.Descending)
 {
     this.query        = System.Uri.EscapeDataString(query);
     this.ruleset      = ruleset;
     this.rankStatus   = rankStatus;
     this.sortCriteria = sortCriteria;
     this.direction    = direction;
 }
Exemple #2
0
 public SearchBeatmapSetsRequest(string query, RulesetInfo ruleset, BeatmapSearchCategory searchCategory = BeatmapSearchCategory.Any, DirectSortCriteria sortCriteria = DirectSortCriteria.Ranked, SortDirection direction = SortDirection.Descending)
 {
     this.query          = string.IsNullOrEmpty(query) ? string.Empty : System.Uri.EscapeDataString(query);
     this.ruleset        = ruleset;
     this.searchCategory = searchCategory;
     this.sortCriteria   = sortCriteria;
     this.direction      = direction;
 }
Exemple #3
0
 public BeatmapTabButton(DirectSortCriteria value)
     : base(value)
 {
     Add(icon = new SpriteIcon
     {
         Anchor        = Anchor.Centre,
         Origin        = Anchor.Centre,
         AlwaysPresent = true,
         Alpha         = 0,
         Size          = new Vector2(6)
     });
 }
Exemple #4
0
 protected override TabButton CreateTabButton(DirectSortCriteria value) => new BeatmapTabButton(value)
 {
     Active        = { BindTarget = Active },
     SortDirection = { BindTarget = SortDirection }
 };
Exemple #5
0
 public BeatmapSortTabItem(DirectSortCriteria value)
     : base(value)
 {
 }
Exemple #6
0
 protected override TabItem <DirectSortCriteria> CreateTabItem(DirectSortCriteria value) => new BeatmapSortTabItem(value)
 {
     SortDirection = { BindTarget = SortDirection }
 };