Пример #1
0
        public MainMenu()
        {
            background = new BackgroundScreenDefault();

            Children = new Drawable[]
            {
                new ParallaxContainer
                {
                    ParallaxAmount = 0.01f,
                    Children       = new Drawable[]
                    {
                        buttons = new ButtonSystem
                        {
                            OnChart  = delegate { Push(new ChartListing()); },
                            OnDirect = delegate { Push(new OnlineListing()); },
                            OnEdit   = delegate { Push(new Editor()); },
                            OnSolo   = delegate { Push(consumeSongSelect()); },
                            OnMulti  = delegate { Push(new Lobby()); },
                            OnExit   = delegate { Exit(); },
                        },
                        new MenuSideFlashes(),
                    }
                }
            };
        }