private void load(OsuColour colours, IAPIProvider api)
        {
            api.Register(this);

            Children = new Drawable[]
            {
                new Container
                {
                    RelativeSizeAxes = Axes.Both,
                    EdgeEffect       = new EdgeEffectParameters
                    {
                        Type   = EdgeEffectType.Shadow,
                        Radius = 5,
                        Colour = Color4.Black.Opacity(0.2f),
                    },
                    Masking      = true,
                    CornerRadius = 10,
                    Children     = new Drawable[]
                    {
                        new Box
                        {
                            RelativeSizeAxes = Axes.Both,
                            Colour           = Color4.Black,
                            Alpha            = 0.6f,
                        },
                        new DelayedLoadWrapper(new AccountCreationBackground(), 0),
                        new Container
                        {
                            RelativeSizeAxes = Axes.Both,
                            Width            = 0.6f,
                            AutoSizeDuration = transition_time,
                            AutoSizeEasing   = Easing.OutQuint,
                            Children         = new Drawable[]
                            {
                                new Box
                                {
                                    RelativeSizeAxes = Axes.Both,
                                    Colour           = Color4.Black,
                                    Alpha            = 0.9f,
                                },
                                new ScreenStack(welcomeScreen = new ScreenWelcome())
                                {
                                    RelativeSizeAxes = Axes.Both,
                                },
                            }
                        }
                    }
                }
            };
        }
示例#2
0
        private void load(IAPIProvider api, LoginOverlay login)
        {
            api.Register(this);

            StateContainer = login;
        }
示例#3
0
 private void load(IAPIProvider api)
 {
     this.api = api;
     api.Register(this);
 }
示例#4
0
 private void load(IAPIProvider api)
 {
     api.Register(this);
 }