Beispiel #1
0
 private void load()
 {
     Children = new Drawable[]
     {
         new Box
         {
             RelativeSizeAxes = Axes.Both,
             Colour           = ColourProvider.Background6
         },
         resultScrollContainer = new OverlayScrollContainer
         {
             RelativeSizeAxes = Axes.Both,
             ScrollbarVisible = false,
             Child            = new ReverseChildIDFillFlowContainer <Drawable>
             {
                 AutoSizeAxes     = Axes.Y,
                 RelativeSizeAxes = Axes.X,
                 Direction        = FillDirection.Vertical,
                 Children         = new Drawable[]
                 {
                     Header,
                     filterControl = new BeatmapListingFilterControl
                     {
                         TypingStarted  = onTypingStarted,
                         SearchStarted  = onSearchStarted,
                         SearchFinished = onSearchFinished,
                     },
                     new Container
                     {
                         AutoSizeAxes     = Axes.Y,
                         RelativeSizeAxes = Axes.X,
                         Children         = new Drawable[]
                         {
                             new Box
                             {
                                 RelativeSizeAxes = Axes.Both,
                                 Colour           = ColourProvider.Background4,
                             },
                             panelTarget = new Container
                             {
                                 AutoSizeAxes     = Axes.Y,
                                 RelativeSizeAxes = Axes.X,
                                 Padding          = new MarginPadding {
                                     Horizontal = 20
                                 },
                                 Children = new Drawable[]
                                 {
                                     foundContent    = new FillFlowContainer <BeatmapPanel>(),
                                     notFoundContent = new NotFoundDrawable(),
                                 }
                             }
                         },
                     },
                 }
             },
         },
         loadingLayer = new LoadingLayer(true)
     };
 }
Beispiel #2
0
 private void load()
 {
     Child = new FillFlowContainer
     {
         RelativeSizeAxes = Axes.X,
         AutoSizeAxes     = Axes.Y,
         Direction        = FillDirection.Vertical,
         Children         = new Drawable[]
         {
             filterControl = new BeatmapListingFilterControl
             {
                 TypingStarted  = onTypingStarted,
                 SearchStarted  = onSearchStarted,
                 SearchFinished = onSearchFinished,
             },
             new Container
             {
                 AutoSizeAxes     = Axes.Y,
                 RelativeSizeAxes = Axes.X,
                 Children         = new Drawable[]
                 {
                     new Box
                     {
                         RelativeSizeAxes = Axes.Both,
                         Colour           = ColourProvider.Background5,
                     },
                     panelTarget = new Container
                     {
                         AutoSizeAxes     = Axes.Y,
                         RelativeSizeAxes = Axes.X,
                         Masking          = true,
                         Padding          = new MarginPadding {
                             Horizontal = 20
                         },
                         Children = new Drawable[]
                         {
                             foundContent             = new FillFlowContainer <BeatmapCard>(),
                             notFoundContent          = new NotFoundDrawable(),
                             supporterRequiredContent = new SupporterRequiredDrawable(),
                         }
                     }
                 },
             },
         }
     };
 }
Beispiel #3
0
 private void load()
 {
     Children = new Drawable[]
     {
         new Box
         {
             RelativeSizeAxes = Axes.Both,
             Colour           = ColourProvider.Background6
         },
         resultScrollContainer = new OverlayScrollContainer
         {
             RelativeSizeAxes = Axes.Both,
             ScrollbarVisible = false,
             Child            = new ReverseChildIDFillFlowContainer <Drawable>
             {
                 AutoSizeAxes     = Axes.Y,
                 RelativeSizeAxes = Axes.X,
                 Direction        = FillDirection.Vertical,
                 Children         = new Drawable[]
                 {
                     Header,
                     filterControl = new BeatmapListingFilterControl
                     {
                         SearchStarted  = onSearchStarted,
                         SearchFinished = onSearchFinished,
                     },
                     new Container
                     {
                         AutoSizeAxes     = Axes.Y,
                         RelativeSizeAxes = Axes.X,
                         Children         = new Drawable[]
                         {
                             new Box
                             {
                                 RelativeSizeAxes = Axes.Both,
                                 Colour           = ColourProvider.Background4,
                             },
                             panelTarget = new Container
                             {
                                 AutoSizeAxes     = Axes.Y,
                                 RelativeSizeAxes = Axes.X,
                                 Padding          = new MarginPadding {
                                     Horizontal = 20
                                 },
                                 Children = new Drawable[]
                                 {
                                     foundContent    = new FillFlowContainer <BeatmapPanel>(),
                                     notFoundContent = new NotFoundDrawable(),
                                     loadingLayer    = new LoadingLayer(panelTarget),
                                 }
                             },
                             placeholderContainer = new Container
                             {
                                 Anchor           = Anchor.TopCentre,
                                 Origin           = Anchor.TopCentre,
                                 AutoSizeAxes     = Axes.Y,
                                 RelativeSizeAxes = Axes.X,
                                 Margin           = new MarginPadding {
                                     Bottom = 10, Top = 200
                                 }
                             }
                         }
                     },
                 }
             }
         }
     };
     api?.Register(this);
     errorPlaceholder = new LoginPlaceholder(@"Please sign in to view beatmap listing!");
     checkIsLoggedIn();
 }