<Page x:Class="XFEEDToolBox.Views.TranslationPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:controls="using:XFEEDToolBox.Controls">
<ScrollViewer VerticalScrollBarVisibility="Auto"><StackPanel Spacing="20" Padding="0,8,8,24">
<StackPanel Spacing="6"><TextBlock Text="SIMPLIFIED CHINESE" Style="{StaticResource Eyebrow}"/><TextBlock Text="简体中文汉化" Style="{StaticResource PageTitle}"/><TextBlock Text="导入简体中文资源,在本机独立安装与管理。" Style="{StaticResource MutedText}"/></StackPanel>
<Border Style="{StaticResource CardStyle}"><StackPanel Spacing="16">
<TextBlock Text="游戏汉化" Style="{StaticResource SectionTitle}"/>
<TextBox Header="游戏主程序" Text="{x:Bind ViewModel.TranslationGameExecutable,Mode=TwoWay}"/>
<Button Content="选择游戏目录" Command="{x:Bind ViewModel.ChooseTranslationGameCommand}"/>
<StackPanel Orientation="Horizontal" Spacing="12"><Button Content="安装简体中文" controls:AsyncAction.Command="{x:Bind ViewModel.InstallTranslationCommand}" Style="{StaticResource PrimaryButton}"/><Button Content="还原汉化" controls:AsyncAction.Command="{x:Bind ViewModel.UninstallTranslationCommand}"/><Button Content="检查状态" controls:AsyncAction.Command="{x:Bind ViewModel.ReadTranslationCommand}"/></StackPanel>
<ProgressRing Width="24" Height="24" IsActive="{x:Bind ViewModel.TranslationBusy,Mode=OneWay}" HorizontalAlignment="Left"/>
<InfoBar IsOpen="True" IsClosable="False" Severity="Informational" Title="汉化状态" Message="{x:Bind ViewModel.TranslationStatusText,Mode=OneWay}"/>
</StackPanel></Border>
<Expander Header="本地语言资源" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"><StackPanel Spacing="12">
<TextBlock Text="首次使用时导入完整的本地汉化组件。导入后保存在工具箱资源库,后续安装直接使用本机副本。" Style="{StaticResource MutedText}"/>
<TextBox Header="资源目录" Text="{x:Bind ViewModel.TranslationSourceDirectory,Mode=TwoWay}"/>
<Button Content="导入本地资源" Command="{x:Bind ViewModel.ChooseTranslationSourceCommand}"/>
</StackPanel></Expander>
<TextBlock Text="可以识别游戏目录中已有的兼容组件。安装与还原在游戏退出后进行。" Style="{StaticResource MutedText}" FontSize="12"/>
</StackPanel></ScrollViewer>
</Page>
<Page x:Class="XFEEDToolBox.Views.TranslationPage" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:controls="using:XFEEDToolBox.Controls">
<ScrollViewer VerticalScrollBarVisibility="Auto"><StackPanel Spacing="20" Padding="0,8,8,24">
<StackPanel Spacing="6"><TextBlock Text="SIMPLIFIED CHINESE" Style="{StaticResource Eyebrow}"/><TextBlock Text="简体中文汉化" Style="{StaticResource PageTitle}"/><TextBlock Text="导入简体中文资源,在本机独立安装与管理。" Style="{StaticResource MutedText}"/></StackPanel>
<Border Style="{StaticResource CardStyle}"><StackPanel Spacing="16">
<TextBlock Text="游戏汉化" Style="{StaticResource SectionTitle}"/>
<TextBox Header="游戏主程序" Text="{x:Bind ViewModel.TranslationGameExecutable,Mode=TwoWay}"/>
<Button Content="选择游戏目录" Command="{x:Bind ViewModel.ChooseTranslationGameCommand}"/>
<StackPanel Orientation="Horizontal" Spacing="12"><Button Content="安装简体中文" controls:AsyncAction.Command="{x:Bind ViewModel.InstallTranslationCommand}" Style="{StaticResource PrimaryButton}"/><Button Content="还原汉化" controls:AsyncAction.Command="{x:Bind ViewModel.UninstallTranslationCommand}"/><Button Content="检查状态" controls:AsyncAction.Command="{x:Bind ViewModel.ReadTranslationCommand}"/></StackPanel>
<ProgressRing Width="24" Height="24" IsActive="{x:Bind ViewModel.TranslationBusy,Mode=OneWay}" HorizontalAlignment="Left"/>
<InfoBar IsOpen="True" IsClosable="False" Severity="Informational" Title="汉化状态" Message="{x:Bind ViewModel.TranslationStatusText,Mode=OneWay}"/>
</StackPanel></Border>
<Expander Header="本地语言资源" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch"><StackPanel Spacing="12">
<TextBlock Text="首次使用时导入完整的本地汉化组件。导入后保存在工具箱资源库,后续安装直接使用本机副本。" Style="{StaticResource MutedText}"/>
<TextBox Header="资源目录" Text="{x:Bind ViewModel.TranslationSourceDirectory,Mode=TwoWay}"/>
<Button Content="导入本地资源" Command="{x:Bind ViewModel.ChooseTranslationSourceCommand}"/>
</StackPanel></Expander>
<TextBlock Text="可以识别游戏目录中已有的兼容组件。安装与还原在游戏退出后进行。" Style="{StaticResource MutedText}" FontSize="12"/>
</StackPanel></ScrollViewer>
</Page>