feat: add new ConsoleWindow

This commit is contained in:
goat 2021-07-17 22:45:59 +02:00
parent dc992e15ae
commit c287e28832
No known key found for this signature in database
GPG key ID: F18F057873895461
5 changed files with 529 additions and 190 deletions

View file

@ -29,7 +29,7 @@ namespace Dalamud.Interface.Internal
private readonly CreditsWindow creditsWindow;
private readonly DataWindow dataWindow;
private readonly GamepadModeNotifierWindow gamepadModeNotifierWindow;
private readonly LogWindow logWindow;
private readonly ConsoleWindow consoleWindow;
private readonly PluginStatWindow pluginStatWindow;
private readonly PluginInstallerWindow pluginWindow;
private readonly ScratchpadWindow scratchpadWindow;
@ -60,7 +60,7 @@ namespace Dalamud.Interface.Internal
this.creditsWindow = new CreditsWindow(dalamud) { IsOpen = false };
this.dataWindow = new DataWindow(dalamud) { IsOpen = false };
this.gamepadModeNotifierWindow = new GamepadModeNotifierWindow();
this.logWindow = new LogWindow(dalamud) { IsOpen = this.dalamud.Configuration.LogOpenAtStartup };
this.consoleWindow = new ConsoleWindow { IsOpen = this.dalamud.Configuration.LogOpenAtStartup };
this.pluginStatWindow = new PluginStatWindow(dalamud) { IsOpen = false };
this.pluginWindow = new PluginInstallerWindow(dalamud) { IsOpen = false };
this.scratchpadWindow = new ScratchpadWindow(dalamud) { IsOpen = false };
@ -72,7 +72,7 @@ namespace Dalamud.Interface.Internal
this.windowSystem.AddWindow(this.creditsWindow);
this.windowSystem.AddWindow(this.dataWindow);
this.windowSystem.AddWindow(this.gamepadModeNotifierWindow);
this.windowSystem.AddWindow(this.logWindow);
this.windowSystem.AddWindow(this.consoleWindow);
this.windowSystem.AddWindow(this.pluginStatWindow);
this.windowSystem.AddWindow(this.pluginWindow);
this.windowSystem.AddWindow(this.scratchpadWindow);
@ -105,7 +105,7 @@ namespace Dalamud.Interface.Internal
this.windowSystem.RemoveAllWindows();
this.creditsWindow.Dispose();
this.logWindow.Dispose();
this.consoleWindow.Dispose();
this.scratchpadWindow.Dispose();
}
@ -157,7 +157,7 @@ namespace Dalamud.Interface.Internal
/// <summary>
/// Opens the <see cref="LogWindow"/>.
/// </summary>
public void OpenLogWindow() => this.logWindow.IsOpen = true;
public void OpenLogWindow() => this.consoleWindow.IsOpen = true;
/// <summary>
/// Opens the <see cref="PluginStatWindow"/>.
@ -229,7 +229,7 @@ namespace Dalamud.Interface.Internal
/// <summary>
/// Toggles the <see cref="LogWindow"/>.
/// </summary>
public void ToggleLogWindow() => this.logWindow.Toggle();
public void ToggleLogWindow() => this.consoleWindow.Toggle();
/// <summary>
/// Toggles the <see cref="PluginStatWindow"/>.