ui test, nine patch image
This commit is contained in:
parent
53bfb770ea
commit
fd25025889
7 changed files with 95 additions and 3 deletions
|
@ -337,6 +337,16 @@ namespace Sledgemapper
|
|||
|
||||
var content = new CampaignList();
|
||||
var campaigns = await _communicationManager.Api.GetCampaigns();
|
||||
foreach(var campaign in campaigns)
|
||||
{
|
||||
var item = new CampaignListItem();
|
||||
item.TxtCampaignName.Text=campaign.Name;
|
||||
item.Background= new NinePatchRegion(
|
||||
Content.Load<Texture2D>("listBackground"), new Rectangle(0, 0, 418, 98),
|
||||
new Myra.Graphics2D.Thickness {Left = 11, Right = 11,
|
||||
Top = 11, Bottom = 11});
|
||||
content.StackNotesList.AddChild(item);
|
||||
}
|
||||
//content.BtnNewCampaign.Text = "N";
|
||||
|
||||
|
||||
|
@ -454,7 +464,9 @@ namespace Sledgemapper
|
|||
_state.SelectClosestSnapPoint(screenPosition);
|
||||
}
|
||||
|
||||
if (!newState.IsKeyDown(Keys.LeftControl) && mouseState.LeftButton == ButtonState.Pressed && mouseState.LeftButton == oldMouseState.LeftButton)
|
||||
if (!newState.IsKeyDown(Keys.LeftControl) && mouseState.LeftButton == ButtonState.Pressed && mouseState.LeftButton == oldMouseState.LeftButton &&
|
||||
!_desktop.IsMouseOverGUI
|
||||
)
|
||||
{
|
||||
_viewportCenter = new Vector3(_viewportCenter.X + mouseState.Position.X - oldMouseState.Position.X, _viewportCenter.Y + mouseState.Position.Y - oldMouseState.Position.Y, 0);
|
||||
if (mouseState.Position != oldMouseState.Position)
|
||||
|
@ -2362,6 +2374,12 @@ namespace Sledgemapper
|
|||
};
|
||||
|
||||
var content = new LoginRegisterWindow();
|
||||
|
||||
#if DEBUG
|
||||
content.TxtEmail.Text="michele.scandura@outlook.com";
|
||||
content.TxtPassword.Text="slePharland!79";
|
||||
#endif
|
||||
|
||||
content.RdoLogin.IsPressed = true;
|
||||
content.RdoLogin.Click += (s, e) =>
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue