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.
141 lines
6.3 KiB
XML
141 lines
6.3 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<Page
|
|
x:Class="Ghost.Editor.View.Pages.EngineEditor.ProjectPage"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:converter="using:Ghost.Editor.Utilities.Converters"
|
|
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"
|
|
xmlns:model="using:Ghost.Editor.Models"
|
|
mc:Ignorable="d">
|
|
|
|
<Page.Resources>
|
|
<converter:AssetPathToGlyphConverter x:Key="AssetPathToGlyphConverter" />
|
|
</Page.Resources>
|
|
|
|
<Grid Background="{ThemeResource LayerFillColorDefaultBrush}">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="250" />
|
|
<ColumnDefinition Width="*" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<!-- Folder Tree View -->
|
|
<Grid
|
|
Grid.Column="0"
|
|
Padding="4"
|
|
Background="{ThemeResource CardBackgroundFillColorSecondaryBrush}"
|
|
BorderBrush="{ThemeResource CardStrokeColorDefaultSolid}"
|
|
BorderThickness="0,0,1,0">
|
|
<TreeView
|
|
x:Name="DirectoryTreeView"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
ItemsSource="{x:Bind ViewModel.SubDirectories}"
|
|
ScrollViewer.HorizontalScrollBarVisibility="Hidden"
|
|
ScrollViewer.VerticalScrollBarVisibility="Auto"
|
|
SelectedItem="{x:Bind ViewModel.SelectedDirectory, Mode=TwoWay}">
|
|
<TreeView.ItemTemplate>
|
|
<DataTemplate x:DataType="model:ExplorerItem">
|
|
<TreeViewItem ItemsSource="{x:Bind Children}">
|
|
<StackPanel Orientation="Horizontal">
|
|
<FontIcon
|
|
VerticalAlignment="Center"
|
|
FontSize="14"
|
|
Glyph="" />
|
|
<TextBlock
|
|
Margin="8,0,0,0"
|
|
VerticalAlignment="Center"
|
|
Style="{StaticResource CaptionTextBlockStyle}"
|
|
Text="{x:Bind Name}"
|
|
TextTrimming="CharacterEllipsis" />
|
|
</StackPanel>
|
|
</TreeViewItem>
|
|
</DataTemplate>
|
|
</TreeView.ItemTemplate>
|
|
</TreeView>
|
|
</Grid>
|
|
|
|
<!-- Files -->
|
|
<Grid Grid.Column="1">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid
|
|
Grid.Row="0"
|
|
Padding="4"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
Background="{ThemeResource CardBackgroundFillColorSecondaryBrush}"
|
|
BorderBrush="{ThemeResource CardStrokeColorDefaultSolid}"
|
|
BorderThickness="0,0,0,1">
|
|
<BreadcrumbBar Height="15" />
|
|
</Grid>
|
|
|
|
<ScrollViewer
|
|
Grid.Row="1"
|
|
Padding="8"
|
|
VerticalAlignment="Stretch"
|
|
HorizontalScrollBarVisibility="Auto"
|
|
VerticalScrollBarVisibility="Auto">
|
|
<GridView
|
|
x:Name="AssetsGridView"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
ItemsSource="{x:Bind ViewModel.DirectoryAssets, Mode=OneWay}"
|
|
SelectedItem="{x:Bind ViewModel.SelectedAsset, Mode=TwoWay}">
|
|
<GridView.ItemContainerStyle>
|
|
<Style BasedOn="{StaticResource DefaultGridViewItemStyle}" TargetType="GridViewItem">
|
|
<Setter Property="Margin" Value="2" />
|
|
</Style>
|
|
</GridView.ItemContainerStyle>
|
|
|
|
<GridView.ItemTemplate>
|
|
<DataTemplate x:DataType="model:ExplorerItem">
|
|
<Grid
|
|
Width="100"
|
|
Height="100"
|
|
Padding="8"
|
|
DoubleTapped="GridViewItem_DoubleTapped"
|
|
IsDoubleTapEnabled="True">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*" />
|
|
<RowDefinition Height="0.25*" />
|
|
</Grid.RowDefinitions>
|
|
<FontIcon FontSize="42" Glyph="{x:Bind FullName, Converter={StaticResource AssetPathToGlyphConverter}}" />
|
|
<TextBlock
|
|
Grid.Row="1"
|
|
Margin="8,0"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Style="{StaticResource CaptionTextBlockStyle}"
|
|
Text="{x:Bind Name}"
|
|
TextTrimming="CharacterEllipsis" />
|
|
</Grid>
|
|
</DataTemplate>
|
|
</GridView.ItemTemplate>
|
|
</GridView>
|
|
</ScrollViewer>
|
|
|
|
<Grid
|
|
Grid.Row="2"
|
|
Padding="4"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Stretch"
|
|
Background="{ThemeResource CardBackgroundFillColorSecondaryBrush}"
|
|
BorderBrush="{ThemeResource CardStrokeColorDefaultSolid}"
|
|
BorderThickness="0,1,0,0">
|
|
<TextBlock
|
|
VerticalAlignment="Center"
|
|
HorizontalTextAlignment="Left"
|
|
Style="{StaticResource CaptionTextBlockStyle}"
|
|
Text="{x:Bind ViewModel.SelectedAsset.FullName, Mode=OneWay}"
|
|
TextTrimming="CharacterEllipsis" />
|
|
</Grid>
|
|
</Grid>
|
|
</Grid>
|
|
</Page>
|