编辑器扩展框架主菜单中添加动画状态机编辑器工具链接

This commit is contained in:
dgflash
2024-11-06 15:41:30 +08:00
parent b9df0826d2
commit 03237c6ef9
6 changed files with 24 additions and 4 deletions

2
dist/assets-menu.js vendored
View File

@@ -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`,

3
dist/main.js vendored
View File

@@ -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');
}
};

View File

@@ -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",
};

View File

@@ -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: "创建框架模板"
};

View File

@@ -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"
}
}
}

View File

@@ -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');
}
};