login flow
This commit is contained in:
parent
886d2a88b0
commit
194f3cbffa
22 changed files with 642 additions and 141 deletions
62
Sledgemapper/UI/SessionWindow.Generated.cs
Normal file
62
Sledgemapper/UI/SessionWindow.Generated.cs
Normal file
|
@ -0,0 +1,62 @@
|
|||
/* 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;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue