/* Generated by MyraPad at 19/11/2020 11:58:09 */ 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 LoginRegisterWindow: VerticalStackPanel { private void BuildUI() { RdoLogin = new RadioButton(); RdoLogin.Text = " Login"; RdoLogin.Id = "RdoLogin"; RdoRegister = new RadioButton(); RdoRegister.Text = " Register"; RdoRegister.Id = "RdoRegister"; var horizontalStackPanel1 = new HorizontalStackPanel(); horizontalStackPanel1.Spacing = 18; horizontalStackPanel1.HorizontalAlignment = Myra.Graphics2D.UI.HorizontalAlignment.Center; horizontalStackPanel1.Widgets.Add(RdoLogin); horizontalStackPanel1.Widgets.Add(RdoRegister); var label1 = new Label(); label1.Text = "Username"; var label2 = new Label(); label2.Text = "Password"; label2.GridRow = 1; TxtEmail = new TextBox(); TxtEmail.GridColumn = 1; TxtEmail.Id = "TxtEmail"; TxtPassword = new TextBox(); TxtPassword.PasswordField = true; TxtPassword.GridColumn = 1; TxtPassword.GridRow = 1; TxtPassword.Id = "TxtPassword"; LblFirstname = new Label(); LblFirstname.Text = "First name"; LblFirstname.GridRow = 2; LblFirstname.Visible = false; LblFirstname.Id = "LblFirstname"; LblLastname = new Label(); LblLastname.Text = "Last name"; LblLastname.GridRow = 3; LblLastname.Visible = false; LblLastname.Id = "LblLastname"; LblInitials = new Label(); LblInitials.Text = "Initials"; LblInitials.GridRow = 4; LblInitials.Visible = false; LblInitials.Id = "LblInitials"; TxtFirstname = new TextBox(); TxtFirstname.GridColumn = 1; TxtFirstname.GridRow = 2; TxtFirstname.Visible = false; TxtFirstname.Id = "TxtFirstname"; TxtLastname = new TextBox(); TxtLastname.GridColumn = 1; TxtLastname.GridRow = 3; TxtLastname.Visible = false; TxtLastname.Id = "TxtLastname"; TxtInitials = new TextBox(); TxtInitials.GridColumn = 1; TxtInitials.GridRow = 4; TxtInitials.Visible = false; TxtInitials.Id = "TxtInitials"; var grid1 = new Grid(); grid1.ColumnSpacing = 25; grid1.RowSpacing = 10; grid1.ColumnsProportions.Add(new Proportion { Type = Myra.Graphics2D.UI.ProportionType.Pixels, Value = 80, }); grid1.ColumnsProportions.Add(new Proportion { Type = Myra.Graphics2D.UI.ProportionType.Fill, }); grid1.Widgets.Add(label1); grid1.Widgets.Add(label2); grid1.Widgets.Add(TxtEmail); grid1.Widgets.Add(TxtPassword); grid1.Widgets.Add(LblFirstname); grid1.Widgets.Add(LblLastname); grid1.Widgets.Add(LblInitials); grid1.Widgets.Add(TxtFirstname); grid1.Widgets.Add(TxtLastname); grid1.Widgets.Add(TxtInitials); BtnLogin = new TextButton(); BtnLogin.Text = "Login"; BtnLogin.Width = 70; BtnLogin.Height = 20; BtnLogin.Padding = new Thickness(5); BtnLogin.HorizontalAlignment = Myra.Graphics2D.UI.HorizontalAlignment.Center; BtnLogin.Id = "BtnLogin"; BtnRegister = new TextButton(); BtnRegister.Text = "Register"; BtnRegister.Visible = false; BtnRegister.Width = 70; BtnRegister.Height = 20; BtnRegister.Padding = new Thickness(5); BtnRegister.HorizontalAlignment = Myra.Graphics2D.UI.HorizontalAlignment.Center; BtnRegister.Id = "BtnRegister"; LblLoginError = new Label(); LblLoginError.Text = "Email"; LblLoginError.TextColor = new Color { B = 48, G = 57, R = 254, A = 255, }; LblLoginError.HorizontalAlignment = Myra.Graphics2D.UI.HorizontalAlignment.Center; LblLoginError.Visible = false; LblLoginError.Id = "LblLoginError"; Spacing = 13; HorizontalAlignment = Myra.Graphics2D.UI.HorizontalAlignment.Center; VerticalAlignment = Myra.Graphics2D.UI.VerticalAlignment.Center; Width = 400; Padding = new Thickness(10); Widgets.Add(horizontalStackPanel1); Widgets.Add(grid1); Widgets.Add(BtnLogin); Widgets.Add(BtnRegister); Widgets.Add(LblLoginError); } public RadioButton RdoLogin; public RadioButton RdoRegister; public TextBox TxtEmail; public TextBox TxtPassword; public Label LblFirstname; public Label LblLastname; public Label LblInitials; public TextBox TxtFirstname; public TextBox TxtLastname; public TextBox TxtInitials; public TextButton BtnLogin; public TextButton BtnRegister; public Label LblLoginError; } }