From 3faa4b3d90dca9a031ff38a2e7b47e771d32c22f Mon Sep 17 00:00:00 2001 From: Chev <11602755+chev2@users.noreply.github.com> Date: Sun, 10 Jan 2021 20:04:53 -0800 Subject: [PATCH] Debugging changes Add LogStatus method to BOTWConsole --- botw-toolset/Debugging/BOTWConsole.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/botw-toolset/Debugging/BOTWConsole.cs b/botw-toolset/Debugging/BOTWConsole.cs index 425327e..ec2dc85 100644 --- a/botw-toolset/Debugging/BOTWConsole.cs +++ b/botw-toolset/Debugging/BOTWConsole.cs @@ -7,11 +7,14 @@ namespace BOTWToolset.Debugging static class BOTWConsole { private readonly static TextBox _console; + private readonly static Label _status; static BOTWConsole() { var dashboard = Application.Current.Windows.OfType().ToArray()[0]; var tabControl = dashboard.tabTSCB; _console = tabControl.TSCBConsole; + + _status = dashboard.LabelStatus; } public static void Log(object text) @@ -29,5 +32,10 @@ namespace BOTWToolset.Debugging { Log("[ERROR]" + text); } + + public static void LogStatus(object text) + { + _status.Content = text.ToString(); + } } }