67 lines
1.6 KiB
C#
67 lines
1.6 KiB
C#
/* Generated by MyraPad at 28/05/2021 22:36:14 */
|
|
using Myra;
|
|
using Myra.Graphics2D;
|
|
using Myra.Graphics2D.TextureAtlases;
|
|
using Myra.Graphics2D.UI;
|
|
using Myra.Graphics2D.Brushes;
|
|
using Myra.Graphics2D.UI.Properties;
|
|
|
|
#if MONOGAME || FNA
|
|
using Microsoft.Xna.Framework;
|
|
using Microsoft.Xna.Framework.Graphics;
|
|
#elif STRIDE
|
|
using Stride.Core.Mathematics;
|
|
#else
|
|
using System.Drawing;
|
|
using System.Numerics;
|
|
#endif
|
|
|
|
namespace Sledgemapper.UI
|
|
{
|
|
partial class CampaignWindow: VerticalStackPanel
|
|
{
|
|
private void BuildUI()
|
|
{
|
|
var label1 = new Label();
|
|
label1.Text = "Campaign";
|
|
|
|
TxtCampaign = new TextBox();
|
|
TxtCampaign.GridColumn = 1;
|
|
TxtCampaign.Id = "TxtCampaign";
|
|
|
|
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(TxtCampaign);
|
|
|
|
BtnNewCampaign = new TextButton();
|
|
BtnNewCampaign.Text = "New";
|
|
BtnNewCampaign.Padding = new Thickness(10, 5);
|
|
BtnNewCampaign.HorizontalAlignment = Myra.Graphics2D.UI.HorizontalAlignment.Center;
|
|
BtnNewCampaign.Id = "BtnNewCampaign";
|
|
|
|
|
|
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(BtnNewCampaign);
|
|
}
|
|
|
|
|
|
public TextBox TxtCampaign;
|
|
public TextButton BtnNewCampaign;
|
|
}
|
|
}
|