Skip to content

Commit 24417bc

Browse files
committed
feat: Improve user guide
1 parent e96280f commit 24417bc

File tree

9 files changed

+274
-17
lines changed

9 files changed

+274
-17
lines changed

VNGod/Resource/Strings/Strings.Designer.cs

Lines changed: 127 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

VNGod/Resource/Strings/Strings.resx

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
<value>Description:</value>
128128
</data>
129129
<data name="Welcome" xml:space="preserve">
130-
<value>Welcome to VNGod! It looks like this is your first time running a game. Please note that VNGod will hide during playing, and it will showup if you close the game. If that doesn't work properly, please edit the process name in 'edit info'.</value>
130+
<value>Welcome to VNGod! It looks like this is your first time running a game. Please note that VNGod will hide during playing, and it will showup if you close the game. If that doesn't work properly, please edit the process name in 'edit info'. If you have no idea how to use it, please see docs in settings!</value>
131131
</data>
132132
<data name="Name" xml:space="preserve">
133133
<value>Name:</value>
@@ -352,4 +352,46 @@
352352
<data name="WebDAVNotEnabledWarn" xml:space="preserve">
353353
<value>WebDAV not enabled.</value>
354354
</data>
355+
<data name="PreparingUploadProgress" xml:space="preserve">
356+
<value>Preparing upload...</value>
357+
</data>
358+
<data name="UploadingFilesProgress" xml:space="preserve">
359+
<value>Uploading files...</value>
360+
</data>
361+
<data name="UploadCompleteProgress" xml:space="preserve">
362+
<value>Upload complete</value>
363+
</data>
364+
<data name="DownloadingFilesProgress" xml:space="preserve">
365+
<value>Downloading files...</value>
366+
</data>
367+
<data name="DecompressingFilesProgress" xml:space="preserve">
368+
<value>Decompressing files...</value>
369+
</data>
370+
<data name="DownloadCompleteProgress" xml:space="preserve">
371+
<value>Download complete</value>
372+
</data>
373+
<data name="CompressingFilesProgress" xml:space="preserve">
374+
<value>Compressing files...</value>
375+
</data>
376+
<data name="ExtractingFilesProgress" xml:space="preserve">
377+
<value>Extracting files...</value>
378+
</data>
379+
<data name="Docs" xml:space="preserve">
380+
<value>Docs</value>
381+
</data>
382+
<data name="Other" xml:space="preserve">
383+
<value>Other</value>
384+
</data>
385+
<data name="SevenZipPath" xml:space="preserve">
386+
<value>7-zip Path</value>
387+
</data>
388+
<data name="SevenZipNotFound" xml:space="preserve">
389+
<value>7-zip not found</value>
390+
</data>
391+
<data name="InitWebDAV" xml:space="preserve">
392+
<value>Initializing WebDAV in background...</value>
393+
</data>
394+
<data name="WebDAVInitSuccess" xml:space="preserve">
395+
<value>WebDAV config Valid!</value>
396+
</data>
355397
</root>

