public SessionStartScreen() { RelativePositionAxes = Axes.X; InternalChildren = new Drawable[] { new Box { RelativeSizeAxes = Axes.Both, Colour = new Colour4(106, 100, 104, 255), }, new Container { Anchor = Anchor.Centre, Origin = Anchor.Centre, Height = 300, Width = 530, Children = new Drawable[] { new Box { Anchor = Anchor.Centre, Origin = Anchor.Centre, RelativeSizeAxes = Axes.Both, Colour = new Colour4(80, 75, 74, 255), }, new SpriteText { Text = "Bienvenido a Games To Go", Anchor = Anchor.TopCentre, Origin = Anchor.TopCentre, Position = new Vector2(0, 100), }, new GamesToGoButton { Text = @"Registrarse", BackgroundColour = new Colour4(106, 100, 104, 255), //Color Boton userInformation BorderColour = Colour4.Black, BorderThickness = 2f, Masking = true, Height = 40, Width = 100, Anchor = Anchor.TopLeft, Origin = Anchor.TopLeft, Position = new Vector2(100, 200), Action = showRegistration, }, new GamesToGoButton { Text = @"Iniciar Sesión", BackgroundColour = new Colour4(106, 100, 104, 255), //Color Boton userInformation BorderColour = Colour4.Black, BorderThickness = 2f, Masking = true, Height = 40, Width = 100, Anchor = Anchor.TopRight, Origin = Anchor.TopRight, Position = new Vector2(-100, 200), Action = showLogin, }, }, }, loginOverlay = new LoginOverlay(loginIntoServer), registerOverlay = new RegisterOverlay(), new Box { RelativeSizeAxes = Axes.Both, RelativePositionAxes = Axes.X, Anchor = Anchor.CentreLeft, Origin = Anchor.CentreRight, Colour = new Colour4(106, 100, 104, 255), Width = 1, }, }; }
private void load(TextureStore textures) { RelativeSizeAxes = Axes.Both; InternalChildren = new Drawable[] { new Box { RelativeSizeAxes = Axes.Both, Colour = new Colour4(106, 100, 104, 255) }, new GridContainer { RelativeSizeAxes = Axes.Both, RowDimensions = new [] { new Dimension(GridSizeMode.Relative, .5f), new Dimension(GridSizeMode.Relative, .25f), new Dimension() }, ColumnDimensions = new[] { new Dimension() }, Content = new [] { new Drawable[] { new CircularContainer { Anchor = Anchor.Centre, Origin = Anchor.Centre, BorderColour = Colour4.Black, BorderThickness = 3.5f, Masking = true, Size = new Vector2(600, 600), Child = new Sprite { RelativeSizeAxes = Axes.Both, Texture = textures.Get("Images/gtg") } } }, new Drawable[] { new Container { RelativeSizeAxes = Axes.Both, Child = loginButton = new GamesToGoButton { Anchor = Anchor.BottomCentre, Origin = Anchor.BottomCentre, Height = 150, Width = 800, Text = "Iniciar Sesión", Action = () => loginOverlay.Show() } } }, new Drawable[] { new Container { RelativeSizeAxes = Axes.Both, Child = registerButton = new GamesToGoButton { Anchor = Anchor.Centre, Origin = Anchor.Centre, Height = 150, Width = 800, Text = "Registrarse", Action = () => registerOverlay.Show() }, }, }, }, }, loginOverlay = new LoginOverlay(loginIntoServer), registerOverlay = new RegisterOverlay(), }; loginButton.SpriteText.Font = new FontUsage(size: 60); registerButton.SpriteText.Font = new FontUsage(size: 60); }