usability
This commit is contained in:
parent
a5d57893c4
commit
19f1084d5f
3 changed files with 27 additions and 5 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Generated by MyraPad at 10/11/2020 11:32:04 */
|
||||
/* Generated by MyraPad at 18/11/2020 16:11:22 */
|
||||
using Myra.Graphics2D;
|
||||
using Myra.Graphics2D.TextureAtlases;
|
||||
using Myra.Graphics2D.UI;
|
||||
|
@ -124,8 +124,21 @@ namespace Sledgemapper.UI
|
|||
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 = 16;
|
||||
Spacing = 13;
|
||||
HorizontalAlignment = Myra.Graphics2D.UI.HorizontalAlignment.Center;
|
||||
VerticalAlignment = Myra.Graphics2D.UI.VerticalAlignment.Center;
|
||||
Width = 400;
|
||||
|
@ -134,6 +147,7 @@ namespace Sledgemapper.UI
|
|||
Widgets.Add(grid1);
|
||||
Widgets.Add(BtnLogin);
|
||||
Widgets.Add(BtnRegister);
|
||||
Widgets.Add(LblLoginError);
|
||||
}
|
||||
|
||||
|
||||
|
@ -149,5 +163,6 @@ namespace Sledgemapper.UI
|
|||
public TextBox TxtInitials;
|
||||
public TextButton BtnLogin;
|
||||
public TextButton BtnRegister;
|
||||
public Label LblLoginError;
|
||||
}
|
||||
}
|
|
@ -1,6 +1,6 @@
|
|||
<Project>
|
||||
<Project.ExportOptions Namespace="Sledgemapper.UI" Class="LoginRegisterWindow" OutputPath="C:\dev\Map\Sledgemapper\UI" />
|
||||
<VerticalStackPanel Spacing="16" HorizontalAlignment="Center" VerticalAlignment="Center" Width="400" Padding="10">
|
||||
<VerticalStackPanel Spacing="13" HorizontalAlignment="Center" VerticalAlignment="Center" Width="400" Padding="10">
|
||||
<HorizontalStackPanel Spacing="18" HorizontalAlignment="Center">
|
||||
<RadioButton Text=" Login" Id="RdoLogin" />
|
||||
<RadioButton Text=" Register" Id="RdoRegister" />
|
||||
|
@ -22,6 +22,7 @@
|
|||
<TextBox GridColumn="1" GridRow="4" Visible="False" Id="TxtInitials" />
|
||||
</Grid>
|
||||
<TextButton Text="Login" Width="70" Height="20" Padding="5" HorizontalAlignment="Center" Id="BtnLogin" />
|
||||
<TextButton Text="Register" Width="70" Height="20" Padding="5" HorizontalAlignment="Center" Id="BtnRegister" Visible="False"/>
|
||||
<TextButton Text="Register" Visible="False" Width="70" Height="20" Padding="5" HorizontalAlignment="Center" Id="BtnRegister" />
|
||||
<Label Text="Email" TextColor="#FE3930FF" HorizontalAlignment="Center" Visible="False" Id="LblLoginError" />
|
||||
</VerticalStackPanel>
|
||||
</Project>
|
Loading…
Add table
Add a link
Reference in a new issue