mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-01-31 04:40:55 +00:00
@ working on the reference manual
This commit is contained in:
parent
58ed944a46
commit
7c3671eac0
17 changed files with 92 additions and 4 deletions
|
@ -338,6 +338,11 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
|
|
||||||
#region ================== Events
|
#region ================== Events
|
||||||
|
|
||||||
|
public override void OnHelp()
|
||||||
|
{
|
||||||
|
General.ShowHelp("e_brightness.html");
|
||||||
|
}
|
||||||
|
|
||||||
// Mode engages
|
// Mode engages
|
||||||
public override void OnEngage()
|
public override void OnEngage()
|
||||||
{
|
{
|
||||||
|
|
|
@ -155,6 +155,11 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
|
|
||||||
#region ================== Events
|
#region ================== Events
|
||||||
|
|
||||||
|
public override void OnHelp()
|
||||||
|
{
|
||||||
|
General.ShowHelp("e_curvelinedefs.html");
|
||||||
|
}
|
||||||
|
|
||||||
// Cancelled
|
// Cancelled
|
||||||
public override void OnCancel()
|
public override void OnCancel()
|
||||||
{
|
{
|
||||||
|
|
|
@ -351,6 +351,11 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
|
|
||||||
#region ================== Events
|
#region ================== Events
|
||||||
|
|
||||||
|
public override void OnHelp()
|
||||||
|
{
|
||||||
|
General.ShowHelp("e_drawgeometry.html");
|
||||||
|
}
|
||||||
|
|
||||||
// Engaging
|
// Engaging
|
||||||
public override void OnEngage()
|
public override void OnEngage()
|
||||||
{
|
{
|
||||||
|
|
|
@ -598,6 +598,11 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
|
|
||||||
#region ================== Events
|
#region ================== Events
|
||||||
|
|
||||||
|
public override void OnHelp()
|
||||||
|
{
|
||||||
|
General.ShowHelp("e_editselection.html");
|
||||||
|
}
|
||||||
|
|
||||||
// Mode engages
|
// Mode engages
|
||||||
public override void OnEngage()
|
public override void OnEngage()
|
||||||
{
|
{
|
||||||
|
|
|
@ -64,6 +64,11 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
|
|
||||||
#region ================== Events
|
#region ================== Events
|
||||||
|
|
||||||
|
public override void OnHelp()
|
||||||
|
{
|
||||||
|
General.ShowHelp("e_mapanalysis.html");
|
||||||
|
}
|
||||||
|
|
||||||
// Cancelled
|
// Cancelled
|
||||||
public override void OnCancel()
|
public override void OnCancel()
|
||||||
{
|
{
|
||||||
|
|
|
@ -64,6 +64,11 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
|
|
||||||
#region ================== Events
|
#region ================== Events
|
||||||
|
|
||||||
|
public override void OnHelp()
|
||||||
|
{
|
||||||
|
General.ShowHelp("e_findreplace.html");
|
||||||
|
}
|
||||||
|
|
||||||
// Cancelled
|
// Cancelled
|
||||||
public override void OnCancel()
|
public override void OnCancel()
|
||||||
{
|
{
|
||||||
|
|
|
@ -384,6 +384,11 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
|
|
||||||
#region ================== Events
|
#region ================== Events
|
||||||
|
|
||||||
|
public override void OnHelp()
|
||||||
|
{
|
||||||
|
General.ShowHelp("e_sectors.html");
|
||||||
|
}
|
||||||
|
|
||||||
// Cancel mode
|
// Cancel mode
|
||||||
public override void OnCancel()
|
public override void OnCancel()
|
||||||
{
|
{
|
||||||
|
|
|
@ -76,6 +76,11 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
|
|
||||||
#region ================== Methods
|
#region ================== Methods
|
||||||
|
|
||||||
|
public override void OnHelp()
|
||||||
|
{
|
||||||
|
General.ShowHelp("e_things.html");
|
||||||
|
}
|
||||||
|
|
||||||
// Cancel mode
|
// Cancel mode
|
||||||
public override void OnCancel()
|
public override void OnCancel()
|
||||||
{
|
{
|
||||||
|
|
|
@ -75,6 +75,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
//
|
//
|
||||||
// vertices
|
// vertices
|
||||||
//
|
//
|
||||||
|
this.vertices.AllowDecimal = false;
|
||||||
this.vertices.AllowNegative = false;
|
this.vertices.AllowNegative = false;
|
||||||
this.vertices.AllowRelative = false;
|
this.vertices.AllowRelative = false;
|
||||||
this.vertices.ImeMode = System.Windows.Forms.ImeMode.Off;
|
this.vertices.ImeMode = System.Windows.Forms.ImeMode.Off;
|
||||||
|
@ -88,6 +89,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
//
|
//
|
||||||
// distance
|
// distance
|
||||||
//
|
//
|
||||||
|
this.distance.AllowDecimal = false;
|
||||||
this.distance.AllowNegative = false;
|
this.distance.AllowNegative = false;
|
||||||
this.distance.AllowRelative = false;
|
this.distance.AllowRelative = false;
|
||||||
this.distance.ImeMode = System.Windows.Forms.ImeMode.Off;
|
this.distance.ImeMode = System.Windows.Forms.ImeMode.Off;
|
||||||
|
@ -101,6 +103,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
//
|
//
|
||||||
// angle
|
// angle
|
||||||
//
|
//
|
||||||
|
this.angle.AllowDecimal = false;
|
||||||
this.angle.AllowNegative = false;
|
this.angle.AllowNegative = false;
|
||||||
this.angle.AllowRelative = false;
|
this.angle.AllowRelative = false;
|
||||||
this.angle.ImeMode = System.Windows.Forms.ImeMode.Off;
|
this.angle.ImeMode = System.Windows.Forms.ImeMode.Off;
|
||||||
|
@ -226,6 +229,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
|
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
|
||||||
this.Text = "Curve Linedefs";
|
this.Text = "Curve Linedefs";
|
||||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.CurveLinedefsForm_FormClosing);
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.CurveLinedefsForm_FormClosing);
|
||||||
|
this.HelpRequested += new System.Windows.Forms.HelpEventHandler(this.CurveLinedefsForm_HelpRequested);
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
this.PerformLayout();
|
this.PerformLayout();
|
||||||
|
|
||||||
|
|
|
@ -203,6 +203,11 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
General.Editing.AcceptMode();
|
General.Editing.AcceptMode();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void CurveLinedefsForm_HelpRequested(object sender, HelpEventArgs hlpevent)
|
||||||
|
{
|
||||||
|
General.ShowHelp("e_curvelinedefs.html");
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -184,6 +184,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
|
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
|
||||||
this.Text = "Map Analysis";
|
this.Text = "Map Analysis";
|
||||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ErrorCheckForm_FormClosing);
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.ErrorCheckForm_FormClosing);
|
||||||
|
this.HelpRequested += new System.Windows.Forms.HelpEventHandler(this.ErrorCheckForm_HelpRequested);
|
||||||
this.resultspanel.ResumeLayout(false);
|
this.resultspanel.ResumeLayout(false);
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
|
|
|
@ -459,6 +459,11 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void ErrorCheckForm_HelpRequested(object sender, HelpEventArgs hlpevent)
|
||||||
|
{
|
||||||
|
General.ShowHelp("e_mapanalysis.html");
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -284,6 +284,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
this.Text = "Find and Replace";
|
this.Text = "Find and Replace";
|
||||||
this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.FindReplaceForm_KeyUp);
|
this.KeyUp += new System.Windows.Forms.KeyEventHandler(this.FindReplaceForm_KeyUp);
|
||||||
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FindReplaceForm_FormClosing);
|
this.FormClosing += new System.Windows.Forms.FormClosingEventHandler(this.FindReplaceForm_FormClosing);
|
||||||
|
this.HelpRequested += new System.Windows.Forms.HelpEventHandler(this.FindReplaceForm_HelpRequested);
|
||||||
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FindReplaceForm_KeyDown);
|
this.KeyDown += new System.Windows.Forms.KeyEventHandler(this.FindReplaceForm_KeyDown);
|
||||||
this.resultspanel.ResumeLayout(false);
|
this.resultspanel.ResumeLayout(false);
|
||||||
this.resultspanel.PerformLayout();
|
this.resultspanel.PerformLayout();
|
||||||
|
|
|
@ -329,6 +329,11 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void FindReplaceForm_HelpRequested(object sender, HelpEventArgs hlpevent)
|
||||||
|
{
|
||||||
|
General.ShowHelp("e_findreplace.html");
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region ================== Methods
|
#region ================== Methods
|
||||||
|
|
|
@ -137,6 +137,7 @@ namespace CodeImp.DoomBuilder.BuilderModes.Interface
|
||||||
this.ShowIcon = false;
|
this.ShowIcon = false;
|
||||||
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
||||||
this.Text = "Make Door";
|
this.Text = "Make Door";
|
||||||
|
this.HelpRequested += new System.Windows.Forms.HelpEventHandler(this.MakeDoorForm_HelpRequested);
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,6 +91,11 @@ namespace CodeImp.DoomBuilder.BuilderModes.Interface
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void MakeDoorForm_HelpRequested(object sender, HelpEventArgs hlpevent)
|
||||||
|
{
|
||||||
|
General.ShowHelp("e_sectors.html");
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -1502,7 +1502,28 @@ namespace CodeImp.DoomBuilder
|
||||||
// This shows the reference manual
|
// This shows the reference manual
|
||||||
public static void ShowHelp(string pagefile)
|
public static void ShowHelp(string pagefile)
|
||||||
{
|
{
|
||||||
Help.ShowHelp(mainwindow, Path.Combine(apppath, HELP_FILE), HelpNavigator.Topic, pagefile);
|
ShowHelp(pagefile, HELP_FILE);
|
||||||
|
}
|
||||||
|
|
||||||
|
// This shows the reference manual
|
||||||
|
public static void ShowHelp(string pagefile, string chmfile)
|
||||||
|
{
|
||||||
|
// Check if the file can be found in the root
|
||||||
|
string filepathname = Path.Combine(apppath, chmfile);
|
||||||
|
if(!File.Exists(filepathname))
|
||||||
|
{
|
||||||
|
// Check if the file exists in the plugins directory
|
||||||
|
filepathname = Path.Combine(pluginspath, chmfile);
|
||||||
|
if(!File.Exists(filepathname))
|
||||||
|
{
|
||||||
|
// Fail
|
||||||
|
WriteLogLine("ERROR: Can't find the help file \"" + chmfile + "\"");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Show help file
|
||||||
|
Help.ShowHelp(mainwindow, filepathname, HelpNavigator.Topic, pagefile);
|
||||||
}
|
}
|
||||||
|
|
||||||
// This returns a unique temp filename
|
// This returns a unique temp filename
|
||||||
|
|
Loading…
Reference in a new issue