VNGod/Resource/Strings/Strings.zh-CN.resx

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@
127127
<value>信息:</value>
128128
</data>
129129
<data name="Welcome" xml:space="preserve">
130-
<value>哦我的上帝,欢迎来到 VNGod!看起来您是第一次启动游戏。一旦启动,主窗口会自动隐藏,直到那个游戏退出。如果程序表现异常,那么请您在“编辑信息”中调整一下进程名称。</value>
130+
<value>哦我的上帝,欢迎来到 VNGod!看起来您是第一次启动游戏。一旦启动,主窗口会自动隐藏,直到那个游戏退出。如果程序表现异常,那么请您在“编辑信息”中调整一下进程名称。如果你不知道怎么使用,可以去设置里面查看文档!</value>
131131
</data>
132132
<data name="Name" xml:space="preserve">
133133
<value>名称:</value>
@@ -334,4 +334,46 @@
334334
<data name="WebDAVNotEnabledWarn" xml:space="preserve">
335335
<value>没有启用 WebDAV。</value>
336336
</data>
337+
<data name="PreparingUploadProgress" xml:space="preserve">
338+
<value>准备上传...</value>
339+
</data>
340+
<data name="UploadingFilesProgress" xml:space="preserve">
341+
<value>上传文件...</value>
342+
</data>
343+
<data name="UploadCompleteProgress" xml:space="preserve">
344+
<value>上传完成</value>
345+
</data>
346+
<data name="DownloadingFilesProgress" xml:space="preserve">
347+
<value>下载文件...</value>
348+
</data>
349+
<data name="DecompressingFilesProgress" xml:space="preserve">
350+
<value>解压文件...</value>
351+
</data>
352+
<data name="DownloadCompleteProgress" xml:space="preserve">
353+
<value>下载完成</value>
354+
</data>
355+
<data name="CompressingFilesProgress" xml:space="preserve">
356+
<value>压缩文件...</value>
357+
</data>
358+
<data name="ExtractingFilesProgress" xml:space="preserve">
359+
<value>提取文件...</value>
360+
</data>
361+
<data name="Docs" xml:space="preserve">
362+
<value>文档</value>
363+
</data>
364+
<data name="Other" xml:space="preserve">
365+
<value>杂项</value>
366+
</data>
367+
<data name="SevenZipPath" xml:space="preserve">
368+
<value>7-zip 路径</value>
369+
</data>
370+
<data name="SevenZipNotFound" xml:space="preserve">
371+
<value>找不到 7-zip</value>
372+
</data>
373+
<data name="InitWebDAV" xml:space="preserve">
374+
<value>正在后台初始化 WebDAV...</value>
375+
</data>
376+
<data name="WebDAVInitSuccess" xml:space="preserve">
377+
<value>WebDAV 配置有效!</value>
378+
</data>
337379
</root>

VNGod/Utils/CompressHelper.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
using System.Diagnostics;
1212
using VNGod.Properties;
1313
using VNGod.Models;
14+
using VNGod.Resource.Strings;
1415

1516
namespace VNGod.Services
1617
{
@@ -95,7 +96,7 @@ public static async Task CompressSplitZipFileAsync(string zipFilePath, string fo
9596
string percentStr = e.Data.Substring(index-2,2);
9697
if (double.TryParse(percentStr, out double percent))
9798
{
98-
progress.Report(new StagedProgressInfo { StagePercentage = percent, StageName = "Compressing files..." });
99+
progress.Report(new StagedProgressInfo { StagePercentage = percent, StageName = Strings.CompressingFilesProgress });
99100
}
100101
}
101102
}
@@ -132,7 +133,7 @@ public static async Task DecompressSplitZipsAsync(string zipFilePath, string ext
132133
string percentStr = e.Data.Substring(index - 2, 2);
133134
if (double.TryParse(percentStr, out double percent))
134135
{
135-
progress.Report(new StagedProgressInfo { StagePercentage = percent, StageName = "Extracting files..." });
136+
progress.Report(new StagedProgressInfo { StagePercentage = percent, StageName = Strings.ExtractingFilesProgress });
136137
}
137138
}
138139
}

VNGod/Utils/SettingHelper.cs

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
using HandyControl.Controls;
2+
using System;
3+
using System.Collections.Generic;
4+
using System.Linq;
5+
using System.Text;
6+
using System.Threading.Tasks;
7+
using VNGod.Properties;
8+
using VNGod.Resource.Strings;
9+
using System.IO;
10+
11+
namespace VNGod.Utils
12+
{
13+
internal static class SettingHelper
14+
{
15+
public static async Task CheckSettingsAsync()
16+
{
17+
if (!File.Exists(Settings.Default.SevenZipPath))
18+
{
19+
Growl.Warning(Strings.SevenZipNotFound);
20+
}
21+
// Reinitialize WebDAV client with new settings
22+
Growl.Info(Strings.InitWebDAV);
23+
if (!await WebDAVHelper.InitializeClient())
24+
Growl.Warning(Strings.WebDAVInitFailed);
25+
else
26+
Growl.Success(Strings.WebDAVInitSuccess);
27+
}
28+
}
29+
}

0 commit comments

Comments
 (0)