Skip to content

Commit

Permalink
#if DEBUG
Browse files Browse the repository at this point in the history
  • Loading branch information
mbnq committed Sep 23, 2024
1 parent 9ecec4b commit ec99b19
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 19 deletions.
23 changes: 11 additions & 12 deletions core/mbConsole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,13 +134,12 @@ private void InitializeComponent()
"test"
},

#if DEBUG
Enabled = true,
#else
Enabled = false,
Text = " Input n/a in Release version",
#endif

#if DEBUG
Enabled = true,
#else
Enabled = false,
Text = " Input n/a in Release version",
#endif
MaxLength = 128,
ForeColor = Color.White,
BackColor = Color.Black,
Expand Down Expand Up @@ -170,11 +169,11 @@ private void InitializeComponent()
displayTexts.Add("CPU: -- %");
displayTextVisibility.Add(true);

#if DEBUG
displayTexts.Add("Debug: --");
#else
displayTexts.Add("");
#endif
#if DEBUG
displayTexts.Add("Debug: --");
#else
displayTexts.Add("");
#endif

displayTextVisibility.Add(true);

Expand Down
14 changes: 12 additions & 2 deletions core/mbControlPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,14 @@ MaterialSwitch CreateCheckBox(string text, bool isEnabled, EventHandler checkedC
mbPanelForTab2.Controls.Add(mbSplashCheckBox);
mbPanelForTab2.Controls.Add(mbAOnTopCheckBox);
mbPanelForTab2.Controls.Add(mbAutoSaveCheckbox);

#if DEBUG
mbPanelForTab2.Controls.Add(mbDebugonCheckbox);
#else
mbIsDebugOn = false;
mbFnc.mbSpacer2(mbPanelForTab2.Controls, 20, "");
#endif

mbPanelForTab2.Controls.Add(mbEnableZoomModeCheckBox);

mbFnc.mbSpacer2(mbPanelForTab2.Controls, 20, "");
Expand All @@ -667,13 +674,16 @@ MaterialSwitch CreateCheckBox(string text, bool isEnabled, EventHandler checkedC
mbPanelForTab3.Controls.Add(mbMbToolsDropDown);

mbFnc.mbSpacer2(mbPanelForTab3.Controls, 20, "");

#if DEBUG
mbPanelForTab3.Controls.Add(debugTestButton);
#endif

mbTab3.Controls.Add(mbPanelForTab3);

/* --- --- --- --- --- --- --- --- --- --- */

#endregion
#endregion

#region ToolTips
/* --- --- --- Tooltips --- --- --- */
Expand Down Expand Up @@ -727,7 +737,7 @@ void mbCreateToolTip(Control inputControl, string inputText = "Missing ToolTip T
#endregion
}
/* --- --- --- --- --- --- --- --- --- --- --- */
#endregion
#endregion

#region Custom Overlay Crosshair

Expand Down
10 changes: 5 additions & 5 deletions core/mbSplashScreen.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit ec99b19

Please sign in to comment.