Exemple #1
0
 private void load(RhythmicStore store)
 {
     solidBackground.Colour = ColourInfo.GradientHorizontal(
         store.SecondaryColour?.Value.Opacity(0.3f) ?? Color4.Black.Opacity(0.3f),
         store.SecondaryColour?.Value.Opacity(0.2f) ?? Color4.Black.Opacity(0.2f)
         );
 }
Exemple #2
0
        private void load(RhythmicStore store)
        {
            Direction    = FillDirection.Vertical;
            Spacing      = new Vector2(0, 10);
            AutoSizeAxes = Axes.Both;

            Children = new Drawable[]
            {
                new Container
                {
                    AutoSizeAxes = Axes.Both,
                    CornerRadius = 10,
                    Masking      = true,
                    Children     = new Drawable[]
                    {
                        new Box
                        {
                            RelativeSizeAxes = Axes.Both,
                            Colour           = store.SecondaryColour.Value.Opacity(0.2f)
                        },
                        new BufferedContainer
                        {
                            RelativeSizeAxes = Axes.Both,
                            BackgroundColour = Color4.Black,
                            BlurSigma        = new Vector2(15),
                            Child            = screen.CreateView().With(d =>
                            {
                                d.RelativeSizeAxes     = Axes.Both;
                                d.SynchronisedDrawQuad = true;
                            })
                        },
                        new FillFlowContainer
                        {
                            Direction    = FillDirection.Vertical,
                            Spacing      = new Vector2(0, 20),
                            AutoSizeAxes = Axes.Y,
                            Width        = 300,
                            Padding      = new MarginPadding
                            {
                                Vertical = 20
                            },
                            Children = new Drawable[]
                            {
                                new MenuButton
                                {
                                    Action = () => OnPlay?.Invoke(),
                                    Icon   = FontAwesome.Solid.Play,
                                    Text   = "Play",
                                },
                                new MenuButton
                                {
                                    Action = () => OnEditor?.Invoke(),
                                    Icon   = FontAwesome.Solid.Wrench,
                                    Text   = "Editor"
                                }
                            }
                        }
                    }
                }
            };
        }
Exemple #3
0
        private void load(TextureStore store, RhythmicStore colourStore)
        {
            Width            = width;
            RelativeSizeAxes = Axes.Y;

            AlwaysPresent = true;

            Children = new Drawable[]
            {
                new BufferedContainer
                {
                    RelativeSizeAxes = Axes.Both,
                    BackgroundColour = Color4.Black,
                    BlurSigma        = new Vector2(15),
                    Child            = screen.CreateView().With(d =>
                    {
                        d.RelativeSizeAxes     = Axes.Both;
                        d.SynchronisedDrawQuad = true;
                    })
                },
                new FillFlowContainer
                {
                    RelativeSizeAxes = Axes.Both,
                    Direction        = FillDirection.Vertical,
                    Children         = new Drawable[]
                    {
                        new Box
                        {
                            RelativeSizeAxes = Axes.Both,
                            Height           = 0.3f,
                            Colour           = colourStore.SecondaryColour.Value.Opacity(0.3f)
                        },
                        new Box
                        {
                            RelativeSizeAxes = Axes.Both,
                            Height           = 0.7f,
                            Colour           = ColourInfo.GradientVertical
                                               (
                                colourStore.SecondaryColour.Value.Opacity(0.3f),
                                colourStore.SecondaryColour.Value.Opacity(0.1f)
                                               )
                        }
                    }
                },
                new Sprite
                {
                    Texture = store.Get("AcrylicNoise.png"),
                    Colour  = Color4.Black.Opacity(0.05f),
                    Scale   = new Vector2(2)
                },
                content = new RhythmicScrollContainer
                {
                    Masking          = true,
                    RelativeSizeAxes = Axes.Both,
                    Children         = new Drawable[]
                    {
                        sections = new FillFlowContainer <NotificationSection>
                        {
                            Direction        = FillDirection.Vertical,
                            AutoSizeAxes     = Axes.Y,
                            RelativeSizeAxes = Axes.X,
                            Children         = new[]
                            {
                                new NotificationSection
                                {
                                    Title       = @"Notifications",
                                    ClearText   = @"Clear All",
                                    AcceptTypes = new[] { typeof(SimpleNotification) }
                                },
                                new NotificationSection
                                {
                                    Title       = @"Running Tasks",
                                    ClearText   = @"Cancel All",
                                    AcceptTypes = new[] { typeof(ProgressNotification) }
                                }
                            }
                        }
                    }
                }
            };
        }