From 03237c6ef982f1512577df2eb8073418a45de770 Mon Sep 17 00:00:00 2001 From: dgflash Date: Wed, 6 Nov 2024 15:41:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=99=A8=E6=89=A9=E5=B1=95?= =?UTF-8?q?=E6=A1=86=E6=9E=B6=E4=B8=BB=E8=8F=9C=E5=8D=95=E4=B8=AD=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E5=8A=A8=E7=94=BB=E7=8A=B6=E6=80=81=E6=9C=BA=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E5=99=A8=E5=B7=A5=E5=85=B7=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/assets-menu.js | 2 +- dist/main.js | 3 +++ i18n/en.js | 4 +++- i18n/zh.js | 4 +++- package.json | 12 +++++++++++- src/main.ts | 3 +++ 6 files changed, 24 insertions(+), 4 deletions(-) diff --git a/dist/assets-menu.js b/dist/assets-menu.js index 3e785ad..34a6df1 100644 --- a/dist/assets-menu.js +++ b/dist/assets-menu.js @@ -53,7 +53,7 @@ function onAssetMenu(assetInfo) { ] }, { - label: `i18n:oops-framework.tools`, + label: `i18n:oops-framework.tools_asset_menu`, submenu: [ { label: `i18n:oops-framework.tools_compress`, diff --git a/dist/main.js b/dist/main.js index bf29f35..e0940da 100644 --- a/dist/main.js +++ b/dist/main.js @@ -52,5 +52,8 @@ exports.methods = { /** 点亮 Github 星星 */ github() { electron_1.shell.openExternal('https://github.com/dgflash/oops-framework'); + }, + animator_editor() { + electron_1.shell.openExternal('https://oops-1255342636.cos.ap-shanghai.myqcloud.com/tools/animator-editor/index.html'); } }; diff --git a/i18n/en.js b/i18n/en.js index cfe9f34..afe506e 100644 --- a/i18n/en.js +++ b/i18n/en.js @@ -18,7 +18,9 @@ module.exports = { createBll: "Create ECS business layer script", createView: "Create ECS view layer script", createViewMvvm: "Create ECS view layer script - MVVM", - tools: "Tools", + tools: "Framework Tools", + tools_asset_menu: "Tools", tools_compress: "Image Compression", + tools_animator_editor: "Animation State Machine Editor", panel_create_file: "Create Framework Template", }; \ No newline at end of file diff --git a/i18n/zh.js b/i18n/zh.js index eb00aa2..79f9f54 100644 --- a/i18n/zh.js +++ b/i18n/zh.js @@ -18,7 +18,9 @@ module.exports = { createBll: "创建 ECS 业务层脚本", createView: "创建 ECS 视图层脚本", createViewMvvm: "创建 ECS 视图层脚本 - MVVM", - tools: "工具", + tools: "框架工具", + tools_asset_menu: "工具", tools_compress: "图片压缩", + tools_animator_editor: "动画状态机编辑器", panel_create_file: "创建框架模板" }; \ No newline at end of file diff --git a/package.json b/package.json index 8fa3181..d3d1f42 100644 --- a/package.json +++ b/package.json @@ -50,6 +50,11 @@ } }, "menu": [ + { + "path": "i18n:oops-framework.name/i18n:oops-framework.tools", + "label": "i18n:oops-framework.tools_animator_editor", + "message": "animator_editor" + }, { "path": "i18n:oops-framework.name", "label": "i18n:oops-framework.document_oops", @@ -135,6 +140,11 @@ "methods": [ "github" ] + }, + "animator_editor": { + "methods": [ + "animator_editor" + ] } } }, @@ -150,4 +160,4 @@ "typedoc": "^0.23.24", "typescript": "^4.8.2" } -} +} \ No newline at end of file diff --git a/src/main.ts b/src/main.ts index d9e021a..bee74b2 100644 --- a/src/main.ts +++ b/src/main.ts @@ -52,5 +52,8 @@ export const methods: { [key: string]: (...any: any) => any } = { /** 点亮 Github 星星 */ github() { shell.openExternal('https://github.com/dgflash/oops-framework'); + }, + animator_editor() { + shell.openExternal('https://oops-1255342636.cos.ap-shanghai.myqcloud.com/tools/animator-editor/index.html'); } }; \ No newline at end of file