Ejemplo n.º 1
0
 public TestSceneUserRequest()
 {
     Add(new Container
     {
         Anchor       = Anchor.Centre,
         Origin       = Anchor.Centre,
         AutoSizeAxes = Axes.Both,
         Children     = new Drawable[]
         {
             new UserTestContainer
             {
                 User = { BindTarget = user }
             },
             loading = new DimmedLoadingLayer
             {
                 Alpha = 0
             }
         }
     });
 }
Ejemplo n.º 2
0
 public ScoresContainer()
 {
     RelativeSizeAxes = Axes.X;
     AutoSizeAxes     = Axes.Y;
     InternalChildren = new Drawable[]
     {
         background = new Box
         {
             RelativeSizeAxes = Axes.Both,
         },
         content = new FillFlowContainer
         {
             Anchor           = Anchor.TopCentre,
             Origin           = Anchor.TopCentre,
             RelativeSizeAxes = Axes.X,
             AutoSizeAxes     = Axes.Y,
             Width            = 0.95f,
             Direction        = FillDirection.Vertical,
             Margin           = new MarginPadding {
                 Vertical = spacing
             },
             Children = new Drawable[]
             {
                 new FillFlowContainer
                 {
                     RelativeSizeAxes = Axes.X,
                     AutoSizeAxes     = Axes.Y,
                     Direction        = FillDirection.Vertical,
                     Spacing          = new Vector2(0, spacing),
                     Children         = new Drawable[]
                     {
                         new LeaderboardScopeSelector
                         {
                             Anchor  = Anchor.TopCentre,
                             Origin  = Anchor.TopCentre,
                             Current = { BindTarget = scope }
                         },
                         modSelector = new LeaderboardModSelector
                         {
                             Anchor  = Anchor.TopCentre,
                             Origin  = Anchor.TopCentre,
                             Ruleset = { BindTarget = ruleset }
                         }
                     }
                 },
                 new Container
                 {
                     AutoSizeAxes     = Axes.Y,
                     RelativeSizeAxes = Axes.X,
                     Margin           = new MarginPadding {
                         Vertical = spacing
                     },
                     Children = new Drawable[]
                     {
                         noScoresPlaceholder = new NoScoresPlaceholder
                         {
                             Anchor        = Anchor.TopCentre,
                             Origin        = Anchor.TopCentre,
                             Alpha         = 0,
                             AlwaysPresent = true,
                             Margin        = new MarginPadding {
                                 Vertical = 10
                             }
                         },
                         notSupporterPlaceholder = new NotSupporterPlaceholder
                         {
                             Anchor = Anchor.TopCentre,
                             Origin = Anchor.TopCentre,
                             Alpha  = 0,
                         },
                         new FillFlowContainer
                         {
                             RelativeSizeAxes = Axes.X,
                             AutoSizeAxes     = Axes.Y,
                             Direction        = FillDirection.Vertical,
                             Spacing          = new Vector2(0, spacing),
                             Children         = new Drawable[]
                             {
                                 topScoresContainer = new FillFlowContainer
                                 {
                                     RelativeSizeAxes = Axes.X,
                                     AutoSizeAxes     = Axes.Y,
                                     Direction        = FillDirection.Vertical,
                                     Spacing          = new Vector2(0, 5),
                                 },
                                 scoreTable = new ScoreTable
                                 {
                                     Anchor = Anchor.TopCentre,
                                     Origin = Anchor.TopCentre,
                                 }
                             }
                         },
                         new Container
                         {
                             RelativeSizeAxes = Axes.Both,
                             Masking          = true,
                             CornerRadius     = 10,
                             Child            = loading = new DimmedLoadingLayer(iconScale: 0.8f)
                             {
                                 Alpha = 0,
                             },
                         }
                     }
                 }
             }
         },
     };
 }