/* Generated by MyraPad at 17/11/2020 22:10:31 */
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 MainWidget: VerticalStackPanel
	{
		private void BuildUI()
		{
			MenuFileLoad = new MenuItem();
			MenuFileLoad.Text = "&Load";
			MenuFileLoad.ShortcutText = "Ctrl+L";
			MenuFileLoad.Id = "MenuFileLoad";

			MenuFileSave = new MenuItem();
			MenuFileSave.Text = "&Save";
			MenuFileSave.ShortcutText = "Ctrl+S";
			MenuFileSave.Id = "MenuFileSave";

			var menuSeparator1 = new MenuSeparator();

			MenuFileQuit = new MenuItem();
			MenuFileQuit.Text = "&Quit";
			MenuFileQuit.ShortcutText = "Ctrl+Q";
			MenuFileQuit.Id = "MenuFileQuit";

			MenuFile = new MenuItem();
			MenuFile.Text = "&File";
			MenuFile.Id = "MenuFile";
			MenuFile.Items.Add(MenuFileLoad);
			MenuFile.Items.Add(MenuFileSave);
			MenuFile.Items.Add(menuSeparator1);
			MenuFile.Items.Add(MenuFileQuit);

			MenuConnectLogin = new MenuItem();
			MenuConnectLogin.Text = "L&ogin";
			MenuConnectLogin.ShortcutText = "Ctrl+O";
			MenuConnectLogin.Id = "MenuConnectLogin";

			var menuSeparator2 = new MenuSeparator();

			MenuConnectNew = new MenuItem();
			MenuConnectNew.Text = "&New";
			MenuConnectNew.ShortcutText = "Ctrl+N";
			MenuConnectNew.Id = "MenuConnectNew";

			MenuConnectJoin = new MenuItem();
			MenuConnectJoin.Text = "&Join";
			MenuConnectJoin.ShortcutText = "Ctrl+J";
			MenuConnectJoin.Id = "MenuConnectJoin";

			MenuConnectSync = new MenuItem();
			MenuConnectSync.Text = "S&ync";
			MenuConnectSync.ShortcutText = "Ctrl+Y";
			MenuConnectSync.Id = "MenuConnectSync";

			MenuConnectUpload = new MenuItem();
			MenuConnectUpload.Text = "&Upload";
			MenuConnectUpload.ShortcutText = "Ctrl+U";
			MenuConnectUpload.Id = "MenuConnectUpload";

			var menuItem1 = new MenuItem();
			menuItem1.Text = "&Connect";
			menuItem1.Items.Add(MenuConnectLogin);
			menuItem1.Items.Add(menuSeparator2);
			menuItem1.Items.Add(MenuConnectNew);
			menuItem1.Items.Add(MenuConnectJoin);
			menuItem1.Items.Add(MenuConnectSync);
			menuItem1.Items.Add(MenuConnectUpload);

			MenuHelpAbout = new MenuItem();
			MenuHelpAbout.Text = "&About";
			MenuHelpAbout.Id = "MenuHelpAbout";

			var menuItem2 = new MenuItem();
			menuItem2.Text = "&Help";
			menuItem2.Items.Add(MenuHelpAbout);

			_mainMenu = new HorizontalMenu();
			_mainMenu.Id = "_mainMenu";
			_mainMenu.Items.Add(MenuFile);
			_mainMenu.Items.Add(menuItem1);
			_mainMenu.Items.Add(menuItem2);

			GridTiles = new Grid();
			GridTiles.ColumnSpacing = 8;
			GridTiles.RowSpacing = 8;
			GridTiles.DefaultColumnProportion = new Proportion
			{
				Type = Myra.Graphics2D.UI.ProportionType.Pixels,
				Value = 40,
			};
			GridTiles.DefaultRowProportion = new Proportion
			{
				Type = Myra.Graphics2D.UI.ProportionType.Pixels,
				Value = 40,
			};
			GridTiles.Id = "GridTiles";

			var scrollViewer1 = new ScrollViewer();
			scrollViewer1.Content = GridTiles;

			var verticalStackPanel1 = new VerticalStackPanel();
			verticalStackPanel1.Proportions.Add(new Proportion
			{
				Type = Myra.Graphics2D.UI.ProportionType.Fill,
			});
			verticalStackPanel1.Widgets.Add(scrollViewer1);

			GridWalls = new Grid();
			GridWalls.ColumnSpacing = 8;
			GridWalls.RowSpacing = 8;
			GridWalls.DefaultColumnProportion = new Proportion
			{
				Type = Myra.Graphics2D.UI.ProportionType.Pixels,
				Value = 40,
			};
			GridWalls.DefaultRowProportion = new Proportion
			{
				Type = Myra.Graphics2D.UI.ProportionType.Pixels,
				Value = 40,
			};
			GridWalls.Id = "GridWalls";

			var scrollViewer2 = new ScrollViewer();
			scrollViewer2.Content = GridWalls;

			var verticalStackPanel2 = new VerticalStackPanel();
			verticalStackPanel2.Proportions.Add(new Proportion
			{
				Type = Myra.Graphics2D.UI.ProportionType.Fill,
			});
			verticalStackPanel2.Widgets.Add(scrollViewer2);

			GridOverlays = new Grid();
			GridOverlays.ColumnSpacing = 8;
			GridOverlays.RowSpacing = 8;
			GridOverlays.DefaultColumnProportion = new Proportion
			{
				Type = Myra.Graphics2D.UI.ProportionType.Pixels,
				Value = 40,
			};
			GridOverlays.DefaultRowProportion = new Proportion
			{
				Type = Myra.Graphics2D.UI.ProportionType.Pixels,
				Value = 40,
			};
			GridOverlays.Id = "GridOverlays";

			var scrollViewer3 = new ScrollViewer();
			scrollViewer3.Content = GridOverlays;

			var verticalStackPanel3 = new VerticalStackPanel();
			verticalStackPanel3.Proportions.Add(new Proportion
			{
				Type = Myra.Graphics2D.UI.ProportionType.Fill,
			});
			verticalStackPanel3.Widgets.Add(scrollViewer3);

			var verticalSplitPane1 = new VerticalSplitPane();
			verticalSplitPane1.Width = 200;
			verticalSplitPane1.Background = new SolidBrush("#666666FF");
			verticalSplitPane1.Widgets.Add(verticalStackPanel1);
			verticalSplitPane1.Widgets.Add(verticalStackPanel2);
			verticalSplitPane1.Widgets.Add(verticalStackPanel3);

			var label1 = new Label();
			label1.Text = "Connection status:";

			lblConnectionStatus = new Label();
			lblConnectionStatus.Text = "Disconnected";
			lblConnectionStatus.MinWidth = 100;
			lblConnectionStatus.Id = "lblConnectionStatus";

			var verticalSeparator1 = new VerticalSeparator();

			var label2 = new Label();
			label2.Text = "Username:";

			lblUsername = new Label();
			lblUsername.Text = "n/a";
			lblUsername.MinWidth = 100;
			lblUsername.Id = "lblUsername";

			var verticalSeparator2 = new VerticalSeparator();

			var label3 = new Label();
			label3.Text = "Session name:";

			lblSessionName = new Label();
			lblSessionName.Text = "n/a";
			lblSessionName.MinWidth = 100;
			lblSessionName.Id = "lblSessionName";

			var horizontalStackPanel1 = new HorizontalStackPanel();
			horizontalStackPanel1.Spacing = 10;
			horizontalStackPanel1.Proportions.Add(new Proportion
			{
				Type = Myra.Graphics2D.UI.ProportionType.Auto,
			});
			horizontalStackPanel1.Height = 25;
			horizontalStackPanel1.Background = new SolidBrush("#333333FF");
			horizontalStackPanel1.Widgets.Add(label1);
			horizontalStackPanel1.Widgets.Add(lblConnectionStatus);
			horizontalStackPanel1.Widgets.Add(verticalSeparator1);
			horizontalStackPanel1.Widgets.Add(label2);
			horizontalStackPanel1.Widgets.Add(lblUsername);
			horizontalStackPanel1.Widgets.Add(verticalSeparator2);
			horizontalStackPanel1.Widgets.Add(label3);
			horizontalStackPanel1.Widgets.Add(lblSessionName);

			
			Proportions.Add(new Proportion
			{
				Type = Myra.Graphics2D.UI.ProportionType.Auto,
			});
			Proportions.Add(new Proportion
			{
				Type = Myra.Graphics2D.UI.ProportionType.Fill,
			});
			Widgets.Add(_mainMenu);
			Widgets.Add(verticalSplitPane1);
			Widgets.Add(horizontalStackPanel1);
		}

		
		public MenuItem MenuFileLoad;
		public MenuItem MenuFileSave;
		public MenuItem MenuFileQuit;
		public MenuItem MenuFile;
		public MenuItem MenuConnectLogin;
		public MenuItem MenuConnectNew;
		public MenuItem MenuConnectJoin;
		public MenuItem MenuConnectSync;
		public MenuItem MenuConnectUpload;
		public MenuItem MenuHelpAbout;
		public HorizontalMenu _mainMenu;
		public Grid GridTiles;
		public Grid GridWalls;
		public Grid GridOverlays;
		public Label lblConnectionStatus;
		public Label lblUsername;
		public Label lblSessionName;
	}
}