Skip to content

Commit

Permalink
修复选项式聊天停用错误
Browse files Browse the repository at this point in the history
  • Loading branch information
LorisYounger committed Aug 26, 2023
1 parent 8d2864c commit 535afa5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
3 changes: 2 additions & 1 deletion VPet-Simulator.Windows/MainWindow.cs
Original file line number Diff line number Diff line change
Expand Up @@ -576,7 +576,8 @@ public bool GameLoad(ILine line)
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"))
Expand Down
12 changes: 7 additions & 5 deletions VPet-Simulator.Windows/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -469,11 +469,13 @@ await Dispatcher.InvokeAsync(new Action(() =>
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;
}

Expand Down
4 changes: 2 additions & 2 deletions VPet-Simulator.Windows/WinDesign/winGameSetting.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ public winGameSetting(MainWindow mw)
case "LB":
RBCGPTUseLB.IsChecked = true;
BtnCGPTReSet.Content = "初始化桌宠聊天程序".Translate();
if (!mw.IsSteamUser)
BtnCGPTReSet.IsEnabled = false;
//if (!mw.IsSteamUser)
// BtnCGPTReSet.IsEnabled = false;
break;
case "OFF":
default:
Expand Down

0 comments on commit 535afa5

Please sign in to comment.