From bb8edf5896c0b24ac85c339cd7046d1682d1d472 Mon Sep 17 00:00:00 2001
From: zxcPandora <81985226+zxcPandora@users.noreply.github.com>
Date: Wed, 13 Oct 2021 17:42:35 +0800
Subject: [PATCH] Update for Chinese version
---
Language.zh-CN.resx | 30 +++++++++++++++---------------
MainWindow.cs | 4 ++++
SkinPackMakerWindow.cs | 9 ++++++++-
3 files changed, 27 insertions(+), 16 deletions(-)
diff --git a/Language.zh-CN.resx b/Language.zh-CN.resx
index 1f42ead..61c54a2 100644
--- a/Language.zh-CN.resx
+++ b/Language.zh-CN.resx
@@ -124,10 +124,10 @@
AO
- Asset Type
+ 资源类型
- Error occured while trying to delete the old archive: \n
+ 尝试删除皮肤缓存时出错: \n
Cavity
@@ -139,16 +139,16 @@
Color
- Choose...
+ 选择图片
- Remove
+ 移除图片
英文
- Error
+ 错误
无法加载,此文件是否为规范的皮肤文件?
@@ -166,13 +166,13 @@
游戏路径设置成功,当前游戏为:
- General Info
+ 生成设置
- Generate
+ 生成皮肤包
- Generating...
+ 生成中...
Glossiness
@@ -181,7 +181,7 @@
Illumination
- File is probably not an image (OutOfMemoryException)
+ 所选文件可能不是图片(OutOfMemoryException)
导入皮肤
@@ -217,7 +217,7 @@
皮肤缓存
- Save Path
+ 保存路径
请先设置游戏路径
@@ -226,25 +226,25 @@
皮肤文件
- Skin Name
+ 皮肤名称
- SkinPack Maker
+ 皮肤打包器
- Please select a path to save the skinpack!
+ 请选择保存皮肤包的路径!
Specular
- Textures Set (Drag & Drop / Click)
+ 纹理贴图导入 (拖放.png图片 / 右击相关区域)
提示
- Tools
+ 工具
压缩包路径错误或不存在!
diff --git a/MainWindow.cs b/MainWindow.cs
index 1a6332b..925051f 100644
--- a/MainWindow.cs
+++ b/MainWindow.cs
@@ -10,6 +10,7 @@
namespace Titanfall2_SkinTool
{
+
public partial class MainWindow : Form
{
string msg = null;
@@ -424,7 +425,10 @@ private void LanguageEnglish_Click(object sender, EventArgs e)
private void skinPackMakerToolStripMenuItem_Click(object sender, EventArgs e)
{
SkinPackMakerWindow window = new SkinPackMakerWindow();
+ window.SetGame(SelectedGame);
window.ShowDialog();
}
+
+
}
}
diff --git a/SkinPackMakerWindow.cs b/SkinPackMakerWindow.cs
index 1442a37..2e6857c 100644
--- a/SkinPackMakerWindow.cs
+++ b/SkinPackMakerWindow.cs
@@ -21,17 +21,22 @@ namespace Titanfall2_SkinTool
{
public partial class SkinPackMakerWindow : Form
{
+ public void SetGame(String SelectedGame)
+ {
+ this.SelectedGame = SelectedGame;
+ }
+ string SelectedGame = null;
System.Resources.ResourceManager rm = new ResourceManager("Titanfall2_SkinTool.Language", Assembly.GetExecutingAssembly());
public SkinPackMakerWindow()
{
InitializeComponent();
DisableAllTextures();
-
// LOCALIZATION
// General Info Group
+ this.Text = rm.GetString("SkinPackMaker");
generalInfoGroup.Text = rm.GetString("GeneralInfoGroup");
skinNameLabel.Text = rm.GetString("SkinName");
assetTypeLabel.Text = rm.GetString("AssetType");
@@ -51,6 +56,8 @@ public SkinPackMakerWindow()
// Generate Button
generateSkinPackButton.Text = rm.GetString("Generate");
+ // Default Path
+ skinPackPathTextBox.Text= Environment.CurrentDirectory;
}
private void openSkinPackPathSelectButton_Click(object sender, EventArgs e)