mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-06-02 01:41:49 +00:00
added configuration support for generalized sector effects
This commit is contained in:
parent
9bfaae721e
commit
2e741f7c8e
14 changed files with 457 additions and 263 deletions
|
@ -33,13 +33,39 @@ using CodeImp.DoomBuilder.Editing;
|
|||
|
||||
namespace CodeImp.DoomBuilder.Interface
|
||||
{
|
||||
public partial class SectorEditForm : DelayedForm
|
||||
internal partial class SectorEditForm : DelayedForm
|
||||
{
|
||||
// Variables
|
||||
private ICollection<Sector> sectors;
|
||||
|
||||
// Constructor
|
||||
public SectorEditForm()
|
||||
{
|
||||
// Initialize
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
// This sets up the form to edit the given sectors
|
||||
public void Setup(ICollection<Sector> sectors)
|
||||
{
|
||||
// Keep this list
|
||||
this.sectors = sectors;
|
||||
if(sectors.Count > 1) this.Text = "Edit Sectors (" + sectors.Count + ")";
|
||||
|
||||
}
|
||||
|
||||
// Cancel clicked
|
||||
private void cancel_Click(object sender, EventArgs e)
|
||||
{
|
||||
// Be gone
|
||||
this.DialogResult = DialogResult.Cancel;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
// This finds a new (unused) tag
|
||||
private void newtag_Click(object sender, EventArgs e)
|
||||
{
|
||||
tag.Text = General.Map.Map.GetNewTag().ToString();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue