/* Generated by MyraPad at 10/11/2020 10:59:36 */ using Myra.Graphics2D; using Myra.Graphics2D.TextureAtlases; using Myra.Graphics2D.UI; using Myra.Graphics2D.Brushes; #if !STRIDE using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; #else using Stride.Core.Mathematics; #endif namespace Sledgemapper.UI { partial class SessionWindow: VerticalStackPanel { private void BuildUI() { var label1 = new Label(); label1.Text = "Session"; TxtSession = new TextBox(); TxtSession.GridColumn = 1; TxtSession.Id = "TxtSession"; var grid1 = new Grid(); grid1.ColumnSpacing = 25; grid1.RowSpacing = 10; grid1.ColumnsProportions.Add(new Proportion { Type = Myra.Graphics2D.UI.ProportionType.Pixels, Value = 60, }); grid1.ColumnsProportions.Add(new Proportion { Type = Myra.Graphics2D.UI.ProportionType.Fill, }); grid1.Widgets.Add(label1); grid1.Widgets.Add(TxtSession); BtnLogin = new TextButton(); BtnLogin.Text = "Join"; BtnLogin.Padding = new Thickness(10, 5); BtnLogin.HorizontalAlignment = Myra.Graphics2D.UI.HorizontalAlignment.Center; BtnLogin.Id = "BtnLogin"; Spacing = 16; HorizontalAlignment = Myra.Graphics2D.UI.HorizontalAlignment.Center; VerticalAlignment = Myra.Graphics2D.UI.VerticalAlignment.Center; Width = 300; Padding = new Thickness(10); Widgets.Add(grid1); Widgets.Add(BtnLogin); } public TextBox TxtSession; public TextButton BtnLogin; } }