This commit is contained in:
Michele Scandura 2020-12-01 17:38:07 +00:00
parent b2567b2a01
commit 1e244795fc
49 changed files with 2767 additions and 78 deletions

View 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;
}
}