From 63655d18c59662b0d71d5580739cad0685297f53 Mon Sep 17 00:00:00 2001 From: xxSeys1 Date: Thu, 10 Apr 2025 21:31:12 +0200 Subject: [PATCH 1/3] add a info message on Debug Log pause on warning --- Source/Editor/Windows/DebugLogWindow.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Source/Editor/Windows/DebugLogWindow.cs b/Source/Editor/Windows/DebugLogWindow.cs index fd6b333ef..a21ad14b8 100644 --- a/Source/Editor/Windows/DebugLogWindow.cs +++ b/Source/Editor/Windows/DebugLogWindow.cs @@ -335,12 +335,12 @@ namespace FlaxEditor.Windows { Parent = this, }; - toolstrip.AddButton("Clear", Clear).LinkTooltip("Clears all log entries"); + toolstrip.AddButton("Clear", Clear).LinkTooltip("Clears all log entries."); _clearOnPlayButton = (ToolStripButton)toolstrip.AddButton("Clear on Play", () => { editor.Options.Options.Interface.DebugLogClearOnPlay = _clearOnPlayButton.Checked; editor.Options.Apply(editor.Options.Options); - }).SetAutoCheck(true).LinkTooltip("Clears all log entries on enter playmode"); + }).SetAutoCheck(true).LinkTooltip("Clears all log entries on enter playmode."); _collapseLogsButton = (ToolStripButton)toolstrip.AddButton("Collapse", () => { editor.Options.Options.Interface.DebugLogCollapse = _collapseLogsButton.Checked; @@ -350,26 +350,26 @@ namespace FlaxEditor.Windows { editor.Options.Options.Interface.DebugLogPauseOnError = _pauseOnErrorButton.Checked; editor.Options.Apply(editor.Options.Options); - }).SetAutoCheck(true).LinkTooltip("Performs auto pause on error"); + }).SetAutoCheck(true).LinkTooltip("Performs auto pause on error."); toolstrip.AddSeparator(); _groupButtons[0] = (ToolStripButton)toolstrip.AddButton(editor.Icons.Error32, () => { UpdateLogTypeVisibility(LogGroup.Error, _groupButtons[0].Checked); editor.Options.Options.Interface.DebugLogShowErrorMessages = _groupButtons[0].Checked; editor.Options.Apply(editor.Options.Options); - }).SetAutoCheck(true).LinkTooltip("Shows/hides error messages"); + }).SetAutoCheck(true).LinkTooltip("Shows/hides error messages."); _groupButtons[1] = (ToolStripButton)toolstrip.AddButton(editor.Icons.Warning32, () => { UpdateLogTypeVisibility(LogGroup.Warning, _groupButtons[1].Checked); editor.Options.Options.Interface.DebugLogShowWarningMessages = _groupButtons[1].Checked; editor.Options.Apply(editor.Options.Options); - }).SetAutoCheck(true).LinkTooltip("Shows/hides warning messages"); + }).SetAutoCheck(true).LinkTooltip("Shows/hides warning messages."); _groupButtons[2] = (ToolStripButton)toolstrip.AddButton(editor.Icons.Info32, () => { UpdateLogTypeVisibility(LogGroup.Info, _groupButtons[2].Checked); editor.Options.Options.Interface.DebugLogShowInfoMessages = _groupButtons[2].Checked; editor.Options.Apply(editor.Options.Options); - }).SetAutoCheck(true).LinkTooltip("Shows/hides info messages"); + }).SetAutoCheck(true).LinkTooltip("Shows/hides info messages."); UpdateCount(); // Split panel @@ -488,6 +488,7 @@ namespace FlaxEditor.Windows // Pause on Error (we should do it as fast as possible) if (newEntry.Group == LogGroup.Error && _pauseOnErrorButton.Checked && Editor.StateMachine.CurrentState == Editor.StateMachine.PlayingState) { + Debug.Write(LogType.Info, "Pause Play mode on error (toggle this behaviour in the Debug Log panel)."); Editor.Simulation.RequestPausePlay(); } } From 6884df02fd8cb85ae1ade13691409a9a54875cea Mon Sep 17 00:00:00 2001 From: xxSeys1 Date: Thu, 10 Apr 2025 21:34:00 +0200 Subject: [PATCH 2/3] remove trailing . on message --- Source/Editor/Windows/DebugLogWindow.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Editor/Windows/DebugLogWindow.cs b/Source/Editor/Windows/DebugLogWindow.cs index a21ad14b8..c64025491 100644 --- a/Source/Editor/Windows/DebugLogWindow.cs +++ b/Source/Editor/Windows/DebugLogWindow.cs @@ -488,7 +488,7 @@ namespace FlaxEditor.Windows // Pause on Error (we should do it as fast as possible) if (newEntry.Group == LogGroup.Error && _pauseOnErrorButton.Checked && Editor.StateMachine.CurrentState == Editor.StateMachine.PlayingState) { - Debug.Write(LogType.Info, "Pause Play mode on error (toggle this behaviour in the Debug Log panel)."); + Debug.Write(LogType.Info, "Pause Play mode on error (toggle this behaviour in the Debug Log panel)"); Editor.Simulation.RequestPausePlay(); } } From 169d3e964d9e51e074319242a57509b84176bb3d Mon Sep 17 00:00:00 2001 From: Saas Date: Wed, 13 Aug 2025 13:29:13 +0200 Subject: [PATCH 3/3] Switch from Debug.Write to Editor.Log --- Source/Editor/Windows/DebugLogWindow.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Editor/Windows/DebugLogWindow.cs b/Source/Editor/Windows/DebugLogWindow.cs index c64025491..e8d815c28 100644 --- a/Source/Editor/Windows/DebugLogWindow.cs +++ b/Source/Editor/Windows/DebugLogWindow.cs @@ -488,7 +488,7 @@ namespace FlaxEditor.Windows // Pause on Error (we should do it as fast as possible) if (newEntry.Group == LogGroup.Error && _pauseOnErrorButton.Checked && Editor.StateMachine.CurrentState == Editor.StateMachine.PlayingState) { - Debug.Write(LogType.Info, "Pause Play mode on error (toggle this behaviour in the Debug Log panel)"); + Editor.Log("Pause Play mode on error (toggle this behaviour in the Debug Log panel)"); Editor.Simulation.RequestPausePlay(); } }