/* Generated by MyraPad at 03/06/2021 15:48:34 */ using Myra; using Myra.Graphics2D; using Myra.Graphics2D.TextureAtlases; using Myra.Graphics2D.UI; using Myra.Graphics2D.Brushes; using Myra.Graphics2D.UI.Properties; #if MONOGAME || FNA using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; #elif STRIDE using Stride.Core.Mathematics; #else using System.Drawing; using System.Numerics; #endif namespace Sledgemapper.UI { partial class CampaignList: VerticalStackPanel { private void BuildUI() { var label1 = new Label(); label1.Text = "Campaigns"; label1.HorizontalAlignment = Myra.Graphics2D.UI.HorizontalAlignment.Center; StackNotesList = new VerticalStackPanel(); StackNotesList.Proportions.Add(new Proportion { Type = Myra.Graphics2D.UI.ProportionType.Fill, }); StackNotesList.MinHeight = 350; StackNotesList.Id = "StackNotesList"; var scrollViewer1 = new ScrollViewer(); scrollViewer1.Content = StackNotesList; var textButton1 = new TextButton(); textButton1.Text = "New"; textButton1.Width = 70; textButton1.Height = 20; textButton1.Padding = new Thickness(5); textButton1.HorizontalAlignment = Myra.Graphics2D.UI.HorizontalAlignment.Center; var textButton2 = new TextButton(); textButton2.Text = "Load"; textButton2.Width = 70; textButton2.Height = 20; textButton2.Padding = new Thickness(5); textButton2.HorizontalAlignment = Myra.Graphics2D.UI.HorizontalAlignment.Center; var textButton3 = new TextButton(); textButton3.Text = "Cancel"; textButton3.Width = 70; textButton3.Height = 20; textButton3.Padding = new Thickness(5); textButton3.HorizontalAlignment = Myra.Graphics2D.UI.HorizontalAlignment.Center; var horizontalStackPanel1 = new HorizontalStackPanel(); horizontalStackPanel1.Spacing = 15; horizontalStackPanel1.HorizontalAlignment = Myra.Graphics2D.UI.HorizontalAlignment.Right; horizontalStackPanel1.Widgets.Add(textButton1); horizontalStackPanel1.Widgets.Add(textButton2); horizontalStackPanel1.Widgets.Add(textButton3); Spacing = 13; Width = 400; Padding = new Thickness(10); Widgets.Add(label1); Widgets.Add(scrollViewer1); Widgets.Add(horizontalStackPanel1); } public VerticalStackPanel StackNotesList; } }