mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
删除可能导致闪退提示框
This commit is contained in:
parent
391d12bd3f
commit
81ae011800
@ -224,6 +224,8 @@ namespace VPet_Simulator.Windows
|
|||||||
if (Set.Language == "null")
|
if (Set.Language == "null")
|
||||||
{
|
{
|
||||||
LocalizeCore.LoadDefaultCulture();
|
LocalizeCore.LoadDefaultCulture();
|
||||||
|
if (LocalizeCore.CurrentCulture == "null")
|
||||||
|
LocalizeCore.CurrentCulture = "en";
|
||||||
Set.Language = LocalizeCore.CurrentCulture;
|
Set.Language = LocalizeCore.CurrentCulture;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -506,8 +508,8 @@ namespace VPet_Simulator.Windows
|
|||||||
{
|
{
|
||||||
Thread.Sleep(2000);
|
Thread.Sleep(2000);
|
||||||
Set["SingleTips"].SetBool("helloworld", true);
|
Set["SingleTips"].SetBool("helloworld", true);
|
||||||
notifyIcon.ShowBalloonTip(10, "你好".Translate() + (IsSteamUser ? Steamworks.SteamClient.Name : Environment.UserName),
|
NoticeBox.Show("欢迎使用虚拟桌宠模拟器!\n如果遇到桌宠爬不见了,可以在我这里设置居中或退出桌宠".Translate(),
|
||||||
"欢迎使用虚拟桌宠模拟器!\n如果遇到桌宠爬不见了,可以在我这里设置居中或退出桌宠".Translate(), ToolTipIcon.Info);
|
"你好".Translate() + (IsSteamUser ? Steamworks.SteamClient.Name : Environment.UserName));
|
||||||
//Thread.Sleep(2000);
|
//Thread.Sleep(2000);
|
||||||
//Main.SayRnd("欢迎使用虚拟桌宠模拟器\n这是个中期的测试版,若有bug请多多包涵\n欢迎加群虚拟主播模拟器430081239或在菜单栏-管理-反馈中提交bug或建议".Translate());
|
//Main.SayRnd("欢迎使用虚拟桌宠模拟器\n这是个中期的测试版,若有bug请多多包涵\n欢迎加群虚拟主播模拟器430081239或在菜单栏-管理-反馈中提交bug或建议".Translate());
|
||||||
});
|
});
|
||||||
@ -520,16 +522,16 @@ namespace VPet_Simulator.Windows
|
|||||||
Process.Start("https://store.steampowered.com/app/1920960/VPet/");
|
Process.Start("https://store.steampowered.com/app/1920960/VPet/");
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
else if (Set["SingleTips"].GetDateTime("update") <= new DateTime(2023, 8, 11) && LocalizeCore.CurrentCulture.StartsWith("cn"))
|
//else if (Set["SingleTips"].GetDateTime("update") <= new DateTime(2023, 8, 11) && LocalizeCore.CurrentCulture.StartsWith("cn"))
|
||||||
{
|
//{
|
||||||
if (Set["SingleTips"].GetDateTime("update") > new DateTime(2023, 8, 1)) // 上次更新日期时间
|
// if (Set["SingleTips"].GetDateTime("update") > new DateTime(2023, 8, 1)) // 上次更新日期时间
|
||||||
notifyIcon.ShowBalloonTip(10, "更新通知 08/11", //本次更新内容
|
// notifyIcon.ShowBalloonTip(10, "更新通知 08/11", //本次更新内容
|
||||||
"新增跳舞功能,桌宠会在播放音乐的时候跳舞\n新增不开心大部分系列动画\n更好买支持翻页", ToolTipIcon.Info);
|
// "新增跳舞功能,桌宠会在播放音乐的时候跳舞\n新增不开心大部分系列动画\n更好买支持翻页", ToolTipIcon.Info);
|
||||||
else// 累计更新内容
|
// else// 累计更新内容
|
||||||
notifyIcon.ShowBalloonTip(10, "更新通知 08/01",
|
// notifyIcon.ShowBalloonTip(10, "更新通知 08/01",
|
||||||
"更新了新的动画系统\n新增桌宠会在播放音乐的时候跳舞\n新增不开心大部分系列动画\n更好买支持翻页", ToolTipIcon.Info);
|
// "更新了新的动画系统\n新增桌宠会在播放音乐的时候跳舞\n新增不开心大部分系列动画\n更好买支持翻页", ToolTipIcon.Info);
|
||||||
Set["SingleTips"].SetDateTime("update", DateTime.Now);
|
// Set["SingleTips"].SetDateTime("update", DateTime.Now);
|
||||||
}
|
//}
|
||||||
#endif
|
#endif
|
||||||
//MOD报错
|
//MOD报错
|
||||||
foreach (CoreMOD cm in CoreMODs)
|
foreach (CoreMOD cm in CoreMODs)
|
||||||
|
Loading…
Reference in New Issue
Block a user