mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-05-31 00:51:37 +00:00
Added options for pasting and inserting prefabs
This commit is contained in:
parent
efb7e4a43a
commit
ee8d88c3dc
25 changed files with 1063 additions and 162 deletions
|
@ -35,24 +35,51 @@ using CodeImp.DoomBuilder.Controls;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Windows
|
||||
{
|
||||
public partial class PasteOptionsForm : DelayedForm
|
||||
internal partial class PasteOptionsForm : DelayedForm
|
||||
{
|
||||
#region ================== Variables
|
||||
|
||||
|
||||
private PasteOptions options;
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region ================== Properties
|
||||
|
||||
public PasteOptions Options { get { return options; } }
|
||||
|
||||
#endregion
|
||||
|
||||
#region ================== Constructor
|
||||
|
||||
|
||||
// Constructor
|
||||
public PasteOptionsForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
||||
// Get defaults
|
||||
options = General.Settings.PasteOptions.Copy();
|
||||
pasteoptions.Setup(options);
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
#region ================== Events
|
||||
|
||||
|
||||
// Paste clicked
|
||||
private void paste_Click(object sender, EventArgs e)
|
||||
{
|
||||
options = pasteoptions.GetOptions();
|
||||
this.DialogResult = DialogResult.OK;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
// Cancel clicked
|
||||
private void cancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.DialogResult = DialogResult.Cancel;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue