searchable overlays, overlay name on hover
This commit is contained in:
parent
afc94fd698
commit
808c0538be
3 changed files with 172 additions and 42 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Generated by MyraPad at 04/02/2021 10:02:37 */
|
||||
/* Generated by MyraPad at 04/02/2021 10:36:48 */
|
||||
using Myra;
|
||||
using Myra.Graphics2D;
|
||||
using Myra.Graphics2D.TextureAtlases;
|
||||
|
@ -191,11 +191,6 @@ namespace Sledgemapper.UI
|
|||
});
|
||||
verticalStackPanel1.Widgets.Add(scrollViewer1);
|
||||
|
||||
TxtOverlaySearch = new TextBox();
|
||||
TxtOverlaySearch.MinHeight = 40;
|
||||
TxtOverlaySearch.Margin = new Thickness(0, 4);
|
||||
TxtOverlaySearch.Id = "TxtOverlaySearch";
|
||||
|
||||
GridOverlays = new Grid();
|
||||
GridOverlays.ColumnSpacing = 8;
|
||||
GridOverlays.RowSpacing = 8;
|
||||
|
@ -211,16 +206,22 @@ namespace Sledgemapper.UI
|
|||
};
|
||||
GridOverlays.Id = "GridOverlays";
|
||||
|
||||
var scrollViewer2 = new ScrollViewer();
|
||||
scrollViewer2.Content = GridOverlays;
|
||||
ScrOverlay = new ScrollViewer();
|
||||
ScrOverlay.Id = "ScrOverlay";
|
||||
ScrOverlay.Content = GridOverlays;
|
||||
|
||||
TxtOverlaySearch = new TextBox();
|
||||
TxtOverlaySearch.Height = 40;
|
||||
TxtOverlaySearch.Margin = new Thickness(0, 4);
|
||||
TxtOverlaySearch.Id = "TxtOverlaySearch";
|
||||
|
||||
var verticalStackPanel2 = new VerticalStackPanel();
|
||||
verticalStackPanel2.Proportions.Add(new Proportion
|
||||
{
|
||||
Type = Myra.Graphics2D.UI.ProportionType.Fill,
|
||||
});
|
||||
verticalStackPanel2.Widgets.Add(ScrOverlay);
|
||||
verticalStackPanel2.Widgets.Add(TxtOverlaySearch);
|
||||
verticalStackPanel2.Widgets.Add(scrollViewer2);
|
||||
|
||||
var verticalSplitPane1 = new VerticalSplitPane();
|
||||
verticalSplitPane1.Width = 200;
|
||||
|
@ -313,8 +314,9 @@ namespace Sledgemapper.UI
|
|||
public ImageTextButton BtnToolbarDelete;
|
||||
public HorizontalStackPanel Toolbar;
|
||||
public Grid GridWalls;
|
||||
public TextBox TxtOverlaySearch;
|
||||
public Grid GridOverlays;
|
||||
public ScrollViewer ScrOverlay;
|
||||
public TextBox TxtOverlaySearch;
|
||||
public Label lblConnectionStatus;
|
||||
public Label lblUsername;
|
||||
public Label lblSessionName;
|
||||
|
|
82
Sledgemapper/UI/mainwidget.xml.xmmp
Normal file
82
Sledgemapper/UI/mainwidget.xml.xmmp
Normal file
|
@ -0,0 +1,82 @@
|
|||
<Project>
|
||||
<Project.ExportOptions Namespace="Sledgemapper.UI" Class="MainWidget" OutputPath="C:\dev\Map\Sledgemapper\UI" />
|
||||
<VerticalStackPanel>
|
||||
<VerticalStackPanel.Proportions>
|
||||
<Proportion Type="Auto" />
|
||||
<Proportion Type="Auto" />
|
||||
<Proportion Type="Fill" />
|
||||
</VerticalStackPanel.Proportions>
|
||||
<HorizontalMenu Id="_mainMenu">
|
||||
<MenuItem Text="&File" Id="MenuFile">
|
||||
<MenuItem Text="&Load" ShortcutText="Ctrl+L" Id="MenuFileLoad" />
|
||||
<MenuItem Text="&Save" ShortcutText="Ctrl+S" Id="MenuFileSave" />
|
||||
<MenuSeparator />
|
||||
<MenuItem Text="S&ettings" ShortcutText="Ctrl+E" Id="MenuFileSettings" />
|
||||
<MenuSeparator />
|
||||
<MenuItem Text="&Quit" ShortcutText="Ctrl+Q" Id="MenuFileQuit" />
|
||||
</MenuItem>
|
||||
<MenuItem Text="&Connect">
|
||||
<MenuItem Text="L&ogin" ShortcutText="Ctrl+O" Id="MenuConnectLogin" />
|
||||
<MenuSeparator />
|
||||
<MenuItem Text="&New" ShortcutText="Ctrl+N" Id="MenuConnectNew" />
|
||||
<MenuItem Text="&Join" ShortcutText="Ctrl+J" Id="MenuConnectJoin" />
|
||||
<MenuItem Text="S&ync" ShortcutText="Ctrl+Y" Id="MenuConnectSync" />
|
||||
<MenuItem Text="&Upload" ShortcutText="Ctrl+U" Id="MenuConnectUpload" />
|
||||
</MenuItem>
|
||||
<MenuItem Text="&View">
|
||||
<MenuItem Text="N&otes" ShortcutText="Ctrl+O" Id="MenuViewShowNotes" />
|
||||
<MenuItem Text="S&how cell numbers" ShortcutText="Ctrl+H" Id="MenuViewShowCellNUmbers" />
|
||||
<MenuItem Text="C&enter on selection" ShortcutText="Ctrl+E" Id="MenuViewCenterOnSelection" />
|
||||
</MenuItem>
|
||||
<MenuItem Text="&Help">
|
||||
<MenuItem Text="&About" Id="MenuHelpAbout" />
|
||||
</MenuItem>
|
||||
</HorizontalMenu>
|
||||
<HorizontalStackPanel Spacing="12" VerticalAlignment="Center" Height="51" Padding="4, 0, 0, 0" Background="#404040FF" Id="Toolbar">
|
||||
<HorizontalStackPanel.Proportions>
|
||||
<Proportion Type="Auto" />
|
||||
</HorizontalStackPanel.Proportions>
|
||||
<ImageTextButton Text=" C" Width="40" Height="40" BorderThickness="2" VerticalAlignment="Center" Id="BtnToolbarLine" />
|
||||
<ImageTextButton Text=" R" Width="40" Height="40" BorderThickness="2" VerticalAlignment="Center" Id="BtnToolbarRoom" />
|
||||
<ImageTextButton Text=" D" Width="40" Height="40" BorderThickness="2" 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="GridWalls">
|
||||
<Grid.DefaultColumnProportion Type="Pixels" Value="40" />
|
||||
<Grid.DefaultRowProportion Type="Pixels" Value="40" />
|
||||
</Grid>
|
||||
</ScrollViewer>
|
||||
</VerticalStackPanel>
|
||||
<VerticalStackPanel>
|
||||
<VerticalStackPanel.Proportions>
|
||||
<Proportion Type="Fill" />
|
||||
</VerticalStackPanel.Proportions>
|
||||
<ScrollViewer Id="ScrOverlay">
|
||||
<Grid ColumnSpacing="8" RowSpacing="8" Id="GridOverlays">
|
||||
<Grid.DefaultColumnProportion Type="Pixels" Value="40" />
|
||||
<Grid.DefaultRowProportion Type="Pixels" Value="40" />
|
||||
</Grid>
|
||||
</ScrollViewer>
|
||||
<TextBox Height="40" Margin="0, 4" Id="TxtOverlaySearch" />
|
||||
</VerticalStackPanel>
|
||||
</VerticalSplitPane>
|
||||
<HorizontalStackPanel Spacing="10" Height="25" Background="#333333FF">
|
||||
<HorizontalStackPanel.Proportions>
|
||||
<Proportion Type="Auto" />
|
||||
</HorizontalStackPanel.Proportions>
|
||||
<Label Text="Connection status:" />
|
||||
<Label Text="Disconnected" MinWidth="100" Id="lblConnectionStatus" />
|
||||
<VerticalSeparator />
|
||||
<Label Text="Username:" />
|
||||
<Label Text="n/a" MinWidth="100" Id="lblUsername" />
|
||||
<VerticalSeparator />
|
||||
<Label Text="Session name:" />
|
||||
<Label Text="n/a" MinWidth="100" Id="lblSessionName" />
|
||||
</HorizontalStackPanel>
|
||||
</VerticalStackPanel>
|
||||
</Project>
|
Loading…
Add table
Add a link
Reference in a new issue