mirror of
https://github.com/chev2/botw-toolset.git
synced 2025-12-18 05:53:18 +00:00
Debugging changes
Add LogStatus method to BOTWConsole
This commit is contained in:
parent
4043969f15
commit
3faa4b3d90
1 changed files with 8 additions and 0 deletions
|
|
@ -7,11 +7,14 @@ namespace BOTWToolset.Debugging
|
||||||
static class BOTWConsole
|
static class BOTWConsole
|
||||||
{
|
{
|
||||||
private readonly static TextBox _console;
|
private readonly static TextBox _console;
|
||||||
|
private readonly static Label _status;
|
||||||
static BOTWConsole()
|
static BOTWConsole()
|
||||||
{
|
{
|
||||||
var dashboard = Application.Current.Windows.OfType<Dashboard>().ToArray()[0];
|
var dashboard = Application.Current.Windows.OfType<Dashboard>().ToArray()[0];
|
||||||
var tabControl = dashboard.tabTSCB;
|
var tabControl = dashboard.tabTSCB;
|
||||||
_console = tabControl.TSCBConsole;
|
_console = tabControl.TSCBConsole;
|
||||||
|
|
||||||
|
_status = dashboard.LabelStatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void Log(object text)
|
public static void Log(object text)
|
||||||
|
|
@ -29,5 +32,10 @@ namespace BOTWToolset.Debugging
|
||||||
{
|
{
|
||||||
Log("[ERROR]" + text);
|
Log("[ERROR]" + text);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void LogStatus(object text)
|
||||||
|
{
|
||||||
|
_status.Content = text.ToString();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue