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