更新解决方案翻译

This commit is contained in:
ZouJin 2024-01-25 22:40:50 +08:00
parent 5c5fafee94
commit 1b8f99ce85
7 changed files with 192 additions and 74 deletions

View File

@ -20,6 +20,7 @@ using Line = LinePutScript.Line;
using static VPet_Simulator.Core.GraphInfo;
using System.Globalization;
using LinePutScript.Dictionary;
using Steamworks.Data;
namespace VPet_Simulator.Windows
{
@ -111,6 +112,8 @@ namespace VPet_Simulator.Windows
{
if (IsSteamUser)//如果是steam用户,尝试加载workshop
{
//Leaderboard? leaderboard = await SteamUserStats.FindLeaderboardAsync("chatgpt_auth");
//leaderboard?.ReplaceScore(Function.Rnd.Next());
var workshop = new Line_D("workshop");
await Dispatcher.InvokeAsync(new Action(() =>
{
@ -126,7 +129,7 @@ namespace VPet_Simulator.Windows
int i = 1;
while (true)
{
var page = await Steamworks.Ugc.Query.ItemsReadyToUse.GetPageAsync(i++);
var page = await Steamworks.Ugc.Query.ItemsReadyToUse.GetPageAsync(i++);
if (page.HasValue && page.Value.ResultCount != 0)
{
foreach (Steamworks.Ugc.Item entry in page.Value.Entries)
@ -260,7 +263,7 @@ namespace VPet_Simulator.Windows
if (App.MainWindows.Count <= 1)
{
try
{
{
if (Core != null && Core.Graph != null)
{
foreach (var igs in Core.Graph.GraphsList.Values)

View File

@ -6,6 +6,7 @@ mklink /d "%~dp0\bin\x64\Debug\net462\mod" "%~dp0\mod"
echo The following is the automatic link generation for other related MODs. If an error is prompted, it is a normal phenomenon and can be ignored
mklink /d "%~dp0\bin\x64\Release\net462\mod" "%~dp0\mod"
mklink /d "%~dp0\..\VPet.Solution\bin\Debug\mod" "%~dp0\mod"
mklink /d "%~dp0\mod\0001_ModMaker" "%~dp0\..\..\VPet.ModMaker\0001_ModMaker"
mklink /d "%~dp0\mod\1100_DemoClock" "%~dp0\..\..\VPet.Plugin.Demo\VPet.Plugin.DemoClock\1100_DemoClock"

View File

@ -0,0 +1,48 @@
VPET 设置编辑器#VPET Setup Editor:|
打开文件#Opening Files:|
从资源管理器打开文件#Opening a file from Explorer:|
重置#Reset:|
全部保存#Save All:|
Mod管理#Mod Management:|
保存为退出位置#Save as Exit Location:|
设为当前位置#Set as current position:|
设为当前窗口左上角顶点坐标的位置#Set to the current position of the top-left corner of the window in vertex coordinates.:|
每次间隔#Interval:|
备份设置#Backup Settings:|
桌宠设置#VPet Settings:|
桌宠状态#VPet Status:|
启用桌宠状态#Enable VPet status:|
分钟左右主动进行一次互动 (走路发呆爬墙等) #Interact actively once every minute or so (walk, dawdle, climb walls, etc.) :|
清空全部#Clear all:|
搜索名称#Search Name:|
链接#Link:|
每周期一次#Once per cycle:|
搜索模组#Search Module:|
清除失效模组#Clear invalid modules:|
清除全部模组#Clear all modules:|
模组名称:#Module Name.:|
作者:#Author.:|
模组版本:#Module Version.:|
游戏版本:#Game Version.:|
模组路径:#Path to Module.:|
启用模组#Enable Module:|
启用模组代码#Enable Module Code:|
打开所在文件夹#Open the folder:|
打开创意工坊页面#Open Creative Workshop Page:|
VPET 存档查看器#VPET Archive Viewer:|
搜索存档#Search Archives:|
保存时间#Save Time:|
游玩时长#Play Duration:|
数据#Data:|
保存日期#Save Dates:|
模式#Mode:|
等级#Grade:|
哈希检查#Hash Check:|
值#Value:|
VPET 问题解决工具#VPET Problem Solving Tool:|
打开设置编辑器#Open Settings Editor:|
打开存档查看器#Open Archive Viewer:|
打开翻译文本#Open Translated Text:|
全部重置#Reset All:|
哈希#Hash:|
第一次启动桌宠打不开?#Can't open the first time you start the desktop pet?:|

View File

@ -0,0 +1,48 @@
VPET 设置编辑器#VPET 设置编辑器:|
打开文件#打开文件:|
从资源管理器打开文件#从资源管理器打开文件:|
重置#重置:|
全部保存#全部保存:|
Mod管理#Mod管理:|
保存为退出位置#保存为退出位置:|
设为当前位置#设为当前位置:|
设为当前窗口左上角顶点坐标的位置#设为当前窗口左上角顶点坐标的位置:|
每次间隔#每次间隔:|
备份设置#备份设置:|
桌宠设置#桌宠设置:|
桌宠状态#桌宠状态:|
启用桌宠状态#启用桌宠状态:|
分钟左右主动进行一次互动 (走路发呆爬墙等) #分钟左右主动进行一次互动 (走路发呆爬墙等) :|
清空全部#清空全部:|
搜索名称#搜索名称:|
链接#链接:|
每周期一次#每周期一次:|
搜索模组#搜索模组:|
清除失效模组#清除失效模组:|
清除全部模组#清除全部模组:|
模组名称:#模组名称::|
作者:#作者::|
模组版本:#模组版本::|
游戏版本:#游戏版本::|
模组路径:#模组路径::|
启用模组#启用模组:|
启用模组代码#启用模组代码:|
打开所在文件夹#打开所在文件夹:|
打开创意工坊页面#打开创意工坊页面:|
VPET 存档查看器#VPET 存档查看器:|
搜索存档#搜索存档:|
保存时间#保存时间:|
游玩时长#游玩时长:|
数据#数据:|
保存日期#保存日期:|
模式#模式:|
等级#等级:|
哈希检查#哈希检查:|
值#值:|
VPET 问题解决工具#VPET 问题解决工具:|
打开设置编辑器#打开设置编辑器:|
打开存档查看器#打开存档查看器:|
打开翻译文本#打开翻译文本:|
全部重置#全部重置:|
哈希#哈希:|
第一次启动桌宠打不开?#第一次启动桌宠打不开?:|

View File

@ -0,0 +1,48 @@
VPET 设置编辑器#VPET設定編輯器:|
打开文件#打開文件:|
从资源管理器打开文件#從資料總管打開文件:|
重置#重置:|
全部保存#全部保存:|
Mod管理#Mod管理:|
保存为退出位置#保存為退出位置:|
设为当前位置#設為當前位置:|
设为当前窗口左上角顶点坐标的位置#設為當前視窗左上角頂點座標的位置:|
每次间隔#每次間隔:|
备份设置#備份設定:|
桌宠设置#桌寵設定:|
桌宠状态#桌寵狀態:|
启用桌宠状态#啟用桌寵狀態:|
分钟左右主动进行一次互动 (走路发呆爬墙等) #分鐘左右主動進行一次互動(走路發呆爬牆等):|
清空全部#清空全部:|
搜索名称#蒐索名稱:|
链接#鏈接:|
每周期一次#每週期一次:|
搜索模组#蒐索模組:|
清除失效模组#清除失效模組:|
清除全部模组#清除全部模組:|
模组名称:#模組名稱::|
作者:#作者::|
模组版本:#模組版本::|
游戏版本:#遊戲版本::|
模组路径:#模組路徑::|
启用模组#啟用模組:|
启用模组代码#啟用模組程式碼:|
打开所在文件夹#打開所在資料夾:|
打开创意工坊页面#打開創意工坊頁面:|
VPET 存档查看器#VPET存檔檢視器:|
搜索存档#蒐索存檔:|
保存时间#保存時間:|
游玩时长#遊玩時長:|
数据#數據:|
保存日期#保存日期:|
模式#模式:|
等级#等級:|
哈希检查#雜湊檢查:|
值#值:|
VPET 问题解决工具#VPET問題解决工具:|
打开设置编辑器#打開設定編輯器:|
打开存档查看器#打開存檔檢視器:|
打开翻译文本#打開翻譯文字:|
全部重置#全部重置:|
哈希#雜湊:|
第一次启动桌宠打不开?#第一次啟動桌寵打不開?:|

View File

@ -30,9 +30,10 @@ public class MainWindowVM : ObservableClass<MainWindowVM>
private void FirstStartFailedCommand_ExecuteCommand()
{
Utils.OpenLink(
"https://steamcommunity.com/games/1920960/announcements/detail/3681184905256253203"
);
if (LocalizeCore.CurrentCulture == "zh-Hans")
Utils.OpenLink("https://www.bilibili.com/read/cv26510496/");
else
Utils.OpenLink("https://steamcommunity.com/games/1920960/announcements/detail/3681184905256253203");
}
#region Property

View File

@ -1,71 +1,40 @@
<pu:WindowX
x:Class="VPet.Solution.Views.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:ll="clr-namespace:LinePutScript.Localization.WPF;assembly=LinePutScript.Localization.WPF"
xmlns:local="clr-namespace:VPet.Solution"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:pu="https://opensource.panuon.com/wpf-ui"
xmlns:system="clr-namespace:System;assembly=mscorlib"
xmlns:vm="clr-namespace:VPet.Solution.ViewModels"
Title="{ll:Str 'VPET 问题解决工具'}"
Width="800"
Height="450"
MinWidth="400"
MinHeight="200"
d:DataContext="{d:DesignInstance Type=vm:MainWindowVM}"
WindowStartupLocation="CenterScreen"
mc:Ignorable="d">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" MinHeight="200" />
<RowDefinition />
</Grid.RowDefinitions>
<Label
Height="Auto"
Content="{ll:Str 'VPET 问题解决工具'}"
FontSize="32"
Style="{DynamicResource Label_BaseStyle}" />
<ComboBox
x:Name="ComboBox_Langs"
Grid.Column="1"
HorizontalAlignment="Right"
VerticalAlignment="Top"
ItemsSource="{Binding AvailableCultures}"
SelectedItem="{Binding CurrentCulture}"
Style="{DynamicResource ComboBox_BaseStyle}">
<ComboBox.ContextMenu>
<ContextMenu>
<MenuItem Command="{Binding OpenLocalTextCommand}" Header="{ll:Str 打开翻译文本}" />
</ContextMenu>
</ComboBox.ContextMenu>
</ComboBox>
<Grid Grid.Row="1">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<StackPanel>
<Button
x:Name="Button_OpenSettingEditor"
Click="Button_OpenSettingEditor_Click"
Content="{ll:Str 打开设置编辑器}"
FontSize="16"
Style="{DynamicResource Button_BaseStyle}" />
<Button
x:Name="Button_OpenSaveViewer"
Click="Button_OpenSaveViewer_Click"
Content="{ll:Str 打开存档查看器}"
FontSize="16"
Style="{DynamicResource Button_BaseStyle}" />
</StackPanel>
<Button
Grid.Row="1"
Command="{Binding FirstStartFailedCommand}"
Content="{ll:Str '第一次启动桌宠打不开?'}"
FontSize="16"
Style="{DynamicResource LinkButtonStyle}" />
<pu:WindowX x:Class="VPet.Solution.Views.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:ll="clr-namespace:LinePutScript.Localization.WPF;assembly=LinePutScript.Localization.WPF"
xmlns:local="clr-namespace:VPet.Solution" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:pu="https://opensource.panuon.com/wpf-ui" xmlns:system="clr-namespace:System;assembly=mscorlib"
xmlns:vm="clr-namespace:VPet.Solution.ViewModels" Title="{ll:Str 'VPET 问题解决工具'}" Width="400" Height="450"
MinWidth="400" MinHeight="200" d:DataContext="{d:DesignInstance Type=vm:MainWindowVM}"
WindowStartupLocation="CenterScreen" mc:Ignorable="d">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" MinHeight="200" />
<RowDefinition />
</Grid.RowDefinitions>
<Label Height="Auto" Content="{ll:Str 'VPET 问题解决工具'}" FontSize="32" Style="{DynamicResource Label_BaseStyle}" />
<ComboBox MinWidth="150" x:Name="ComboBox_Langs" Grid.Column="1" HorizontalAlignment="Right"
VerticalAlignment="Top" ItemsSource="{Binding AvailableCultures}"
SelectedItem="{Binding CurrentCulture}" Style="{DynamicResource ComboBox_BaseStyle}">
<ComboBox.ContextMenu>
<ContextMenu>
<MenuItem Command="{Binding OpenLocalTextCommand}" Header="{ll:Str 打开翻译文本}" />
</ContextMenu>
</ComboBox.ContextMenu>
</ComboBox>
<Grid Grid.Row="1">
<Grid.RowDefinitions>
<RowDefinition />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<StackPanel>
<Button MinWidth="150" x:Name="Button_OpenSettingEditor" Click="Button_OpenSettingEditor_Click"
Content="{ll:Str 打开设置编辑器}" FontSize="16" Style="{DynamicResource Button_BaseStyle}" />
<Button MinWidth="150" x:Name="Button_OpenSaveViewer" Click="Button_OpenSaveViewer_Click"
Content="{ll:Str 打开存档查看器}" FontSize="16" Style="{DynamicResource Button_BaseStyle}" />
</StackPanel>
<Button Grid.Row="1" Command="{Binding FirstStartFailedCommand}" Content="{ll:Str '第一次启动桌宠打不开?'}"
FontSize="16" Style="{DynamicResource LinkButtonStyle}" />
</Grid>
</Grid>
</Grid>
</pu:WindowX>