(ded4a3e0a) v0.9.0.7

This commit is contained in:
Joonas Rikkonen
2019-06-25 16:00:44 +03:00
parent e5ae622c77
commit 4a51db77b5
1777 changed files with 421528 additions and 917 deletions
@@ -0,0 +1,61 @@
// MonoGame - Copyright (C) The MonoGame Team
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source code package.
using System.Collections.Generic;
using Eto.Forms;
namespace MonoGame.Tools.Pipeline
{
public partial class Pad
{
public string Title
{
get { return label.Text; }
set { label.Text = value; }
}
public List<Command> Commands;
private ContextMenu _contextMenu;
public Pad()
{
InitializeComponent();
Commands = new List<Command>();
_contextMenu = new ContextMenu();
}
public virtual void LoadSettings()
{
}
private void ImageSettings_MouseDown(object sender, MouseEventArgs e)
{
_contextMenu.Show(imageSettings);
}
public void CreateContent(Control control)
{
layout.AddRow(control);
}
public void AddCommand(Command com)
{
imageSettings.Visible = true;
Commands.Add(com);
_contextMenu.Items.Add(com.CreateMenuItem());
}
public void AddCommand(RadioCommand com)
{
imageSettings.Visible = true;
Commands.Add(com);
_contextMenu.Items.Add(com);
}
}
}