mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 04:12:12 +00:00
Map Analysis form: fixed a crash caused by running analysis, opening another map then trying to run analysis again.
Map Analysis form: error checks are now alphabetically sorted. Map Analysis form: added "Toggle All" check box. Internal: CheckboxArrayControl now has Sort() method. More fixes in ZDoom_DECORATE.cfg
This commit is contained in:
parent
c84ac24b50
commit
146fc3f4a1
5 changed files with 59 additions and 15 deletions
|
@ -29,12 +29,12 @@ keywords
|
|||
A_ClearLastHeard = "A_ClearLastHeard";
|
||||
A_ClearSoundTarget = "A_ClearSoundTarget";
|
||||
A_ClearTarget = "A_ClearTarget";
|
||||
A_DamageChildren = "A_DamageChildren(int amount[, string type])";
|
||||
A_DamageMaster = "A_DamageMaster(int amount[, string type])";
|
||||
A_DamageSelf = "A_DamageSelf(int amount, string damagetype)";
|
||||
A_DamageSiblings = "A_DamageSiblings(int amount[, string type])";
|
||||
A_DamageTarget = "A_DamageTarget(int amount, string damagetype)";
|
||||
A_DamageTracer = "A_DamageTracer(int amount, string damagetype)";
|
||||
A_DamageChildren = "A_DamageChildren(int amount[, string damagetype[, int flags]])\namount: amount of damage to inflict. Use a negative value to heal.\ndamagetype: the type of damage to inflict. Default is 'None'.\nflags: DMSS flags.";
|
||||
A_DamageMaster = "A_DamageMaster(int amount[, string damagetype[, int flags]])\namount: amount of damage to inflict. Use a negative value to heal.\ndamagetype: the type of damage to inflict. Default is 'None'.\nflags: DMSS flags.";
|
||||
A_DamageSelf = "A_DamageSelf(int amount[, string damagetype[, int flags]])\namount: amount of damage to inflict. Use a negative value to heal.\ndamagetype: the type of damage to inflict. Default is 'None'.\nflags: DMSS flags.";
|
||||
A_DamageSiblings = "A_DamageSiblings(int amount[, string damagetype[, int flags]])\namount: amount of damage to inflict. Use a negative value to heal.\ndamagetype: the type of damage to inflict. Default is 'None'.\nflags: DMSS flags.";
|
||||
A_DamageTarget = "A_DamageTarget(int amount[, string damagetype[, int flags]])\namount: amount of damage to inflict. Use a negative value to heal.\ndamagetype: the type of damage to inflict. Default is 'None'.\nflags: DMSS flags.";
|
||||
A_DamageTracer = "A_DamageTracer(int amount[, string damagetype[, int flags]])\namount: amount of damage to inflict. Use a negative value to heal.\ndamagetype: the type of damage to inflict. Default is 'None'.\nflags: DMSS flags.";
|
||||
A_Die = "A_Die[(string damagetype)]";
|
||||
A_FaceTarget = "A_FaceTarget[(float angle[, float pitch])]";
|
||||
A_FaceMaster = "A_FaceMaster[(float angle[, float pitch])]";
|
||||
|
@ -418,6 +418,10 @@ constants
|
|||
CLOFF_CHECKPARTIAL;
|
||||
CLOFF_SKIPOBSTACLES;
|
||||
CLOFF_NOAIM;
|
||||
//A_Damage flags
|
||||
DMSS_FOILINVUL;
|
||||
DMSS_AFFECTARMOR;
|
||||
DMSS_KILL;
|
||||
//A_FireCustomMissile flags
|
||||
FPF_AIMATANGLE;
|
||||
FPF_TRANSFERTRANSLATION;
|
||||
|
|
|
@ -123,6 +123,18 @@ namespace CodeImp.DoomBuilder.Controls
|
|||
}
|
||||
}
|
||||
|
||||
//mxd
|
||||
public void Sort()
|
||||
{
|
||||
checkboxes.Sort(CheckboxesComparison);
|
||||
}
|
||||
|
||||
//mxd
|
||||
private int CheckboxesComparison(CheckBox cb1, CheckBox cb2)
|
||||
{
|
||||
return String.Compare(cb1.Text, cb2.Text, StringComparison.Ordinal);
|
||||
}
|
||||
|
||||
// When layout must change
|
||||
private void CheckboxArrayControl_Layout(object sender, LayoutEventArgs e)
|
||||
{
|
||||
|
|
|
@ -52,6 +52,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
this.copytoclipboard = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.saveFileDialog = new System.Windows.Forms.SaveFileDialog();
|
||||
this.exportresults = new CodeImp.DoomBuilder.Controls.SplitButton();
|
||||
this.toggleall = new System.Windows.Forms.CheckBox();
|
||||
this.resultcontextmenustrip.SuspendLayout();
|
||||
this.resultspanel.SuspendLayout();
|
||||
this.exporttrsultsmenustrip.SuspendLayout();
|
||||
|
@ -64,10 +65,10 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
this.checks.AutoScroll = true;
|
||||
this.checks.AutoSize = true;
|
||||
this.checks.Columns = 2;
|
||||
this.checks.Location = new System.Drawing.Point(10, 15);
|
||||
this.checks.Location = new System.Drawing.Point(10, 32);
|
||||
this.checks.Margin = new System.Windows.Forms.Padding(1);
|
||||
this.checks.Name = "checks";
|
||||
this.checks.Size = new System.Drawing.Size(360, 63);
|
||||
this.checks.Size = new System.Drawing.Size(360, 53);
|
||||
this.checks.TabIndex = 0;
|
||||
this.checks.VerticalSpacing = 1;
|
||||
//
|
||||
|
@ -113,7 +114,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
this.toolStripSeparator1,
|
||||
this.resultcopytoclipboard});
|
||||
this.resultcontextmenustrip.Name = "resultcontextmenustrip";
|
||||
this.resultcontextmenustrip.Size = new System.Drawing.Size(232, 142);
|
||||
this.resultcontextmenustrip.Size = new System.Drawing.Size(232, 120);
|
||||
this.resultcontextmenustrip.Opening += new System.ComponentModel.CancelEventHandler(this.resultcontextmenustrip_Opening);
|
||||
//
|
||||
// resultshowall
|
||||
|
@ -304,6 +305,19 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
this.exportresults.Text = "Export to File";
|
||||
this.exportresults.UseVisualStyleBackColor = true;
|
||||
//
|
||||
// toggleall
|
||||
//
|
||||
this.toggleall.AutoSize = true;
|
||||
this.toggleall.Checked = true;
|
||||
this.toggleall.CheckState = System.Windows.Forms.CheckState.Checked;
|
||||
this.toggleall.Location = new System.Drawing.Point(10, 12);
|
||||
this.toggleall.Name = "toggleall";
|
||||
this.toggleall.Size = new System.Drawing.Size(71, 18);
|
||||
this.toggleall.TabIndex = 5;
|
||||
this.toggleall.Text = "Toggle All";
|
||||
this.toggleall.UseVisualStyleBackColor = true;
|
||||
this.toggleall.CheckedChanged += new System.EventHandler(this.toggleall_CheckedChanged);
|
||||
//
|
||||
// ErrorCheckForm
|
||||
//
|
||||
this.AcceptButton = this.buttoncheck;
|
||||
|
@ -311,6 +325,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
|
||||
this.CancelButton = this.closebutton;
|
||||
this.ClientSize = new System.Drawing.Size(380, 566);
|
||||
this.Controls.Add(this.toggleall);
|
||||
this.Controls.Add(this.exportresults);
|
||||
this.Controls.Add(this.closebutton);
|
||||
this.Controls.Add(this.resultspanel);
|
||||
|
@ -362,5 +377,6 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
private System.Windows.Forms.ToolStripMenuItem resultcopytoclipboard;
|
||||
private System.Windows.Forms.ToolStripSeparator toolStripSeparator1;
|
||||
private System.Windows.Forms.ToolStripMenuItem resulthidecurrent;
|
||||
private System.Windows.Forms.CheckBox toggleall;
|
||||
}
|
||||
}
|
|
@ -88,6 +88,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
c.Checked = checkerattr.DefaultChecked;
|
||||
}
|
||||
}
|
||||
checks.Sort(); //mxd
|
||||
|
||||
//mxd. Store initial height
|
||||
initialsize = this.Size;
|
||||
|
@ -272,7 +273,10 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
}
|
||||
|
||||
ClearSelectedResult();
|
||||
applyToAll = cbApplyToAll.Checked; //mxd
|
||||
|
||||
//mxd. Clear results
|
||||
resultslist.Clear();
|
||||
results.Items.Clear();
|
||||
|
||||
this.Hide();
|
||||
}
|
||||
|
@ -401,11 +405,13 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
// Window closing
|
||||
private void ErrorCheckForm_FormClosing(object sender, FormClosingEventArgs e)
|
||||
{
|
||||
//mxd. Store export mode
|
||||
//mxd. Store persistent settings
|
||||
exportmode = exportresults.CurrentMenuStripItem;
|
||||
applyToAll = cbApplyToAll.Checked;
|
||||
|
||||
//mxd. Clear stored results
|
||||
//mxd. Clear results
|
||||
resultslist.Clear();
|
||||
results.Items.Clear();
|
||||
|
||||
// If the user closes the form, then just cancel the mode
|
||||
if(e.CloseReason == CloseReason.UserClosing)
|
||||
|
@ -592,6 +598,12 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
General.Interface.DisplayStatus(StatusType.Info, "Analysis results copied to clipboard.");
|
||||
}
|
||||
|
||||
//mxd
|
||||
private void toggleall_CheckedChanged(object sender, EventArgs e)
|
||||
{
|
||||
foreach(CheckBox cb in checks.Checkboxes) cb.Checked = toggleall.Checked;
|
||||
}
|
||||
|
||||
private void ErrorCheckForm_HelpRequested(object sender, HelpEventArgs hlpevent)
|
||||
{
|
||||
General.ShowHelp("e_mapanalysis.html");
|
||||
|
|
|
@ -117,15 +117,15 @@
|
|||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="checks.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="resultcontextmenustrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>321, 17</value>
|
||||
</metadata>
|
||||
<metadata name="progress.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="progress.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
<metadata name="closebutton.Locked" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||
<value>True</value>
|
||||
</metadata>
|
||||
|
|
Loading…
Reference in a new issue