From f662ef162572e41115b5a499851e26d6b6cf5e0c Mon Sep 17 00:00:00 2001 From: Sour Date: Tue, 8 Feb 2022 22:19:15 -0500 Subject: [PATCH] Debugger: Added debug log window --- NewUI/Config/Debugger/DebugLogConfig.cs | 4 +- NewUI/Debugger/Utilities/ContextMenuAction.cs | 3 + NewUI/Debugger/Windows/DebugLogWindow.axaml | 33 ++++++++ .../Debugger/Windows/DebugLogWindow.axaml.cs | 75 +++++++++++++++++++ NewUI/Localization/resources.en.xml | 12 ++- NewUI/NewUI.csproj | 3 + NewUI/ViewModels/MainMenuViewModel.cs | 6 ++ NewUI/Windows/LogWindow.axaml | 23 +++--- 8 files changed, 144 insertions(+), 15 deletions(-) create mode 100644 NewUI/Debugger/Windows/DebugLogWindow.axaml create mode 100644 NewUI/Debugger/Windows/DebugLogWindow.axaml.cs diff --git a/NewUI/Config/Debugger/DebugLogConfig.cs b/NewUI/Config/Debugger/DebugLogConfig.cs index 6ffc71cd..2a1d4089 100644 --- a/NewUI/Config/Debugger/DebugLogConfig.cs +++ b/NewUI/Config/Debugger/DebugLogConfig.cs @@ -2,9 +2,7 @@ namespace Mesen.Config { - public class DebugLogConfig + public class DebugLogConfig : BaseWindowConfig { - public Size WindowSize = new Size(0, 0); - public Point WindowLocation; } } \ No newline at end of file diff --git a/NewUI/Debugger/Utilities/ContextMenuAction.cs b/NewUI/Debugger/Utilities/ContextMenuAction.cs index f0b86744..cffdc1df 100644 --- a/NewUI/Debugger/Utilities/ContextMenuAction.cs +++ b/NewUI/Debugger/Utilities/ContextMenuAction.cs @@ -411,6 +411,9 @@ namespace Mesen.Debugger.Utilities [IconFile("Chip")] OpenAssembler, + + [IconFile("LogWindow")] + OpenDebugLog, [IconFile("Speed")] OpenProfiler, diff --git a/NewUI/Debugger/Windows/DebugLogWindow.axaml b/NewUI/Debugger/Windows/DebugLogWindow.axaml new file mode 100644 index 00000000..db9270a5 --- /dev/null +++ b/NewUI/Debugger/Windows/DebugLogWindow.axaml @@ -0,0 +1,33 @@ + + + + + + +