forked from Misaki/GhostEngine
Added a new static class `AssetsPath` for asset management. Added a new icon file (`icon-256.ico`) for UI representation. Added new package references to enhance functionality. Added internals visibility attributes for better testing. Added a new `EngineEditorViewModel` class for MVVM support. Added a new `GameObject` class for component management. Added a new `BitSet` class for efficient bit manipulation. Added various utility classes to support the new entity system. Changed the `ID` property in `ProjectInfo` to internal. Changed the `AddProjectAsync` method to return the created `ProjectInfo`. Changed the connection string retrieval method to use the new `Command` constant. Changed the `DataPath` class to use `readonly` fields for folder paths. Changed the `ActivationHandler` class to use new `DataPath` constants. Changed the `OpenProjectPage` layout and interaction for better UI. Updated the target framework to a newer version for compatibility. Updated the `ProjectService` to use new constants from `DataPath`. Updated the `World` class to improve entity management. Refactored the `ProjectRepository` class to encapsulate SQL commands. Refactored the `Transform` class to use properties for better encapsulation.
108 lines
4.3 KiB
XML
108 lines
4.3 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<Page
|
|
x:Class="Ghost.Editor.View.Pages.Landing.OpenProjectPage"
|
|
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:data="using:Ghost.Data.Models"
|
|
xmlns:local="using:Ghost.Editor.View.Pages.Landing"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
mc:Ignorable="d">
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="*" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<Grid Grid.Row="0" Margin="16,8,16,16">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="200" />
|
|
<ColumnDefinition Width="200" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<TextBlock
|
|
Grid.Column="0"
|
|
Margin="12,0,0,0"
|
|
Style="{StaticResource BodyStrongTextBlockStyle}"
|
|
Text="Name" />
|
|
<TextBlock
|
|
Grid.Column="1"
|
|
Style="{StaticResource BodyStrongTextBlockStyle}"
|
|
Text="Last Open" />
|
|
<TextBlock
|
|
Grid.Column="2"
|
|
Style="{StaticResource BodyStrongTextBlockStyle}"
|
|
Text="Engine Version" />
|
|
</Grid>
|
|
|
|
<ListView
|
|
x:Name="ProjectListView"
|
|
Grid.Row="1"
|
|
Padding="8"
|
|
Background="{ThemeResource CardBackgroundFillColorDefaultBrush}"
|
|
CornerRadius="{StaticResource OverlayCornerRadius}"
|
|
IsItemClickEnabled="True"
|
|
ItemClick="ListView_ItemClick"
|
|
ItemsSource="{x:Bind projects}"
|
|
SelectionMode="None"
|
|
Visibility="Visible">
|
|
<ListView.ItemTemplate>
|
|
<DataTemplate x:DataType="data:ProjectInfo">
|
|
<Grid Padding="4,8">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*" />
|
|
<ColumnDefinition Width="200" />
|
|
<ColumnDefinition Width="100" />
|
|
<ColumnDefinition Width="100" />
|
|
</Grid.ColumnDefinitions>
|
|
|
|
<Grid Grid.Column="0">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="Auto" />
|
|
<RowDefinition Height="Auto" />
|
|
</Grid.RowDefinitions>
|
|
|
|
<TextBlock
|
|
Grid.Row="0"
|
|
Style="{StaticResource SubtitleTextBlockStyle}"
|
|
Text="{x:Bind Name}" />
|
|
<TextBlock
|
|
Grid.Row="1"
|
|
Foreground="{ThemeResource TextFillColorSecondaryBrush}"
|
|
Style="{StaticResource CaptionTextBlockStyle}"
|
|
Text="{x:Bind Path}" />
|
|
</Grid>
|
|
|
|
<TextBlock
|
|
Grid.Column="1"
|
|
Margin="16,4"
|
|
VerticalAlignment="Center"
|
|
Text="{x:Bind LastOpened}" />
|
|
<TextBlock
|
|
Grid.Column="2"
|
|
Margin="16,4"
|
|
VerticalAlignment="Center"
|
|
Text="{x:Bind EngineVersion}" />
|
|
<Button
|
|
Grid.Column="3"
|
|
HorizontalAlignment="Right"
|
|
Background="Transparent"
|
|
BorderThickness="0">
|
|
<FontIcon Glyph="" />
|
|
</Button>
|
|
</Grid>
|
|
</DataTemplate>
|
|
</ListView.ItemTemplate>
|
|
</ListView>
|
|
|
|
<TextBlock
|
|
x:Name="PlaceHolderText"
|
|
HorizontalAlignment="Center"
|
|
VerticalAlignment="Center"
|
|
Style="{StaticResource TitleTextBlockStyle}"
|
|
Text="No projects found"
|
|
Visibility="Collapsed" />
|
|
</Grid>
|
|
</Page> |