mirror of
https://github.com/LorisYounger/VPet.git
synced 2024-08-30 18:42:36 +00:00
支持关闭聊天框
This commit is contained in:
parent
ab578ddfdc
commit
b846affcbf
@ -72,16 +72,16 @@
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="LinePutScript, Version=1.5.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\LinePutScript.1.8.3\lib\net462\LinePutScript.dll</HintPath>
|
||||
<HintPath>..\packages\LinePutScript.1.9.2\lib\net462\LinePutScript.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="LinePutScript.Localization.WPF, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\LinePutScript.Localization.WPF.1.0.6\lib\net462\LinePutScript.Localization.WPF.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Panuon.WPF, Version=1.0.1.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Panuon.WPF.1.0.1\lib\net462\Panuon.WPF.dll</HintPath>
|
||||
<Reference Include="Panuon.WPF, Version=1.0.2.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Panuon.WPF.1.0.2\lib\net462\Panuon.WPF.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Panuon.WPF.UI, Version=1.1.15.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Panuon.WPF.UI.1.1.15\lib\net462\Panuon.WPF.UI.dll</HintPath>
|
||||
<Reference Include="Panuon.WPF.UI, Version=1.1.15.1, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Panuon.WPF.UI.1.1.15.3\lib\net462\Panuon.WPF.UI.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="LinePutScript" version="1.8.3" targetFramework="net462" />
|
||||
<package id="LinePutScript" version="1.9.2" targetFramework="net462" />
|
||||
<package id="LinePutScript.Localization.WPF" version="1.0.6" targetFramework="net462" />
|
||||
<package id="Panuon.WPF" version="1.0.1" targetFramework="net462" />
|
||||
<package id="Panuon.WPF.UI" version="1.1.15" targetFramework="net462" />
|
||||
<package id="Panuon.WPF" version="1.0.2" targetFramework="net462" />
|
||||
<package id="Panuon.WPF.UI" version="1.1.15.3" targetFramework="net462" />
|
||||
</packages>
|
@ -90,16 +90,16 @@
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="LinePutScript, Version=1.5.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\LinePutScript.1.8.3\lib\net462\LinePutScript.dll</HintPath>
|
||||
<HintPath>..\packages\LinePutScript.1.9.2\lib\net462\LinePutScript.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="LinePutScript.Localization.WPF, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\LinePutScript.Localization.WPF.1.0.6\lib\net462\LinePutScript.Localization.WPF.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Panuon.WPF, Version=1.0.1.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Panuon.WPF.1.0.1\lib\net462\Panuon.WPF.dll</HintPath>
|
||||
<Reference Include="Panuon.WPF, Version=1.0.2.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Panuon.WPF.1.0.2\lib\net462\Panuon.WPF.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Panuon.WPF.UI, Version=1.1.15.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Panuon.WPF.UI.1.1.15\lib\net462\Panuon.WPF.UI.dll</HintPath>
|
||||
<Reference Include="Panuon.WPF.UI, Version=1.1.15.1, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Panuon.WPF.UI.1.1.15.3\lib\net462\Panuon.WPF.UI.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="PresentationCore" />
|
||||
<Reference Include="PresentationFramework" />
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="LinePutScript" version="1.8.3" targetFramework="net462" />
|
||||
<package id="LinePutScript" version="1.9.2" targetFramework="net462" />
|
||||
<package id="LinePutScript.Localization.WPF" version="1.0.6" targetFramework="net462" />
|
||||
<package id="Panuon.WPF" version="1.0.1" targetFramework="net462" />
|
||||
<package id="Panuon.WPF.UI" version="1.1.15" targetFramework="net462" />
|
||||
<package id="Panuon.WPF" version="1.0.2" targetFramework="net462" />
|
||||
<package id="Panuon.WPF.UI" version="1.1.15.3" targetFramework="net462" />
|
||||
</packages>
|
@ -104,8 +104,7 @@ namespace VPet_Simulator.Windows
|
||||
var l = Core.Save.ToLine();
|
||||
if (HashCheck)
|
||||
{
|
||||
int hs = l.GetHashCode();
|
||||
l[(gint)"hash"] = hs;
|
||||
l[(gi64)"hash"] = new Line(l.ToString()).GetLongHashCode();
|
||||
}
|
||||
else
|
||||
l[(gint)"hash"] = -1;
|
||||
@ -387,10 +386,10 @@ namespace VPet_Simulator.Windows
|
||||
public void GameLoad(ILine line)
|
||||
{
|
||||
Core.Save = GameSave.Load(line);
|
||||
int hash = line.GetInt("hash");
|
||||
long hash = line.GetInt64("hash");
|
||||
if (line.Remove("hash"))
|
||||
{
|
||||
HashCheck = line.GetHashCode() == hash;
|
||||
HashCheck = line.GetLongHashCode() == hash;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -271,6 +271,21 @@ namespace VPet_Simulator.Windows
|
||||
rndtext.Add("关注 {0} 谢谢喵".Translate(Environment.UserName));
|
||||
}
|
||||
|
||||
//旧版本设置兼容
|
||||
var cgpteb = Set["CGPT"].Find("enable");
|
||||
if (cgpteb != null)
|
||||
{
|
||||
if (Set["CGPT"][(gbol)"enable"])
|
||||
{
|
||||
Set["CGPT"][(gstr)"type"] = "API";
|
||||
}
|
||||
else
|
||||
{
|
||||
Set["CGPT"][(gstr)"type"] = "LB";
|
||||
}
|
||||
Set["CGPT"].Remove(cgpteb);
|
||||
}
|
||||
|
||||
Dispatcher.Invoke(new Action(() =>
|
||||
{
|
||||
LoadingText.Content = "尝试加载动画和生成缓存".Translate();
|
||||
@ -282,16 +297,22 @@ namespace VPet_Simulator.Windows
|
||||
winBetterBuy = new winBetterBuy(this);
|
||||
Main = new Main(Core) { };
|
||||
Main.NoFunctionMOD = Set.CalFunState;
|
||||
if (!Set["CGPT"][(gbol)"enable"] && IsSteamUser)
|
||||
|
||||
switch (Set["CGPT"][(gstr)"type"])
|
||||
{
|
||||
TalkBox = new TalkBox(this);
|
||||
Main.ToolBar.MainGrid.Children.Add(TalkBox);
|
||||
}
|
||||
else if (Set["CGPT"][(gbol)"enable"])
|
||||
{
|
||||
TalkBox = new TalkBoxAPI(this);
|
||||
Main.ToolBar.MainGrid.Children.Add(TalkBox);
|
||||
case "API":
|
||||
TalkBox = new TalkBoxAPI(this);
|
||||
Main.ToolBar.MainGrid.Children.Add(TalkBox);
|
||||
break;
|
||||
case "LB":
|
||||
if (IsSteamUser)
|
||||
{
|
||||
TalkBox = new TalkBox(this);
|
||||
Main.ToolBar.MainGrid.Children.Add(TalkBox);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
LoadingText.Content = "正在加载游戏".Translate();
|
||||
var m = new System.Windows.Controls.MenuItem()
|
||||
{
|
||||
@ -513,11 +534,11 @@ namespace VPet_Simulator.Windows
|
||||
petHelper?.Close();
|
||||
|
||||
Main?.Dispose();
|
||||
if(notifyIcon != null)
|
||||
if (notifyIcon != null)
|
||||
{
|
||||
notifyIcon.Visible = false;
|
||||
notifyIcon.Dispose();
|
||||
}
|
||||
}
|
||||
System.Environment.Exit(0);
|
||||
}
|
||||
|
||||
|
@ -98,7 +98,7 @@
|
||||
<HintPath>..\packages\Facepunch.Steamworks.2.3.3\lib\net46\Facepunch.Steamworks.Win64.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="LinePutScript, Version=1.5.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\LinePutScript.1.8.3\lib\net462\LinePutScript.dll</HintPath>
|
||||
<HintPath>..\packages\LinePutScript.1.9.2\lib\net462\LinePutScript.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="LinePutScript.Localization.WPF, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\LinePutScript.Localization.WPF.1.0.6\lib\net462\LinePutScript.Localization.WPF.dll</HintPath>
|
||||
@ -106,11 +106,11 @@
|
||||
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Panuon.WPF, Version=1.0.1.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Panuon.WPF.1.0.1\lib\net462\Panuon.WPF.dll</HintPath>
|
||||
<Reference Include="Panuon.WPF, Version=1.0.2.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Panuon.WPF.1.0.2\lib\net462\Panuon.WPF.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="Panuon.WPF.UI, Version=1.1.15.0, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Panuon.WPF.UI.1.1.15\lib\net462\Panuon.WPF.UI.dll</HintPath>
|
||||
<Reference Include="Panuon.WPF.UI, Version=1.1.15.1, Culture=neutral, processorArchitecture=MSIL">
|
||||
<HintPath>..\packages\Panuon.WPF.UI.1.1.15.3\lib\net462\Panuon.WPF.UI.dll</HintPath>
|
||||
</Reference>
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Data" />
|
||||
|
@ -20,7 +20,7 @@
|
||||
pu:TabControlHelper.ItemsHoverBackground="{DynamicResource PrimaryLight}"
|
||||
pu:TabControlHelper.ItemsSelectedBackground="{DynamicResource PrimaryDark}"
|
||||
pu:TabControlHelper.ItemsSelectedForeground="{DynamicResource DARKPrimaryText}"
|
||||
Foreground="{DynamicResource PrimaryText}">
|
||||
Foreground="{DynamicResource PrimaryText}" SelectionChanged="MainTab_SelectionChanged">
|
||||
<TabControl.ContentTemplate>
|
||||
<DataTemplate>
|
||||
<Border Margin="5,10,5,20" CornerRadius="15" Background="{DynamicResource DARKPrimaryText}">
|
||||
@ -291,6 +291,10 @@
|
||||
<ColumnDefinition Width="*" />
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<Grid.RowDefinitions>
|
||||
<RowDefinition Height="Auto" />
|
||||
<RowDefinition Height="Auto" />
|
||||
</Grid.RowDefinitions>
|
||||
<RadioButton x:Name="RBCGPTUseAPI" Style="{DynamicResource StandardRadioButtonStyle}"
|
||||
Content="{ll:Str '使用从ChatGPT\ 申请的的API'}" ToolTip="{ll:Str 需要去OpenAI官网申请}"
|
||||
GroupName="cgpttype" Grid.Column="1" Checked="CGPType_Checked" />
|
||||
@ -298,6 +302,12 @@
|
||||
Content="{ll:Str '使用桌宠开发者\ 提供的免费API'}"
|
||||
ToolTip="{ll:Str 需遵循相关协议法律法规并有聊天字数限制}" GroupName="cgpttype" IsChecked="True"
|
||||
Checked="CGPType_Checked" />
|
||||
<RadioButton x:Name="RBCGPTClose" Style="{DynamicResource StandardRadioButtonStyle}"
|
||||
Content="{ll:Str '关闭聊天框'}" GroupName="cgpttype" Checked="CGPType_Checked"
|
||||
Grid.Row="1" />
|
||||
<RadioButton x:Name="RBCGPTDIY" Style="{DynamicResource StandardRadioButtonStyle}"
|
||||
Content="{ll:Str '自定义聊天接口'}" GroupName="cgpttype" Checked="CGPType_Checked"
|
||||
Grid.Row="1" Grid.Column="1" IsEnabled="False"/>
|
||||
</Grid>
|
||||
<Button x:Name="BtnCGPTReSet" pu:ButtonHelper.CornerRadius="4" Content="{ll:Str 初始化桌宠聊天程序}"
|
||||
Margin="4" Grid.Column="2" Background="{DynamicResource SecondaryLight}" Padding="1"
|
||||
@ -544,12 +554,14 @@
|
||||
</TabItem>
|
||||
<TabItem Header="{ll:Str 诊断}" BorderBrush="{DynamicResource PrimaryDarker}">
|
||||
<StackPanel>
|
||||
<TextBlock HorizontalAlignment="Left" FontSize="11" VerticalAlignment="Top" Background="{x:Null}"
|
||||
<TextBlock HorizontalAlignment="Left" FontSize="13" VerticalAlignment="Top" Background="{x:Null}"
|
||||
TextWrapping="Wrap">
|
||||
<Run FontWeight="Bold" FontSize="18" Text="{ll:Str 诊断与反馈}" /> <LineBreak />
|
||||
<Run Text="{ll:Str '选择要发送给 LBGame 的诊断数据,诊断数据用于保护和及时更新 虚拟桌宠模拟器, 解决问题并改进产品.'}" /><LineBreak />
|
||||
<Run Text="{ll:Str '无论选择哪个选项,游戏都可以安全正常地运行.'}" /> <Hyperlink Click="hyper_moreInfo"><Run
|
||||
Text="{ll:Str 获取有关这些设置的更多信息}" /></Hyperlink>
|
||||
<LineBreak /> <Run Text="{ll:Str '当前存档Hash验证信息'}" FontWeight="Bold" /> : <Run
|
||||
x:Name="RHashCheck" Text="通过" FontWeight="Bold" />
|
||||
</TextBlock>
|
||||
<RadioButton x:Name="RBDiagnosisYES" Style="{DynamicResource StandardRadioButtonStyle}"
|
||||
Content="{ll:Str '发送诊断数据: 发送游戏存档, 包括饱腹,状态等各种游戏内\ 数据. 可能会包括该游戏内存和CPU使用情况'}"
|
||||
@ -725,7 +737,7 @@
|
||||
HorizontalAlignment="Left" VerticalAlignment="Top" Grid.ColumnSpan="2" />
|
||||
<TextBlock Margin="0,130,0,0" VerticalAlignment="Top" TextWrapping="WrapWithOverflow"
|
||||
Grid.Column="1">
|
||||
<Run Text="{ll:Str '杨远洛里斯'}" />, <Hyperlink Click="Mod_Click"
|
||||
<Run Text="{ll:Str '杨远洛里斯'}" />, <Run Text="{ll:Str '吉娜'}" />, <Hyperlink Click="Mod_Click"
|
||||
Foreground="{DynamicResource PrimaryText}"><Run Text="{ll:Str 广大MOD作者}" /></Hyperlink><LineBreak />
|
||||
<Run Text="{ll:Str '洛里斯杨远'}" />, トニーちゃん <Hyperlink Click="Git_Click"><Run Text="{ll:Str Git贡献名单}" /></Hyperlink><LineBreak />
|
||||
<Run Text="{ll:Str '叶书天'}" />, <Hyperlink Click="Mod_Click"
|
||||
|
@ -1,12 +1,14 @@
|
||||
using LinePutScript;
|
||||
using LinePutScript.Localization.WPF;
|
||||
using Panuon.WPF.UI;
|
||||
using Steamworks;
|
||||
using Steamworks.Ugc;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Input;
|
||||
@ -137,16 +139,26 @@ namespace VPet_Simulator.Windows
|
||||
runUserName.Text = Environment.UserName;
|
||||
runActivate.Text = "尚未激活 您可能需要启动Steam或去Steam上免费领个".Translate();
|
||||
RBCGPTUseLB.IsEnabled = false;
|
||||
if (!mw.Set["CGPT"][(gbol)"enable"])
|
||||
BtnCGPTReSet.IsEnabled = false;
|
||||
}
|
||||
if (mw.Set["CGPT"][(gbol)"enable"])
|
||||
//CGPT
|
||||
switch (mw.Set["CGPT"][(gstr)"type"])
|
||||
{
|
||||
RBCGPTUseAPI.IsChecked = true;
|
||||
BtnCGPTReSet.Content = "打开 ChatGPT API 设置".Translate();
|
||||
case "API":
|
||||
RBCGPTUseAPI.IsChecked = true;
|
||||
BtnCGPTReSet.Content = "打开 ChatGPT API 设置".Translate();
|
||||
break;
|
||||
case "LB":
|
||||
RBCGPTUseLB.IsChecked = true;
|
||||
BtnCGPTReSet.Content = "初始化桌宠聊天程序".Translate();
|
||||
if (!mw.IsSteamUser)
|
||||
BtnCGPTReSet.IsEnabled = false;
|
||||
break;
|
||||
case "OFF":
|
||||
default:
|
||||
RBCGPTClose.IsChecked = true;
|
||||
BtnCGPTReSet.Content = "聊天框已关闭".Translate();
|
||||
break;
|
||||
}
|
||||
else
|
||||
BtnCGPTReSet.Content = "初始化桌宠聊天程序".Translate();
|
||||
runabVer.Text = $"v{mw.Verison} ({mw.verison})";
|
||||
|
||||
//mod列表
|
||||
@ -738,48 +750,71 @@ namespace VPet_Simulator.Windows
|
||||
|
||||
private void ChatGPT_Reset_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (mw.Set["CGPT"][(gbol)"enable"])
|
||||
switch (mw.Set["CGPT"][(gstr)"type"])
|
||||
{
|
||||
new winCGPTSetting(mw).ShowDialog();
|
||||
}
|
||||
else
|
||||
{
|
||||
string responseString = ((TalkBox)mw.TalkBox).ChatGPT_Reset();
|
||||
if (responseString == "SUCCESS")
|
||||
{
|
||||
((TalkBox)mw.TalkBox).btn_startup.Visibility = Visibility.Visible;
|
||||
MessageBoxX.Show("桌宠重置成功".Translate());
|
||||
}
|
||||
else
|
||||
{
|
||||
MessageBoxX.Show(responseString, "桌宠重置失败".Translate());
|
||||
}
|
||||
}
|
||||
case "API":
|
||||
new winCGPTSetting(mw).ShowDialog();
|
||||
break;
|
||||
case "LB":
|
||||
Task.Run(() =>
|
||||
{
|
||||
if (((TalkBox)mw.TalkBox).ChatGPT_Reset())
|
||||
{
|
||||
((TalkBox)mw.TalkBox).btn_startup.Visibility = Visibility.Visible;
|
||||
MessageBoxX.Show("桌宠重置成功".Translate());
|
||||
}
|
||||
});
|
||||
break;
|
||||
case "OFF":
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void CGPType_Checked(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (!AllowChange)
|
||||
return;
|
||||
mw.Set["CGPT"].SetBool("enable", RBCGPTUseLB.IsChecked == false);
|
||||
mw.Set["CGPT"].SetBool("enable", RBCGPTUseLB.IsChecked == false);
|
||||
if (mw.Set["CGPT"][(gbol)"enable"])
|
||||
if (RBCGPTUseLB.IsChecked == true)
|
||||
{
|
||||
BtnCGPTReSet.Content = "打开 ChatGPT API 设置".Translate();
|
||||
BtnCGPTReSet.IsEnabled = true;
|
||||
if (mw.TalkBox != null)
|
||||
mw.Main.ToolBar.MainGrid.Children.Remove(mw.TalkBox);
|
||||
mw.TalkBox = new TalkBoxAPI(mw);
|
||||
mw.Main.ToolBar.MainGrid.Children.Add(mw.TalkBox);
|
||||
mw.Set["CGPT"][(gstr)"type"] = "LB";
|
||||
}
|
||||
else if (RBCGPTUseAPI.IsChecked == true)
|
||||
{
|
||||
mw.Set["CGPT"][(gstr)"type"] = "API";
|
||||
}
|
||||
else
|
||||
{
|
||||
BtnCGPTReSet.Content = "初始化桌宠聊天程序".Translate();
|
||||
if (mw.TalkBox != null)
|
||||
mw.Main.ToolBar.MainGrid.Children.Remove(mw.TalkBox);
|
||||
mw.TalkBox = new TalkBox(mw);
|
||||
mw.Main.ToolBar.MainGrid.Children.Add(mw.TalkBox);
|
||||
mw.Set["CGPT"][(gstr)"type"] = "OFF";
|
||||
}
|
||||
|
||||
|
||||
switch (mw.Set["CGPT"][(gstr)"type"])
|
||||
{
|
||||
case "API":
|
||||
BtnCGPTReSet.IsEnabled = true;
|
||||
BtnCGPTReSet.Content = "打开 ChatGPT API 设置".Translate();
|
||||
if (mw.TalkBox != null)
|
||||
mw.Main.ToolBar.MainGrid.Children.Remove(mw.TalkBox);
|
||||
mw.TalkBox = new TalkBoxAPI(mw);
|
||||
mw.Main.ToolBar.MainGrid.Children.Add(mw.TalkBox);
|
||||
break;
|
||||
case "LB":
|
||||
BtnCGPTReSet.IsEnabled = true;
|
||||
BtnCGPTReSet.Content = "初始化桌宠聊天程序".Translate();
|
||||
if (mw.TalkBox != null)
|
||||
mw.Main.ToolBar.MainGrid.Children.Remove(mw.TalkBox);
|
||||
mw.TalkBox = new TalkBox(mw);
|
||||
mw.Main.ToolBar.MainGrid.Children.Add(mw.TalkBox);
|
||||
break;
|
||||
case "OFF":
|
||||
default:
|
||||
if (mw.TalkBox != null)
|
||||
mw.Main.ToolBar.MainGrid.Children.Remove(mw.TalkBox);
|
||||
BtnCGPTReSet.IsEnabled = false;
|
||||
BtnCGPTReSet.Content = "聊天框已关闭".Translate();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
private void ButtonSetting_MouseDown(object sender, MouseButtonEventArgs e)
|
||||
@ -968,5 +1003,24 @@ namespace VPet_Simulator.Windows
|
||||
LocalizeCore.LoadCulture((string)LanguageBox.SelectedItem);
|
||||
mw.Set.Language = LocalizeCore.CurrentCulture;
|
||||
}
|
||||
|
||||
private void MainTab_SelectionChanged(object sender, SelectionChangedEventArgs e)
|
||||
{
|
||||
if (!AllowChange)
|
||||
return;
|
||||
switch (MainTab.SelectedIndex)
|
||||
{
|
||||
case 4:
|
||||
if (mw.HashCheck)
|
||||
{
|
||||
RHashCheck.Text = "通过".Translate();
|
||||
}
|
||||
else
|
||||
{
|
||||
RHashCheck.Text = "失败".Translate();
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -0,0 +1,9 @@
|
||||
关闭聊天框#Close Chat Box:|
|
||||
当前存档Hash验证信息#Current Save Hash Verification::|
|
||||
操作#operation:|
|
||||
虚拟桌宠模拟器 规格#VPet Simulator Specifications:|
|
||||
吉娜#Gina:|
|
||||
通过#Pass:|
|
||||
失败#Fail:|
|
||||
自定义聊天接口#Custom Chat Interface:|
|
||||
聊天框已关闭#Chat Box Closed:|
|
23
VPet-Simulator.Windows/mod/0000_core/lang/en/CGPT2308.lps
Normal file
23
VPet-Simulator.Windows/mod/0000_core/lang/en/CGPT2308.lps
Normal file
@ -0,0 +1,23 @@
|
||||
当前Token使用#Current Token Usage:|
|
||||
ServerFull#API call failed. Please resend the content later. The current server has exceeded the usage limit of {0}/{1} words per hour. Please wait for 1 hour and try again:|
|
||||
NoUser#Please initialize the desktop pet chat program first:|
|
||||
EmptyContent#The chat content is empty (note: generally, this error feedback will not be triggered):|
|
||||
SensitiveGive#Detected prohibited words: chat generation has been terminated:|
|
||||
NoTokenVIP#Pay-as-you-go Token count has been used up\nToday word count has been used up \nCurrent word count used: {0}/{1} \nWord count refresh remaining time: {2} hours:|
|
||||
NoTokenUser#Today's word count has been used up \nCurrent word count used: {0}/{1} \nWord refresh remaining time: {2} hours:|
|
||||
EmptyResponse#The server returned empty \nAPI call failed. Please resend the content later. If multiple returns are empty, please wait for 1 hour and try again:|
|
||||
SensitiveReturn#Detected prohibited words: chat return terminated:|
|
||||
DIYSensitive#Custom start contains prohibited words, vpet initialization failed:|
|
||||
NameEmpty#Table pet name cannot be empty:|
|
||||
Outdated#Outdated API, please update the desktop pet version:|
|
||||
Offline#API Temporary Maintenance:|
|
||||
Steam Not purchased#Steam has not been purchased, please obtain one for free on Steam to activate CGPT usage:|
|
||||
IP times Max#Your current IP address is temporarily banned. Please wait for one day and try again:|
|
||||
服务器消耗倍率#Server consumption rate:|
|
||||
当前使用字数#Current Token used:|
|
||||
下次刷新时间#Next refresh date :|
|
||||
由桌宠开发者提供的免费API#Free API provided by developers:|
|
||||
生成最大字数#Generate maximum number of Token:|
|
||||
由桌宠开发者提供的API#API provided by developers:|
|
||||
VIP用户#VIP users:|
|
||||
按量付费字数#Pay-as-you-go Token Count:|
|
@ -5,3 +5,5 @@
|
||||
吉娜#吉娜:|
|
||||
通过#通过:|
|
||||
失败#失败:|
|
||||
自定义聊天接口#自定义聊天接口:|
|
||||
聊天框已关闭#聊天框已关闭:|
|
@ -0,0 +1,9 @@
|
||||
关闭聊天框#關閉聊天框:|
|
||||
当前存档Hash验证信息#當前存檔Hash驗證資訊:|
|
||||
操作#操作:|
|
||||
虚拟桌宠模拟器 规格#虛擬桌寵模擬器規格:|
|
||||
吉娜#吉娜:|
|
||||
通过#通過:|
|
||||
失败#失敗:|
|
||||
自定义聊天接口#自定義聊天介面:|
|
||||
聊天框已关闭#聊天框已關閉:|
|
@ -0,0 +1,23 @@
|
||||
当前Token使用#當前Token使用:|
|
||||
ServerFull#調用API失敗,請稍後重新發送內容\n當前服務器每小時字數使用已超額{0}/{1}\n請等待1小時後重試:|
|
||||
NoUser#請先初始化桌寵聊天程式:|
|
||||
EmptyContent#聊天內容為空(注:一般不會出發該錯誤迴響):|
|
||||
SensitiveGive#檢測到違禁詞:聊天生成已終止:|
|
||||
NoTokenVIP#按量付費字數已用完\n今日字數已用完\n當前已用字數:{0}/{1}\n字數重繪剩餘時間:{2}小時:|
|
||||
NoTokenUser#今日字數已用完\n當前已用字數:{0}/{1}\n字數重繪剩餘時間:{2}小時:|
|
||||
EmptyResponse#服務器返回為空\n調用API失敗,請稍後重新發送內容\n如果多次返回均為空,請等待1小時後重試:|
|
||||
SensitiveReturn#檢測到違禁詞:聊天返回已終止:|
|
||||
DIYSensitive#自定義開頭包含違禁詞,桌寵初始化失敗:|
|
||||
NameEmpty#桌寵名字不能為空:|
|
||||
Outdated#過時的API,請更新桌寵版本:|
|
||||
Offline#API暫時維護:|
|
||||
Steam Not purchased#Steam未購買,請在Steam免費領一個以啟動使用CGPT:|
|
||||
IP times Max#您當前IP地址被暫時封禁,請等待一天後重試:|
|
||||
服务器消耗倍率#服務器消耗倍率:|
|
||||
当前使用字数#當前使用字數:|
|
||||
下次刷新时间#下次重繪時間:|
|
||||
由桌宠开发者提供的免费API#由桌寵開發者提供的免費API:|
|
||||
生成最大字数#生成最大字數:|
|
||||
由桌宠开发者提供的API#由桌寵開發者提供的API:|
|
||||
VIP用户#VIP用戶:|
|
||||
按量付费字数#按量付費字數:|
|
@ -3,9 +3,9 @@
|
||||
<package id="ChatGPT.API.Framework" version="1.0.4" targetFramework="net462" />
|
||||
<package id="Facepunch.Steamworks" version="2.3.3" targetFramework="net462" />
|
||||
<package id="Facepunch.Steamworks.win32" version="2.3.3" targetFramework="net462" />
|
||||
<package id="LinePutScript" version="1.8.3" targetFramework="net462" />
|
||||
<package id="LinePutScript" version="1.9.2" targetFramework="net462" />
|
||||
<package id="LinePutScript.Localization.WPF" version="1.0.6" targetFramework="net462" />
|
||||
<package id="Newtonsoft.Json" version="13.0.3" targetFramework="net462" />
|
||||
<package id="Panuon.WPF" version="1.0.1" targetFramework="net462" />
|
||||
<package id="Panuon.WPF.UI" version="1.1.15" targetFramework="net462" />
|
||||
<package id="Panuon.WPF" version="1.0.2" targetFramework="net462" />
|
||||
<package id="Panuon.WPF.UI" version="1.1.15.3" targetFramework="net462" />
|
||||
</packages>
|
Loading…
Reference in New Issue
Block a user