- Create ScriptConsoleControl for displaying script output and interactive input - Create PowerShellConsoleWindow to host the script console - Wire up ScriptDebugger events to console control for real-time output - Add debug scripts menu to GameActionBarView (visible when EnableScriptDebugging=true) - Scripts run via SDK's ScriptClient and stay interactive after completion - Fix MediaImporter.ExistsAsync to check database record instead of file existence - Remove Iciclecreek.Avalonia.Terminal dependency, revert Avalonia to 11.2.3
22 lines
585 B
C#
22 lines
585 B
C#
using System;
|
|
using Avalonia.Controls;
|
|
using LANCommander.Launcher.Avalonia.ViewModels;
|
|
using LANCommander.Launcher.Avalonia.Views.Components;
|
|
using LANCommander.SDK.PowerShell;
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace LANCommander.Launcher.Avalonia.Views;
|
|
|
|
public partial class PowerShellConsoleWindow : Window
|
|
{
|
|
public PowerShellConsoleWindow()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
|
|
/// <summary>
|
|
/// Gets the console control for wiring up debugger events
|
|
/// </summary>
|
|
public ScriptConsoleControl ConsoleControl => Console;
|
|
}
|
|
|