backward compatible small fixes
This commit is contained in:
parent
70abe86ae3
commit
5c0608c537
4 changed files with 58 additions and 81 deletions
|
@ -6,7 +6,6 @@ namespace Sledgemapper.UI
|
|||
{
|
||||
public void ClearSelection()
|
||||
{
|
||||
ClearSelection(GridTiles);
|
||||
ClearSelection(GridWalls);
|
||||
ClearSelection(GridOverlays);
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* Generated by MyraPad at 07/01/2021 22:44:41 */
|
||||
/* Generated by MyraPad at 18/01/2021 09:38:43 */
|
||||
using Myra;
|
||||
using Myra.Graphics2D;
|
||||
using Myra.Graphics2D.TextureAtlases;
|
||||
|
@ -178,31 +178,6 @@ namespace Sledgemapper.UI
|
|||
horizontalStackPanel1.Widgets.Add(BtnToolbarRoom);
|
||||
horizontalStackPanel1.Widgets.Add(BtnToolbarDelete);
|
||||
|
||||
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;
|
||||
|
@ -218,15 +193,15 @@ namespace Sledgemapper.UI
|
|||
};
|
||||
GridWalls.Id = "GridWalls";
|
||||
|
||||
var scrollViewer2 = new ScrollViewer();
|
||||
scrollViewer2.Content = GridWalls;
|
||||
var scrollViewer1 = new ScrollViewer();
|
||||
scrollViewer1.Content = GridWalls;
|
||||
|
||||
var verticalStackPanel2 = new VerticalStackPanel();
|
||||
verticalStackPanel2.Proportions.Add(new Proportion
|
||||
var verticalStackPanel1 = new VerticalStackPanel();
|
||||
verticalStackPanel1.Proportions.Add(new Proportion
|
||||
{
|
||||
Type = Myra.Graphics2D.UI.ProportionType.Fill,
|
||||
});
|
||||
verticalStackPanel2.Widgets.Add(scrollViewer2);
|
||||
verticalStackPanel1.Widgets.Add(scrollViewer1);
|
||||
|
||||
GridOverlays = new Grid();
|
||||
GridOverlays.ColumnSpacing = 8;
|
||||
|
@ -243,22 +218,21 @@ namespace Sledgemapper.UI
|
|||
};
|
||||
GridOverlays.Id = "GridOverlays";
|
||||
|
||||
var scrollViewer3 = new ScrollViewer();
|
||||
scrollViewer3.Content = GridOverlays;
|
||||
var scrollViewer2 = new ScrollViewer();
|
||||
scrollViewer2.Content = GridOverlays;
|
||||
|
||||
var verticalStackPanel3 = new VerticalStackPanel();
|
||||
verticalStackPanel3.Proportions.Add(new Proportion
|
||||
var verticalStackPanel2 = new VerticalStackPanel();
|
||||
verticalStackPanel2.Proportions.Add(new Proportion
|
||||
{
|
||||
Type = Myra.Graphics2D.UI.ProportionType.Fill,
|
||||
});
|
||||
verticalStackPanel3.Widgets.Add(scrollViewer3);
|
||||
verticalStackPanel2.Widgets.Add(scrollViewer2);
|
||||
|
||||
var verticalSplitPane1 = new VerticalSplitPane();
|
||||
verticalSplitPane1.Width = 200;
|
||||
verticalSplitPane1.Background = new SolidBrush("#A1A1A1FF");
|
||||
verticalSplitPane1.Widgets.Add(verticalStackPanel1);
|
||||
verticalSplitPane1.Widgets.Add(verticalStackPanel2);
|
||||
verticalSplitPane1.Widgets.Add(verticalStackPanel3);
|
||||
|
||||
var label1 = new Label();
|
||||
label1.Text = "Connection status:";
|
||||
|
@ -345,7 +319,6 @@ namespace Sledgemapper.UI
|
|||
public ImageTextButton BtnToolbarWall;
|
||||
public ImageTextButton BtnToolbarRoom;
|
||||
public ImageTextButton BtnToolbarDelete;
|
||||
public Grid GridTiles;
|
||||
public Grid GridWalls;
|
||||
public Grid GridOverlays;
|
||||
public Label lblConnectionStatus;
|
||||
|
|
|
@ -43,17 +43,6 @@
|
|||
<ImageTextButton Text=" D" Width="40" Height="40" VerticalAlignment="Center" Id="BtnToolbarDelete" />
|
||||
</HorizontalStackPanel>
|
||||
<VerticalSplitPane Width="200" Background="#A1A1A1FF">
|
||||
<VerticalStackPanel>
|
||||
<VerticalStackPanel.Proportions>
|
||||
<Proportion Type="Fill" />
|
||||
</VerticalStackPanel.Proportions>
|
||||
<ScrollViewer>
|
||||
<Grid ColumnSpacing="8" RowSpacing="8" Id="GridTiles">
|
||||
<Grid.DefaultColumnProportion Type="Pixels" Value="40" />
|
||||
<Grid.DefaultRowProportion Type="Pixels" Value="40" />
|
||||
</Grid>
|
||||
</ScrollViewer>
|
||||
</VerticalStackPanel>
|
||||
<VerticalStackPanel>
|
||||
<VerticalStackPanel.Proportions>
|
||||
<Proportion Type="Fill" />
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue