notes
This commit is contained in:
parent
b2567b2a01
commit
1e244795fc
49 changed files with 2767 additions and 78 deletions
|
@ -1,4 +1,5 @@
|
|||
/* Generated by MyraPad at 21/11/2020 00:18:48 */
|
||||
/* Generated by MyraPad at 01/12/2020 11:38:49 */
|
||||
using Myra;
|
||||
using Myra.Graphics2D;
|
||||
using Myra.Graphics2D.TextureAtlases;
|
||||
using Myra.Graphics2D.UI;
|
||||
|
@ -78,6 +79,11 @@ namespace Sledgemapper.UI
|
|||
menuItem1.Items.Add(MenuConnectSync);
|
||||
menuItem1.Items.Add(MenuConnectUpload);
|
||||
|
||||
MenuViewShowNotes = new MenuItem();
|
||||
MenuViewShowNotes.Text = "N&otes";
|
||||
MenuViewShowNotes.ShortcutText = "Ctrl+O";
|
||||
MenuViewShowNotes.Id = "MenuViewShowNotes";
|
||||
|
||||
MenuViewShowCellNUmbers = new MenuItem();
|
||||
MenuViewShowCellNUmbers.Text = "S&how cell numbers";
|
||||
MenuViewShowCellNUmbers.ShortcutText = "Ctrl+H";
|
||||
|
@ -90,6 +96,7 @@ namespace Sledgemapper.UI
|
|||
|
||||
var menuItem2 = new MenuItem();
|
||||
menuItem2.Text = "&View";
|
||||
menuItem2.Items.Add(MenuViewShowNotes);
|
||||
menuItem2.Items.Add(MenuViewShowCellNUmbers);
|
||||
menuItem2.Items.Add(MenuViewCenterOnSelection);
|
||||
|
||||
|
@ -259,6 +266,7 @@ namespace Sledgemapper.UI
|
|||
public MenuItem MenuConnectJoin;
|
||||
public MenuItem MenuConnectSync;
|
||||
public MenuItem MenuConnectUpload;
|
||||
public MenuItem MenuViewShowNotes;
|
||||
public MenuItem MenuViewShowCellNUmbers;
|
||||
public MenuItem MenuViewCenterOnSelection;
|
||||
public MenuItem MenuHelpAbout;
|
||||
|
@ -270,4 +278,4 @@ namespace Sledgemapper.UI
|
|||
public Label lblUsername;
|
||||
public Label lblSessionName;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
35
Sledgemapper/UI/NoteList.Generated.cs
Normal file
35
Sledgemapper/UI/NoteList.Generated.cs
Normal file
|
@ -0,0 +1,35 @@
|
|||
/* Generated by MyraPad at 01/12/2020 11:46:54 */
|
||||
using Myra;
|
||||
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 NoteList: ScrollViewer
|
||||
{
|
||||
private void BuildUI()
|
||||
{
|
||||
StackNotesList = new VerticalStackPanel();
|
||||
StackNotesList.Proportions.Add(new Proportion
|
||||
{
|
||||
Type = Myra.Graphics2D.UI.ProportionType.Fill,
|
||||
});
|
||||
StackNotesList.Id = "StackNotesList";
|
||||
|
||||
|
||||
Content = StackNotesList;
|
||||
}
|
||||
|
||||
|
||||
public VerticalStackPanel StackNotesList;
|
||||
}
|
||||
}
|
11
Sledgemapper/UI/NoteList.cs
Normal file
11
Sledgemapper/UI/NoteList.cs
Normal file
|
@ -0,0 +1,11 @@
|
|||
/* Generated by MyraPad at 01/12/2020 11:46:54 */
|
||||
namespace Sledgemapper.UI
|
||||
{
|
||||
public partial class NoteList
|
||||
{
|
||||
public NoteList()
|
||||
{
|
||||
BuildUI();
|
||||
}
|
||||
}
|
||||
}
|
55
Sledgemapper/UI/NoteListItem.Generated.cs
Normal file
55
Sledgemapper/UI/NoteListItem.Generated.cs
Normal file
|
@ -0,0 +1,55 @@
|
|||
/* Generated by MyraPad at 01/12/2020 15:39:17 */
|
||||
using Myra;
|
||||
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 NoteListItem: HorizontalStackPanel
|
||||
{
|
||||
private void BuildUI()
|
||||
{
|
||||
LblNoteText = new Label();
|
||||
LblNoteText.Text = "13:13 - Something like this, very long and trimmed";
|
||||
LblNoteText.AutoEllipsisMethod = Myra.Graphics2D.UI.AutoEllipsisMethod.Character;
|
||||
LblNoteText.Width = 300;
|
||||
LblNoteText.VerticalAlignment = Myra.Graphics2D.UI.VerticalAlignment.Center;
|
||||
LblNoteText.Id = "LblNoteText";
|
||||
|
||||
BtnNoteView = new ImageButton();
|
||||
BtnNoteView.Width = 30;
|
||||
BtnNoteView.Height = 30;
|
||||
BtnNoteView.Padding = new Thickness(5);
|
||||
BtnNoteView.VerticalAlignment = Myra.Graphics2D.UI.VerticalAlignment.Center;
|
||||
BtnNoteView.Id = "BtnNoteView";
|
||||
|
||||
BtnNoteCenter = new ImageButton();
|
||||
BtnNoteCenter.Width = 30;
|
||||
BtnNoteCenter.Height = 30;
|
||||
BtnNoteCenter.Padding = new Thickness(5);
|
||||
BtnNoteCenter.VerticalAlignment = Myra.Graphics2D.UI.VerticalAlignment.Center;
|
||||
BtnNoteCenter.Id = "BtnNoteCenter";
|
||||
|
||||
|
||||
Spacing = 15;
|
||||
VerticalAlignment = Myra.Graphics2D.UI.VerticalAlignment.Center;
|
||||
Widgets.Add(LblNoteText);
|
||||
Widgets.Add(BtnNoteView);
|
||||
Widgets.Add(BtnNoteCenter);
|
||||
}
|
||||
|
||||
|
||||
public Label LblNoteText;
|
||||
public ImageButton BtnNoteView;
|
||||
public ImageButton BtnNoteCenter;
|
||||
}
|
||||
}
|
11
Sledgemapper/UI/NoteListItem.cs
Normal file
11
Sledgemapper/UI/NoteListItem.cs
Normal file
|
@ -0,0 +1,11 @@
|
|||
/* Generated by MyraPad at 01/12/2020 14:29:43 */
|
||||
namespace Sledgemapper.UI
|
||||
{
|
||||
public partial class NoteListItem
|
||||
{
|
||||
public NoteListItem()
|
||||
{
|
||||
BuildUI();
|
||||
}
|
||||
}
|
||||
}
|
|
@ -21,6 +21,7 @@
|
|||
<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>
|
||||
|
|
10
Sledgemapper/UI/noteList.xml.xmmp
Normal file
10
Sledgemapper/UI/noteList.xml.xmmp
Normal file
|
@ -0,0 +1,10 @@
|
|||
<Project>
|
||||
<Project.ExportOptions Namespace="Sledgemapper.UI" Class="NoteList" OutputPath="C:\dev\Map\Sledgemapper\UI" />
|
||||
<ScrollViewer>
|
||||
<VerticalStackPanel Id="StackNotesList">
|
||||
<VerticalStackPanel.Proportions>
|
||||
<Proportion Type="Fill" />
|
||||
</VerticalStackPanel.Proportions>
|
||||
</VerticalStackPanel>
|
||||
</ScrollViewer>
|
||||
</Project>
|
8
Sledgemapper/UI/noteListItem.xmmp
Normal file
8
Sledgemapper/UI/noteListItem.xmmp
Normal file
|
@ -0,0 +1,8 @@
|
|||
<Project>
|
||||
<Project.ExportOptions Namespace="Sledgemapper.UI" Class="NoteListItem" OutputPath="C:\dev\Map\Sledgemapper\UI" />
|
||||
<HorizontalStackPanel Spacing="15" VerticalAlignment="Center">
|
||||
<Label Text="13:13 - Something like this, very long and trimmed" AutoEllipsisMethod="Character" Width="300" VerticalAlignment="Center" Id="LblNoteText" />
|
||||
<ImageButton Width="30" Height="30" Padding="5" VerticalAlignment="Center" Id="BtnNoteView" />
|
||||
<ImageButton Width="30" Height="30" Padding="5" VerticalAlignment="Center" Id="BtnNoteCenter" />
|
||||
</HorizontalStackPanel>
|
||||
</Project>
|
Loading…
Add table
Add a link
Reference in a new issue