支持反馈未翻译文档

This commit is contained in:
ZouJin 2023-07-26 09:49:41 +10:00
parent 646d7398ef
commit 20877c9843
3 changed files with 24 additions and 2 deletions

View File

@ -12,12 +12,13 @@
FontSize="24" Margin="10,0,0,0" /> FontSize="24" Margin="10,0,0,0" />
<pu:FormGroup Header="{ll:Str '类型:'}" HeaderPadding="10,0,10,0" HeaderHeight="20" Orientation="Horizontal" <pu:FormGroup Header="{ll:Str '类型:'}" HeaderPadding="10,0,10,0" HeaderHeight="20" Orientation="Horizontal"
Margin="0,2,0,0" Padding="1" FontSize="16" ToolTip="{ll:Str 需要反馈的类型}" HeaderWidth="Auto"> Margin="0,2,0,0" Padding="1" FontSize="16" ToolTip="{ll:Str 需要反馈的类型}" HeaderWidth="Auto">
<ComboBox x:Name="tType" SelectedIndex="4"> <ComboBox x:Name="tType" SelectedIndex="4" SelectionChanged="tType_SelectionChanged">
<ComboBoxItem Content="{ll:Str '游戏内报错'}" /> <ComboBoxItem Content="{ll:Str '游戏内报错'}" />
<ComboBoxItem Content="{ll:Str '逻辑计算错误'}" /> <ComboBoxItem Content="{ll:Str '逻辑计算错误'}" />
<ComboBoxItem Content="{ll:Str '数值设计不合理'}" /> <ComboBoxItem Content="{ll:Str '数值设计不合理'}" />
<ComboBoxItem Content="{ll:Str '玩法与功能建议'}" /> <ComboBoxItem Content="{ll:Str '玩法与功能建议'}" />
<ComboBoxItem Content="{ll:Str '游玩心得分享'}" /> <ComboBoxItem Content="{ll:Str '游玩心得分享'}" />
<ComboBoxItem Content="{ll:Str '未翻译文档提交'}" />
</ComboBox> </ComboBox>
</pu:FormGroup> </pu:FormGroup>
<pu:FormGroup Header="{ll:Str '描述:'}" HeaderPadding="10,0,10,0" HeaderHeight="20" Orientation="Horizontal" <pu:FormGroup Header="{ll:Str '描述:'}" HeaderPadding="10,0,10,0" HeaderHeight="20" Orientation="Horizontal"

View File

@ -115,5 +115,23 @@ namespace VPet_Simulator.Windows
{ {
Height = MainGrid.ActualHeight + 50; Height = MainGrid.ActualHeight + 50;
} }
private void tType_SelectionChanged(object sender, System.Windows.Controls.SelectionChangedEventArgs e)
{
if (tType.SelectedIndex == 5)
{
StringBuilder sb = new StringBuilder();
foreach (var v in LocalizeCore.StoreTranslationList)
{
sb.AppendLine(v.Replace("\n", @"\n").Replace("\r", @"\r"));
}
tContent.Text = sb.ToString();
if (string.IsNullOrEmpty(tContent.Text))
{
tContent.Text = "没有需要提交的翻译的内容".Translate();
}
tUpload.IsChecked = false;
}
}
} }
} }

View File

@ -3,3 +3,6 @@ intro#这是虚拟桌宠模拟器的核心运行文件/com可以参考此文件
authorid#253101309:| authorid#253101309:|
itemid#1:| itemid#1:|
cachedate#2023/6/15:| cachedate#2023/6/15:|
lang#en:|这是虚拟桌宠模拟器的核心运行文件,可以参考此文件编写mod#This is the core running file of the virtual desktop pet simulator, and you can refer to this file to write mods:|Core#Core:|
lang#zh-Hans:|这是虚拟桌宠模拟器的核心运行文件,可以参考此文件编写mod#这是虚拟桌宠模拟器的核心运行文件,可以参考此文件编写mod:|Core#Core 核心:|
lang#zh-Hant:|这是虚拟桌宠模拟器的核心运行文件,可以参考此文件编写mod#這是虛擬桌寵模擬器的覈心運行檔案可以參考此檔案編寫mod:|Core#Core 覈心:|