更新反馈功能和描述

This commit is contained in:
ZouJin 2024-03-26 19:27:56 +08:00
parent a9d3541af0
commit 575fec115e
6 changed files with 13 additions and 5 deletions

View File

@ -48,7 +48,10 @@ namespace VPet_Simulator.Windows
private void UnhandledException(Exception e, bool isFatality)
{
var expt = e.ToString();
if (expt.ToLower().Contains("value") && expt.ToLower().Contains("nan"))
if (expt.Contains("MainWindow.Close"))
return;
else if ((expt.ToLower().Contains("value") && expt.ToLower().Contains("nan")) ||
expt.Contains("System.OverflowException") || expt.Contains("System.DivideByZeroException"))
{
MessageBox.Show("由于修改游戏数据导致数据溢出,存档可能会出错\n开发者提醒您请不要使用过于超模的MOD".Translate());
return;

View File

@ -41,6 +41,8 @@
<TextBox x:Name="tContact" pu:TextBoxHelper.Watermark="{ll:Str '提供联系方式以获得反馈,可不填\&#13;eg:QQ430081239'}"
AcceptsReturn="True" MaxHeight="44" />
</pu:FormGroup>
<Label
Content="{ll:Str '如果比较重要或需要反馈,请联系:\&#13;B站: 虚拟桌宠模拟器 \&#13;邮箱: service@exlb.net \&#13;Github: https://github.com/LorisYounger/VPet'}" Background="{x:Null}" />
<Button x:Name="btn_Report" Content="{ll:Str '提交'}" Margin="10,10,0,10" FontSize="16"
Background="{DynamicResource DARKPrimary}" BorderThickness="1" pu:ButtonHelper.CornerRadius="5"
BorderBrush="{DynamicResource DARKPrimaryDarker}" Foreground="{DynamicResource DARKPrimaryText}"

View File

@ -51,7 +51,7 @@ namespace VPet_Simulator.Windows
{
if (tDescription.Text == "" && tType.SelectedIndex != 0)
{
MessageBoxX.Show("请填写问题描述".Translate(), "问题详细描述是反馈具体问题\n例如如何触发这个报错,游戏有什么地方不合理等".Translate());
MessageBoxX.Show("问题详细描述是反馈具体问题\n例如如何触发这个报错,游戏有什么地方不合理等".Translate(), "请填写问题描述".Translate());
return;
}
if (!mw.IsSteamUser)

View File

@ -54,3 +54,4 @@ theme#Theme:|
好友{0}已加入访客表#Friend {0} has joined the Guest List:|
您以前遭遇过数据溢出, 已根据游戏时长自动添加进当前数值#You have encountered data overflow before, and the current value has been automatically added according to the game duration:|
数据溢出恢复#Data overflow recovery:|
如果比较重要或需要反馈,请联系:\rB站: 虚拟桌宠模拟器 \r邮箱: service@exlb.net \rGithub: https://github.com/LorisYounger/VPet#If it is important or needs feedback, please contact:\rMail: service@exlb.net\rGithub: https://github.com/LorisYounger/VPet:|

View File

@ -54,3 +54,4 @@ theme#主题:|
好友{0}已加入访客表#好友{0}已加入访客表:|
您以前遭遇过数据溢出, 已根据游戏时长自动添加进当前数值#您以前遭遇过数据溢出, 已根据游戏时长自动添加进当前数值:|
数据溢出恢复#数据溢出恢复:|
如果比较重要或需要反馈,请联系:\rB站: 虚拟桌宠模拟器 \r邮箱: service@exlb.net \rGithub: https://github.com/LorisYounger/VPet#如果比较重要或需要反馈,请联系:\rB站: 虚拟桌宠模拟器 \r邮箱: service@exlb.net \rGithub: https://github.com/LorisYounger/VPet:|

View File

@ -54,3 +54,4 @@ theme#主題:|
好友{0}已加入访客表#好友{0}已加入訪客表:|
您以前遭遇过数据溢出, 已根据游戏时长自动添加进当前数值#您以前遭遇過數據溢出, 已根據遊戲時長自動添加進目前數值:|
数据溢出恢复#數據溢出恢復:|
如果比较重要或需要反馈,请联系:\rB站: 虚拟桌宠模拟器 \r邮箱: service@exlb.net \rGithub: https://github.com/LorisYounger/VPet#如果比較重要或需要反饋,請聯繫:\rB站: 虛擬桌寵模擬器 \r郵箱: service@exlb.net \rGithub: https://github.com/LorisYounger/VPet:|