Skip to content

Commit

Permalink
Release build debug menu fix
Browse files Browse the repository at this point in the history
  • Loading branch information
grimdoomer committed Apr 28, 2020
1 parent 2ae1aa6 commit a7d3712
Showing 1 changed file with 19 additions and 14 deletions.
33 changes: 19 additions & 14 deletions DeadRisingArcTool/Forms/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ public MainForm()
{
InitializeComponent();

#if !DEBUG
// Hide the debug menu.
this.dEBUGToolStripMenuItem.Visible = false;
#endif

// Set the tag properties of the tree view context menu options.
this.extractToolStripMenuItem.Tag = TreeViewMenuState.PerFile;
this.sortByToolStripMenuItem.Tag = TreeViewMenuState.AnyFile;
Expand Down Expand Up @@ -87,7 +92,7 @@ private void MainForm_Load(object sender, EventArgs e)
}
}

#region MenuStrip Buttons
#region MenuStrip Buttons

private void openToolStripMenuItem_Click(object sender, EventArgs e)
{
Expand Down Expand Up @@ -143,9 +148,9 @@ private void exitToolStripMenuItem_Click(object sender, EventArgs e)
Application.Exit();
}

#endregion
#endregion

#region AsyncWorker: Arc loading
#region AsyncWorker: Arc loading

private void AsyncWorker_LoadArcFolderCompleted(object sender, RunWorkerCompletedEventArgs e)
{
Expand Down Expand Up @@ -242,9 +247,9 @@ private void AsyncWorker_LoadArcFolder(object sender, DoWorkEventArgs e)
e.Result = ArcFileCollection.Instance.BuildTreeNodeArray(TreeNodeOrder.FolderPath);
}

#endregion
#endregion

#region Utilities
#region Utilities

private static string[] FindArcFilesInFolder(string folderPath, bool recursive, bool includeNonArcFiles)
{
Expand Down Expand Up @@ -279,9 +284,9 @@ private static string[] FindArcFilesInFolder(string folderPath, bool recursive,
return filesFound.ToArray();
}

#endregion
#endregion

#region TreeView
#region TreeView

private void treeView1_AfterSelect(object sender, TreeViewEventArgs e)
{
Expand Down Expand Up @@ -510,9 +515,9 @@ private void SetTreeViewSortOrder(TreeNodeOrder order)
this.Enabled = true;
}

#endregion
#endregion

#region TreeView ToolStrip
#region TreeView ToolStrip

private void renderToolStripMenuItem_Click(object sender, EventArgs e)
{
Expand Down Expand Up @@ -586,9 +591,9 @@ private DatumIndex[] BuildModelListFromTreeNode(TreeNode node)
return modelDatums.ToArray();
}

#endregion
#endregion

#region DEBUG Menu
#region DEBUG Menu

private void texturesToolStripMenuItem_Click(object sender, EventArgs e)
{
Expand Down Expand Up @@ -650,9 +655,9 @@ private void restoreBackupsToolStripMenuItem_Click(object sender, EventArgs e)
Application.Restart();
}

#endregion
#endregion

#region IResourceEditorOwner
#region IResourceEditorOwner

public void SetUIState(bool enabled)
{
Expand All @@ -668,6 +673,6 @@ public DatumIndex[] GetDatumsToUpdateForResource(string fileName)
return ArcFileCollection.Instance.GetDatumsForFileName(fileName);
}

#endregion
#endregion
}
}

0 comments on commit a7d3712

Please sign in to comment.