private void load(IAPIProvider api) { apiState.BindTo(api.State); apiState.BindValueChanged(apiStateChanged, true); 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, }, } } } } }; }
private void load(OsuColour colours, APIAccess 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, }, welcomeScreen = new ScreenWelcome(), } } } } }; }