Changed Vector3Field.cs to derive from ValueControl<Vector3> and use NumberBox controls for better UI handling. Changed EditorControls.xaml to update resource paths for new controls. Changed InternalControls.xaml to simplify the resource dictionary by removing unnecessary references. Changed IComponentEditor.cs to reflect updates in the component editor's lifecycle methods. Changed project files for Ghost.Editor and Ghost.Core to include new dependencies and project references. Changed FileExtensions.cs and IInspectorService.cs to align with the new namespace structure. Changed Result.cs to enhance error handling and success checking methods. Changed TypeHandle.cs to improve type handling compatibility. Changed AssemblyInfo.cs files to include new assembly visibility attributes for better encapsulation. Added new graphics-related classes and interfaces in the Ghost.Engine project, including IGraphicsDevice and DX12GraphicsDevice. Added a new Mesh class to handle 3D mesh data and provide methods for creating geometric shapes. Added GraphicsPipeline.cs to manage the graphics rendering loop and device initialization. Added ScenePage.xaml and ScenePage.xaml.cs to create a new page for rendering scenes. Updated HierarchyPage.xaml.cs and InspectorPage.xaml.cs to use the new service locator pattern for service retrieval. Updated LandingWindow.xaml.cs and EngineEditorWindow.xaml.cs to utilize the new service locator pattern for better service access. Updated Logger.cs to enhance logging capabilities with optional stack traces and assertion logging. Updated QueryFilter.cs and QueryEnumerable.cs to use the new TypeHandle structure for improved efficiency. Updated WorldNode.cs and WorldNodeSerializer.cs to enhance serialization and management of world nodes. Updated AssetDatabase and related classes to improve asset management and metadata generation. Updated Ghost.UnitTest.csproj to include new project references and package dependencies for unit tests.
249 lines
10 KiB
XML
249 lines
10 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<winex:WindowEx
|
|
x:Class="Ghost.Editor.View.Windows.EngineEditorWindow"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:behaviors="using:CommunityToolkit.WinUI.Behaviors"
|
|
xmlns:controls="using:CommunityToolkit.WinUI.Controls"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:ee="using:Ghost.Editor.View.Pages.EngineEditor"
|
|
xmlns:interactivity="using:Microsoft.Xaml.Interactivity"
|
|
xmlns:internal="using:Ghost.Editor.Controls.Internal"
|
|
xmlns:local="using:Ghost.Editor.View.Windows"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:winex="using:WinUIEx"
|
|
Activated="WindowEx_Activated"
|
|
Closed="WindowEx_Closed"
|
|
mc:Ignorable="d">
|
|
|
|
<Window.SystemBackdrop>
|
|
<MicaBackdrop />
|
|
</Window.SystemBackdrop>
|
|
|
|
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- Titlebar -->
|
|
<StackPanel
|
|
Grid.Row="0"
|
|
Padding="8"
|
|
Orientation="Horizontal">
|
|
<ImageIcon
|
|
Width="24"
|
|
Height="24"
|
|
VerticalAlignment="Center"
|
|
Source="ms-appx:///Assets/Icon.targetsize-32.png" />
|
|
<TextBlock
|
|
Margin="8,0,0,0"
|
|
VerticalAlignment="Center"
|
|
Style="{StaticResource CaptionTextBlockStyle}"
|
|
Text="{x:Bind ViewModel.engineVersionDescriptor}" />
|
|
<TextBlock
|
|
Margin="8,0,0,0"
|
|
VerticalAlignment="Center"
|
|
Style="{StaticResource CaptionTextBlockStyle}"
|
|
Text="{x:Bind ViewModel.CurrentProject.Metadata.Name, Mode=OneWay}" />
|
|
</StackPanel>
|
|
|
|
<!-- Toolbar -->
|
|
<Grid Grid.Row="1" Margin="4,4">
|
|
<controls:TabbedCommandBar>
|
|
<controls:TabbedCommandBar.MenuItems>
|
|
<controls:TabbedCommandBarItem Header="Home">
|
|
<AppBarButton Label="Undo" />
|
|
<AppBarButton Label="Redo" />
|
|
<AppBarButton Label="Paste" />
|
|
</controls:TabbedCommandBarItem>
|
|
<controls:TabbedCommandBarItem Header="Home">
|
|
<AppBarButton Label="Undo" />
|
|
<AppBarButton Label="Redo" />
|
|
<AppBarButton Label="Paste" />
|
|
</controls:TabbedCommandBarItem>
|
|
<controls:TabbedCommandBarItem Header="Home">
|
|
<AppBarButton Label="Undo" />
|
|
<AppBarButton Label="Redo" />
|
|
<AppBarButton Label="Paste" />
|
|
</controls:TabbedCommandBarItem>
|
|
</controls:TabbedCommandBar.MenuItems>
|
|
</controls:TabbedCommandBar>
|
|
</Grid>
|
|
|
|
<!-- Editor -->
|
|
<Grid Grid.Row="2">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid Grid.Row="0">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<internal:NavigationTabView
|
|
Grid.Column="0"
|
|
Width="350"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch">
|
|
<internal:NavigationTabView.TabItems>
|
|
<ee:HierarchyPage Header="Hierarchy">
|
|
<ee:HierarchyPage.IconSource>
|
|
<FontIconSource Glyph="" />
|
|
</ee:HierarchyPage.IconSource>
|
|
</ee:HierarchyPage>
|
|
</internal:NavigationTabView.TabItems>
|
|
</internal:NavigationTabView>
|
|
|
|
<internal:NavigationTabView Grid.Column="1">
|
|
<internal:NavigationTabView.TabItems>
|
|
<ee:ScenePage Header="Scene">
|
|
<ee:ScenePage.IconSource>
|
|
<FontIconSource Glyph="" />
|
|
</ee:ScenePage.IconSource>
|
|
</ee:ScenePage>
|
|
</internal:NavigationTabView.TabItems>
|
|
</internal:NavigationTabView>
|
|
|
|
<internal:NavigationTabView
|
|
Grid.Column="2"
|
|
Width="350"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch">
|
|
<internal:NavigationTabView.TabItems>
|
|
<ee:InspectorPage Header="Inspector">
|
|
<ee:InspectorPage.IconSource>
|
|
<FontIconSource Glyph="" />
|
|
</ee:InspectorPage.IconSource>
|
|
</ee:InspectorPage>
|
|
</internal:NavigationTabView.TabItems>
|
|
</internal:NavigationTabView>
|
|
</Grid>
|
|
|
|
<internal:NavigationTabView Grid.Row="1" Height="350">
|
|
<internal:NavigationTabView.TabItems>
|
|
<TabViewItem Header="Project">
|
|
<TabViewItem.IconSource>
|
|
<FontIconSource Glyph="" />
|
|
</TabViewItem.IconSource>
|
|
<ee:ProjectPage />
|
|
</TabViewItem>
|
|
<TabViewItem Header="Console">
|
|
<TabViewItem.IconSource>
|
|
<FontIconSource Glyph="" />
|
|
</TabViewItem.IconSource>
|
|
<ee:ConsolePage />
|
|
</TabViewItem>
|
|
</internal:NavigationTabView.TabItems>
|
|
</internal:NavigationTabView>
|
|
</Grid>
|
|
|
|
<!-- Status Bar -->
|
|
<Grid
|
|
Grid.Row="3"
|
|
Height="25"
|
|
Background="{ThemeResource SolidBackgroundFillColorBaseAltBrush}">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="Auto" />
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="Auto" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid Grid.Column="0">
|
|
<FontIcon
|
|
Margin="8,0,0,0"
|
|
FontSize="16"
|
|
Foreground="{ThemeResource SystemFillColorSuccessBrush}"
|
|
Glyph=""
|
|
Visibility="Visible" />
|
|
|
|
<StackPanel Orientation="Horizontal" Visibility="Collapsed">
|
|
<FontIcon
|
|
Margin="8,0,0,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="16"
|
|
Foreground="{ThemeResource SystemFillColorAttentionBrush}"
|
|
Glyph="" />
|
|
<TextBlock
|
|
Margin="4,0,0,0"
|
|
VerticalAlignment="Center"
|
|
Style="{StaticResource CaptionTextBlockStyle}"
|
|
Text="0" />
|
|
<FontIcon
|
|
Margin="8,0,0,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="16"
|
|
Foreground="{ThemeResource SystemFillColorCautionBrush}"
|
|
Glyph="" />
|
|
<TextBlock
|
|
Margin="4,0,0,0"
|
|
VerticalAlignment="Center"
|
|
Style="{StaticResource CaptionTextBlockStyle}"
|
|
Text="0" />
|
|
<FontIcon
|
|
Margin="8,0,0,0"
|
|
VerticalAlignment="Center"
|
|
FontSize="16"
|
|
Foreground="{ThemeResource SystemFillColorCriticalBrush}"
|
|
Glyph="" />
|
|
<TextBlock
|
|
Margin="4,0,0,0"
|
|
VerticalAlignment="Center"
|
|
Style="{StaticResource CaptionTextBlockStyle}"
|
|
Text="0" />
|
|
</StackPanel>
|
|
</Grid>
|
|
</Grid>
|
|
|
|
<Grid Grid.Row="0" Grid.RowSpan="4">
|
|
<InfoBar
|
|
x:Name="InfoBar"
|
|
Margin="16"
|
|
HorizontalAlignment="Right"
|
|
VerticalAlignment="Bottom">
|
|
<interactivity:Interaction.Behaviors>
|
|
<behaviors:StackedNotificationsBehavior x:Name="NotificationQueue" />
|
|
</interactivity:Interaction.Behaviors>
|
|
</InfoBar>
|
|
|
|
<Grid
|
|
x:Name="ProgressBarContainer"
|
|
Background="{ThemeResource SmokeFillColorDefaultBrush}"
|
|
Visibility="Collapsed">
|
|
<Grid
|
|
Height="100"
|
|
Padding="36,24"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Background="{ThemeResource SolidBackgroundFillColorBaseBrush}"
|
|
CornerRadius="{StaticResource OverlayCornerRadius}">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock
|
|
x:Name="ProgressMessage"
|
|
Grid.Row="0"
|
|
Margin="0,0,0,12"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Style="{StaticResource TitleTextBlockStyle}"
|
|
Text="Loading..." />
|
|
<ProgressBar
|
|
x:Name="ProgressBar"
|
|
Grid.Row="1"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Center"
|
|
IsIndeterminate="True" />
|
|
</Grid>
|
|
</Grid>
|
|
</Grid>
|
|
</Grid>
|
|
</winex:WindowEx> |