ui test, nine patch image
This commit is contained in:
parent
53bfb770ea
commit
fd25025889
7 changed files with 95 additions and 3 deletions
45
Sledgemapper/UI/CampaignListItem.Generated.cs
Normal file
45
Sledgemapper/UI/CampaignListItem.Generated.cs
Normal file
|
@ -0,0 +1,45 @@
|
|||
/* Generated by MyraPad at 03/06/2021 16:16:33 */
|
||||
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 CampaignListItem: HorizontalStackPanel
|
||||
{
|
||||
private void BuildUI()
|
||||
{
|
||||
TxtCampaignName = new Label();
|
||||
TxtCampaignName.Text = "Highfell";
|
||||
TxtCampaignName.TextColor = ColorStorage.CreateColor(102, 102, 102, 255);
|
||||
TxtCampaignName.VerticalAlignment = Myra.Graphics2D.UI.VerticalAlignment.Center;
|
||||
TxtCampaignName.Background = new SolidBrush("#00000000");
|
||||
TxtCampaignName.Id = "TxtCampaignName";
|
||||
|
||||
|
||||
VerticalAlignment = Myra.Graphics2D.UI.VerticalAlignment.Center;
|
||||
Width = 300;
|
||||
Height = 45;
|
||||
BorderThickness = new Thickness(2);
|
||||
Padding = new Thickness(10);
|
||||
Id = "PnlCampaignItem";
|
||||
Widgets.Add(TxtCampaignName);
|
||||
}
|
||||
|
||||
|
||||
public Label TxtCampaignName;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue