- 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
42 lines
1.8 KiB
XML
42 lines
1.8 KiB
XML
<Window xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:vm="using:LANCommander.Launcher.Avalonia.ViewModels"
|
|
xmlns:components="using:LANCommander.Launcher.Avalonia.Views.Components"
|
|
x:Class="LANCommander.Launcher.Avalonia.Views.PowerShellConsoleWindow"
|
|
x:DataType="vm:PowerShellConsoleViewModel"
|
|
Title="{Binding Title}"
|
|
Width="1000"
|
|
Height="650"
|
|
WindowStartupLocation="CenterOwner"
|
|
Background="#1E1E1E">
|
|
|
|
<Grid RowDefinitions="Auto,*">
|
|
<!-- Header -->
|
|
<Border Grid.Row="0"
|
|
Padding="12,8"
|
|
Background="#2D2D2D">
|
|
<Grid ColumnDefinitions="*,Auto">
|
|
<StackPanel>
|
|
<TextBlock Text="{Binding Title}"
|
|
FontSize="16"
|
|
FontWeight="SemiBold"
|
|
Foreground="White" />
|
|
<TextBlock Text="{Binding WorkingDirectory}"
|
|
FontSize="11"
|
|
Foreground="#888888"
|
|
IsVisible="{Binding WorkingDirectory, Converter={x:Static StringConverters.IsNotNullOrEmpty}}" />
|
|
</StackPanel>
|
|
<Button Grid.Column="1"
|
|
Content="✕ Close"
|
|
Command="{Binding CloseCommand}"
|
|
Padding="12,6"
|
|
Background="#3C3C3C"
|
|
Foreground="#CCCCCC" />
|
|
</Grid>
|
|
</Border>
|
|
|
|
<!-- Script Console -->
|
|
<components:ScriptConsoleControl Grid.Row="1"
|
|
x:Name="Console" />
|
|
</Grid>
|
|
</Window>
|