Changed the project structure to reflect a shift from `Ghost.App` to `Ghost.Editor`, updating namespaces and class names throughout. Changed the application class in `App.xaml` and `App.xaml.cs` from `GhostApplication` to `EditorApplication`. Changed several service interfaces to reside under `Ghost.Editor.Services.Contracts`, including `IInspectorService`, `INotificationService`, and `IProgressService`. Added `InspectorView` and `InspectorViewModel` classes to manage inspector functionality. Added `NavigationTabView` and `NavigationTabPage` classes to facilitate navigation within the editor. Enhanced `WorldNode` and `EntityNode` classes to support scene graph functionality, including serialization and entity management. Updated the project file `Ghost.Editor.csproj` to reflect the new structure and removed old references. Modified the solution file `GhostEngine.sln` to remove references to `Ghost.App` and include `Ghost.Editor`. Updated unit tests to align with the new namespaces and project structure.
82 lines
3.6 KiB
XML
82 lines
3.6 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<Page
|
|
x:Class="Ghost.Editor.View.Pages.EngineEditor.ConsolePage"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="using:Ghost.Editor.View.Pages.EngineEditor"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
mc:Ignorable="d">
|
|
|
|
<Grid Background="{ThemeResource LayerFillColorDefaultBrush}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- Toolbar -->
|
|
<Grid
|
|
Grid.Row="0"
|
|
Background="{ThemeResource CardBackgroundFillColorSecondaryBrush}"
|
|
BorderBrush="{ThemeResource CardStrokeColorDefaultSolid}"
|
|
BorderThickness="0,0,0,1">
|
|
<CommandBar DefaultLabelPosition="Collapsed">
|
|
<CommandBar.PrimaryCommands>
|
|
<AppBarButton Command="{x:Bind ViewModel.ClearLogsCommand}" Content="Clear" />
|
|
<AppBarSeparator />
|
|
<AppBarToggleButton Width="45" IsChecked="{x:Bind ViewModel.ShowInfo, Mode=TwoWay}">
|
|
<AppBarToggleButton.Icon>
|
|
<FontIcon Glyph="" />
|
|
</AppBarToggleButton.Icon>
|
|
</AppBarToggleButton>
|
|
<AppBarToggleButton Width="45" IsChecked="{x:Bind ViewModel.ShowWarning, Mode=TwoWay}">
|
|
<AppBarToggleButton.Icon>
|
|
<FontIcon Glyph="" />
|
|
</AppBarToggleButton.Icon>
|
|
</AppBarToggleButton>
|
|
<AppBarToggleButton Width="45" IsChecked="{x:Bind ViewModel.ShowError, Mode=TwoWay}">
|
|
<AppBarToggleButton.Icon>
|
|
<FontIcon Glyph="" />
|
|
</AppBarToggleButton.Icon>
|
|
</AppBarToggleButton>
|
|
</CommandBar.PrimaryCommands>
|
|
|
|
<CommandBar.SecondaryCommands>
|
|
<AppBarToggleButton BorderThickness="0" Label="Clear On Play" />
|
|
<AppBarToggleButton
|
|
BorderThickness="0"
|
|
IsChecked="{x:Bind ViewModel.ShowStackTrace, Mode=TwoWay}"
|
|
Label="Show Stack Trace" />
|
|
</CommandBar.SecondaryCommands>
|
|
</CommandBar>
|
|
</Grid>
|
|
|
|
<!-- Log Content -->
|
|
<Grid Grid.Row="1">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="100" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<ListView
|
|
x:Name="LogListView"
|
|
Grid.Row="0"
|
|
ItemsSource="{x:Bind ViewModel.Logs, Mode=OneWay}"
|
|
SelectedItem="{x:Bind ViewModel.SelectedLog, Mode=TwoWay}" />
|
|
<Grid
|
|
Grid.Row="1"
|
|
Padding="4"
|
|
BorderBrush="{ThemeResource CardStrokeColorDefaultSolid}"
|
|
BorderThickness="0,1,0,0">
|
|
<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
|
|
<TextBlock
|
|
IsTextSelectionEnabled="True"
|
|
Style="{StaticResource CaptionTextBlockStyle}"
|
|
Text="{x:Bind ViewModel.SelectedLog.ToStringWithStackTrace(), Mode=OneWay}"
|
|
TextWrapping="Wrap" />
|
|
</ScrollViewer>
|
|
</Grid>
|
|
</Grid>
|
|
</Grid>
|
|
</Page>
|