修复选项式聊天停用错误

This commit is contained in:
ZouJin 2023-08-27 01:43:19 +10:00
parent c5fe33e1ab
commit 809054213f
3 changed files with 11 additions and 8 deletions

View File

@ -576,7 +576,8 @@ namespace VPet_Simulator.Windows
if (string.IsNullOrWhiteSpace(line.ToString())) if (string.IsNullOrWhiteSpace(line.ToString()))
return false; return false;
Core.Save = GameSave.Load(line); Core.Save = GameSave.Load(line);
if (Core.Save.Money == 0 && Core.Save.Likability == 0 && Core.Save.Exp == 0 && Core.Save.StrengthDrink == 0 && Core.Save.StrengthFood == 0)//数据全是0,可能是bug if (Core.Save.Money == 0 && Core.Save.Likability == 0 && Core.Save.Exp == 0
&& Core.Save.StrengthDrink == 0 && Core.Save.StrengthFood == 0)//数据全是0,可能是bug
return false; return false;
long hash = line.GetInt64("hash"); long hash = line.GetInt64("hash");
if (line.Remove("hash")) if (line.Remove("hash"))

View File

@ -469,11 +469,13 @@ namespace VPet_Simulator.Windows
Main.ToolBar.MainGrid.Children.Add(TalkBox); Main.ToolBar.MainGrid.Children.Add(TalkBox);
break; break;
case "LB": case "LB":
if (IsSteamUser) //if (IsSteamUser)
{ //{
TalkBox = new TalkSelect(this); // TalkBox = new TalkSelect(this);
Main.ToolBar.MainGrid.Children.Add(TalkBox); // Main.ToolBar.MainGrid.Children.Add(TalkBox);
} //}
TalkBox = new TalkSelect(this);
Main.ToolBar.MainGrid.Children.Add(TalkBox);
break; break;
} }

View File

@ -173,8 +173,8 @@ namespace VPet_Simulator.Windows
case "LB": case "LB":
RBCGPTUseLB.IsChecked = true; RBCGPTUseLB.IsChecked = true;
BtnCGPTReSet.Content = "初始化桌宠聊天程序".Translate(); BtnCGPTReSet.Content = "初始化桌宠聊天程序".Translate();
if (!mw.IsSteamUser) //if (!mw.IsSteamUser)
BtnCGPTReSet.IsEnabled = false; // BtnCGPTReSet.IsEnabled = false;
break; break;
case "OFF": case "OFF":
default: default: