ui test, nine patch image
This commit is contained in:
parent
53bfb770ea
commit
fd25025889
7 changed files with 95 additions and 3 deletions
|
@ -1,4 +1,4 @@
|
|||
/* Generated by MyraPad at 01/06/2021 12:43:27 */
|
||||
/* Generated by MyraPad at 03/06/2021 15:48:34 */
|
||||
using Myra;
|
||||
using Myra.Graphics2D;
|
||||
using Myra.Graphics2D.TextureAtlases;
|
||||
|
|
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;
|
||||
}
|
||||
}
|
11
Sledgemapper/UI/CampaignListItem.cs
Normal file
11
Sledgemapper/UI/CampaignListItem.cs
Normal file
|
@ -0,0 +1,11 @@
|
|||
/* Generated by MyraPad at 03/06/2021 16:00:11 */
|
||||
namespace Sledgemapper.UI
|
||||
{
|
||||
public partial class CampaignListItem
|
||||
{
|
||||
public CampaignListItem()
|
||||
{
|
||||
BuildUI();
|
||||
}
|
||||
}
|
||||
}
|
6
Sledgemapper/UI/campaignListItem.xmmp
Normal file
6
Sledgemapper/UI/campaignListItem.xmmp
Normal file
|
@ -0,0 +1,6 @@
|
|||
<Project>
|
||||
<Project.ExportOptions Namespace="Sledgemapper.UI" Class="CampaignListItem" OutputPath="C:\src\Map\Sledgemapper\UI" />
|
||||
<HorizontalStackPanel VerticalAlignment="Center" Width="300" Height="45" BorderThickness="2" Padding="10" Id="PnlCampaignItem">
|
||||
<Label Text="Highfell" TextColor="#666666FF" VerticalAlignment="Center" Background="#00000000" Id="TxtCampaignName" />
|
||||
</HorizontalStackPanel>
|
||||
</Project>
|
Loading…
Add table
Add a link
Reference in a new issue