Esempio n. 1
0
        private void load(IAPIProvider api)
        {
            apiState.BindTo(api.State);
            apiState.BindValueChanged(onlineStateChanged, true);

            Children = new Drawable[]
            {
                new Box
                {
                    RelativeSizeAxes = Axes.Both,
                    Colour           = ColourProvider.Background5
                },
                scrollFlow = new OverlayScrollContainer
                {
                    RelativeSizeAxes = Axes.Both,
                    ScrollbarVisible = false,
                    Child            = new FillFlowContainer
                    {
                        AutoSizeAxes     = Axes.Y,
                        RelativeSizeAxes = Axes.X,
                        Direction        = FillDirection.Vertical,
                        Children         = new Drawable[]
                        {
                            Header,
                            content = new Container
                            {
                                RelativeSizeAxes = Axes.X,
                                AutoSizeAxes     = Axes.Y
                            }
                        }
                    }
                },
                loading = new LoadingLayer(content),
            };
        }
 private void load()
 {
     Children = new Drawable[]
     {
         new Box
         {
             RelativeSizeAxes = Axes.Both,
             Colour           = ColourProvider.Background5,
         },
         scrollFlow = new OverlayScrollContainer
         {
             RelativeSizeAxes = Axes.Both,
             ScrollbarVisible = false,
             Child            = new FillFlowContainer
             {
                 RelativeSizeAxes = Axes.X,
                 AutoSizeAxes     = Axes.Y,
                 Direction        = FillDirection.Vertical,
                 Children         = new Drawable[]
                 {
                     Header.With(h =>
                     {
                         h.ShowFrontPage = ShowFrontPage;
                     }),
                     content = new Container
                     {
                         RelativeSizeAxes = Axes.X,
                         AutoSizeAxes     = Axes.Y,
                     }
                 },
             },
         },
         loading = new LoadingLayer(content),
     };
 }
Esempio n. 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
                     {
                         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)
     };
 }
Esempio n. 4
0
        public RankingsOverlay()
            : base(OverlayColourScheme.Green, new RankingsOverlayHeader
        {
            Anchor = Anchor.TopCentre,
            Origin = Anchor.TopCentre,
            Depth  = -float.MaxValue
        })
        {
            loading = new LoadingLayer(true);

            Children = new Drawable[]
            {
                background = new Box
                {
                    RelativeSizeAxes = Axes.Both
                },
                scrollFlow = new OverlayScrollContainer
                {
                    RelativeSizeAxes = Axes.Both,
                    ScrollbarVisible = false,
                    Child            = new FillFlowContainer
                    {
                        AutoSizeAxes     = Axes.Y,
                        RelativeSizeAxes = Axes.X,
                        Direction        = FillDirection.Vertical,
                        Children         = new Drawable[]
                        {
                            Header,
                            new Container
                            {
                                RelativeSizeAxes = Axes.X,
                                AutoSizeAxes     = Axes.Y,
                                Children         = new Drawable[]
                                {
                                    contentContainer = new Container
                                    {
                                        Anchor           = Anchor.TopCentre,
                                        Origin           = Anchor.TopCentre,
                                        AutoSizeAxes     = Axes.Y,
                                        RelativeSizeAxes = Axes.X,
                                        Margin           = new MarginPadding {
                                            Bottom = 10
                                        }
                                    },
                                }
                            }
                        }
                    }
                },
                loading
            };
        }
Esempio n. 5
0
 private void load()
 {
     Children = new Drawable[]
     {
         new Box
         {
             RelativeSizeAxes = Axes.Both,
             Colour           = ColourProvider.Background5
         },
         scrollFlow = new OverlayScrollContainer
         {
             RelativeSizeAxes = Axes.Both,
             ScrollbarVisible = false,
             Child            = new FillFlowContainer
             {
                 AutoSizeAxes     = Axes.Y,
                 RelativeSizeAxes = Axes.X,
                 Direction        = FillDirection.Vertical,
                 Children         = new Drawable[]
                 {
                     Header,
                     content = new Container
                     {
                         RelativeSizeAxes = Axes.X,
                         AutoSizeAxes     = Axes.Y
                     }
                 }
             }
         },
         loading = new LoadingLayer(content),
         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 the dashboard!");
     placeholderContainer.Child = errorPlaceholder;
 }
Esempio n. 6
0
 private void load()
 {
     Children = new Drawable[]
     {
         new Box
         {
             RelativeSizeAxes = Axes.Both,
             Colour           = ColourProvider.Background5
         },
         scrollFlow = new OverlayScrollContainer
         {
             RelativeSizeAxes = Axes.Both,
             ScrollbarVisible = false,
             Child            = new FillFlowContainer
             {
                 AutoSizeAxes     = Axes.Y,
                 RelativeSizeAxes = Axes.X,
                 Direction        = FillDirection.Vertical,
                 Children         = new Drawable[]
                 {
                     header = new DashboardOverlayHeader
                     {
                         Anchor = Anchor.TopCentre,
                         Origin = Anchor.TopCentre,
                         Depth  = -float.MaxValue
                     },
                     content = new Container
                     {
                         RelativeSizeAxes = Axes.X,
                         AutoSizeAxes     = Axes.Y
                     }
                 }
             }
         },
         loading = new LoadingLayer(content),
     };
 }
Esempio n. 7
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();
 }