修复选项式聊天停用错误

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()))
return false;
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;
long hash = line.GetInt64("hash");
if (line.Remove("hash"))

View File

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

View File

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