private void load(ProjectEditor editor) { InternalChildren = new Drawable[] { new Box { RelativeSizeAxes = Axes.Both, Colour = new Colour4(106, 100, 104, 255), }, new Container { RelativeSizeAxes = Axes.Both, Padding = new MarginPadding { Top = 200f, Left = 300f, Right = 300f, Bottom = 200f, }, Children = new Drawable[] { new GamesToGoButton { RelativeSizeAxes = Axes.Y, Width = 650, BackgroundColour = Colour4.DarkGreen, Text = @"Quieres compartir tu juego con la comunidad? Publica tu juego", }, new GamesToGoButton { Anchor = Anchor.TopRight, Origin = Anchor.TopRight, Width = 650, RelativeSizeAxes = Axes.Y, Padding = new MarginPadding { Bottom = 10 }, Height = 1 / 3f, BackgroundColour = Colour4.DodgerBlue, Text = @"Incompleto? Guarda y termina después", Action = () => editor.SaveProject(), }, new GamesToGoButton { Anchor = Anchor.CentreRight, Origin = Anchor.CentreRight, RelativeSizeAxes = Axes.Y, Padding = new MarginPadding { Vertical = 5 }, Height = 1 / 3f, Width = 650, BackgroundColour = Colour4.PaleVioletRed, Text = @"Quieres un respaldo? Sube tu juego", Action = editor.UploadProject, }, new GamesToGoButton { Anchor = Anchor.BottomRight, Origin = Anchor.BottomRight, Width = 650, RelativeSizeAxes = Axes.Y, Padding = new MarginPadding { Top = 10 }, Height = 1 / 3f, BackgroundColour = Colour4.DarkSalmon, Text = @"Listo para publicar? Primero prueba tu juego", }, }, }, }; }
private void load(ProjectEditor editor) { InternalChildren = new Drawable[] { new Box { RelativeSizeAxes = Axes.Both, Colour = new Colour4(106, 100, 104, 255), }, new GridContainer { RelativeSizeAxes = Axes.Both, Content = new[] { new Drawable[] { //Listas de elementos new Container { RelativeSizeAxes = Axes.Both, Children = new Drawable [] { new Box { RelativeSizeAxes = Axes.Both, Colour = Colour4.Gray, }, new ProjectObjectManagerContainer <Card>(true) { Anchor = Anchor.TopLeft, Origin = Anchor.TopLeft, Height = 1 / 3f, }, new ProjectObjectManagerContainer <Token>(true) { Anchor = Anchor.CentreLeft, Origin = Anchor.CentreLeft, Height = 1 / 3f, }, new ProjectObjectManagerContainer <Board>(true) { Anchor = Anchor.BottomLeft, Origin = Anchor.BottomLeft, Height = 1 / 3f, }, }, }, //Area de edición new Container { RelativeSizeAxes = Axes.Both, Children = new Drawable[] { activeEditContainer = new BasicScrollContainer { RelativeSizeAxes = Axes.Both, Child = new FillFlowContainer { RelativeSizeAxes = Axes.X, AutoSizeAxes = Axes.Y, Direction = FillDirection.Vertical, Children = new Drawable[] { new Container { RelativeSizeAxes = Axes.X, AutoSizeAxes = Axes.Y, Children = new Drawable[] { new Box { RelativeSizeAxes = Axes.Both, Colour = Colour4.Cyan, }, new Container { RelativeSizeAxes = Axes.X, AutoSizeAxes = Axes.Y, Padding = new MarginPadding { Horizontal = 60, Vertical = 50 }, Children = new Drawable[] { new ImagePreviewContainer(), new SpriteText { Anchor = Anchor.TopRight, Origin = Anchor.TopRight, Position = new Vector2(-675, 10), Text = @"Nombre:", Colour = Colour4.Black, }, nameTextBox = new BasicTextBox { Anchor = Anchor.TopRight, Origin = Anchor.TopRight, Position = new Vector2(-250, 0), Height = 35, Width = 400, }, new SpriteText { Anchor = Anchor.TopRight, Origin = Anchor.TopRight, Position = new Vector2(-675, 80), Text = @"Descripción:", Colour = Colour4.Black, }, descriptionTextBox = new BasicTextBox { Anchor = Anchor.TopRight, Origin = Anchor.TopRight, Position = new Vector2(-250, 70), Height = 35, Width = 400, }, }, }, }, }, new Container { RelativeSizeAxes = Axes.X, Height = 600, Children = new Drawable[] { new Box { RelativeSizeAxes = Axes.Both, Colour = Colour4.Fuchsia, }, elementSize = new Container { RelativeSizeAxes = Axes.Both, Children = new Drawable[] { new SpriteText { Text = @"Tamaño X:", Position = new Vector2(50, 50), }, sizeTextBoxX = new NumericTextBox(4) { Height = 35, Width = 75, Position = new Vector2(125, 45), }, new SpriteText { Text = @"Tamaño Y:", Position = new Vector2(50, 100), }, sizeTextBoxY = new NumericTextBox(4) { Height = 35, Width = 75, Position = new Vector2(125, 95), }, }, }, elementSubElements = new Container { RelativeSizeAxes = Axes.Both, Width = 1 / 3f, Anchor = Anchor.TopRight, Origin = Anchor.TopRight, Child = tilesManagerContainer = new BoardObjectManagerContainer(), }, }, }, }, }, }, tileOverlay, noSelectionContainer = new Container { RelativeSizeAxes = Axes.Both, Anchor = Anchor.Centre, Origin = Anchor.Centre, Child = new SpriteText { Anchor = Anchor.Centre, Origin = Anchor.Centre, Text = @"Selecciona un objeto para editarlo", }, }, }, }, }, }, ColumnDimensions = new[] { new Dimension(GridSizeMode.Relative, 0.25f), new Dimension(), }, }, }; currentEditing.BindTo(editor.CurrentEditingElement); currentEditing.BindValueChanged(checkData, true); }