199 lines
No EOL
5.4 KiB
C#
199 lines
No EOL
5.4 KiB
C#
/* Generated by MyraPad at 11/11/2020 09:47:53 */
|
|
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";
|
|
|
|
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);
|
|
|
|
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);
|
|
|
|
|
|
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);
|
|
}
|
|
|
|
|
|
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 MenuHelpAbout;
|
|
public HorizontalMenu _mainMenu;
|
|
public Grid GridTiles;
|
|
public Grid GridWalls;
|
|
public Grid GridOverlays;
|
|
}
|
|
} |