UDMF: sidedef flags are now defined in game configuration instead of being hardcoded.

Texture scale controls now have "Link" button. 
Thing, Sector (UDMF) and Linedef edit forms now work in realtime mode.
Some more fixes in Edit form realtime update stuff.
Removed some unused variables and functions.
This commit is contained in:
MaxED 2013-07-19 15:30:58 +00:00
parent 7f3461209a
commit bafb8ed511
59 changed files with 2695 additions and 1181 deletions

View file

@ -28,13 +28,13 @@ namespace CodeImp.DoomBuilder.Controls
{
public partial class CheckboxArrayControl : UserControl
{
// Constants
//private const int SPACING_Y = 1;
private int spacingY = 1; //mxd
// Events
public event EventHandler OnValueChanged; //mxd
// Variables
private List<CheckBox> checkboxes;
private int columns;
private int spacingY = 1; //mxd
// Properties
public List<CheckBox> Checkboxes { get { return checkboxes; } }
@ -61,6 +61,7 @@ namespace CodeImp.DoomBuilder.Controls
c.UseVisualStyleBackColor = true;
c.Text = text;
c.Tag = tag;
c.CheckedChanged += new EventHandler(checkbox_CheckedChanged); //mxd
// Add to list
this.Controls.Add(c);
@ -138,5 +139,10 @@ namespace CodeImp.DoomBuilder.Controls
e.Graphics.DrawRectangle(p, 0, 0, this.ClientRectangle.Width - 1, this.ClientRectangle.Height - 1);
}
}
//mxd
private void checkbox_CheckedChanged(object sender, EventArgs e) {
if(OnValueChanged != null) OnValueChanged(this, EventArgs.Empty);
}
}
}