This commit is contained in:
ZouJin 2023-08-22 00:02:28 +10:00
parent d142d26c92
commit 58eda4558f

View File

@ -144,9 +144,9 @@ namespace VPet_Simulator.Windows
SliderResolution.Value = mw.Set.Resolution; SliderResolution.Value = mw.Set.Resolution;
#if X64 #if X64
GameVerison.Content = "游戏版本".Translate() + $"v{mw.Verison} x64"; GameVerison.Content = "游戏版本".Translate() + $"v{mw.version} x64";
#else #else
GameVerison.Content = "游戏版本".Translate() + $"v{mw.Verison} x86"; GameVerison.Content = "游戏版本".Translate() + $"v{mw.version} x86";
#endif #endif
//关于ui //关于ui
if (mw.IsSteamUser) if (mw.IsSteamUser)
@ -179,7 +179,7 @@ namespace VPet_Simulator.Windows
BtnCGPTReSet.Content = "聊天框已关闭".Translate(); BtnCGPTReSet.Content = "聊天框已关闭".Translate();
break; break;
} }
runabVer.Text = $"v{mw.Verison} ({mw.verison})"; runabVer.Text = $"v{mw.version} ({mw.version})";
//mod列表 //mod列表
ShowModList(); ShowModList();
@ -227,7 +227,7 @@ namespace VPet_Simulator.Windows
} }
else else
{ {
if (mod.GameVer / 10 == mw.verison / 10) if (mod.GameVer / 10 == mw.version / 10)
{ {
moditem.Foreground = Function.ResourcesBrush(Function.BrushType.PrimaryText); moditem.Foreground = Function.ResourcesBrush(Function.BrushType.PrimaryText);
} }
@ -247,9 +247,9 @@ namespace VPet_Simulator.Windows
runMODGameVer.Text = CoreMOD.INTtoVER(mod.GameVer); runMODGameVer.Text = CoreMOD.INTtoVER(mod.GameVer);
runMODGameVer.Foreground = Function.ResourcesBrush(Function.BrushType.PrimaryText); runMODGameVer.Foreground = Function.ResourcesBrush(Function.BrushType.PrimaryText);
ImageMOD.Source = new BitmapImage(new Uri(mod.Path.FullName + @"\icon.png")); ImageMOD.Source = new BitmapImage(new Uri(mod.Path.FullName + @"\icon.png"));
if (mod.GameVer < mw.verison) if (mod.GameVer < mw.version)
{ {
if (mod.GameVer / 10 == mw.verison / 10) if (mod.GameVer / 10 == mw.version / 10)
{ {
runMODGameVer.Text += " (兼容)".Translate(); runMODGameVer.Text += " (兼容)".Translate();
} }
@ -259,9 +259,9 @@ namespace VPet_Simulator.Windows
runMODGameVer.Foreground = new SolidColorBrush(Color.FromRgb(190, 0, 0)); runMODGameVer.Foreground = new SolidColorBrush(Color.FromRgb(190, 0, 0));
} }
} }
else if (mod.GameVer > mw.verison) else if (mod.GameVer > mw.version)
{ {
if (mod.GameVer / 10 == mw.verison / 10) if (mod.GameVer / 10 == mw.version / 10)
{ {
runMODGameVer.Text += " (兼容)".Translate(); runMODGameVer.Text += " (兼容)".Translate();
runMODGameVer.Foreground = Function.ResourcesBrush(Function.BrushType.PrimaryText); runMODGameVer.Foreground = Function.ResourcesBrush(Function.BrushType.PrimaryText);
@ -857,14 +857,15 @@ namespace VPet_Simulator.Windows
new winCGPTSetting(mw).ShowDialog(); new winCGPTSetting(mw).ShowDialog();
break; break;
case "LB": case "LB":
Task.Run(() => //Task.Run(() =>
{ //{
if (((TalkBox)mw.TalkBox).ChatGPT_Reset()) // if (((TalkBox)mw.TalkBox).ChatGPT_Reset())
{ // {
((TalkBox)mw.TalkBox).btn_startup.Visibility = Visibility.Visible; // ((TalkBox)mw.TalkBox).btn_startup.Visibility = Visibility.Visible;
MessageBoxX.Show("桌宠重置成功".Translate()); // MessageBoxX.Show("桌宠重置成功".Translate());
} // }
}); //});
//TODO ((TalkSelect)mw.TalkBox)
break; break;
case "OFF": case "OFF":
default: default:
@ -905,7 +906,7 @@ namespace VPet_Simulator.Windows
BtnCGPTReSet.Content = "初始化桌宠聊天程序".Translate(); BtnCGPTReSet.Content = "初始化桌宠聊天程序".Translate();
if (mw.TalkBox != null) if (mw.TalkBox != null)
mw.Main.ToolBar.MainGrid.Children.Remove(mw.TalkBox); mw.Main.ToolBar.MainGrid.Children.Remove(mw.TalkBox);
mw.TalkBox = new TalkBox(mw); mw.TalkBox = new TalkSelect(mw);
mw.Main.ToolBar.MainGrid.Children.Add(mw.TalkBox); mw.Main.ToolBar.MainGrid.Children.Add(mw.TalkBox);
break; break;
case "OFF": case "OFF":