mirror of
https://gitee.com/sli97/behavior-eden-coco-plugin.git
synced 2025-10-09 08:36:25 +00:00
version:1.0.1
This commit is contained in:
14
dist/contributions/inspector/behavior-editor.js
vendored
14
dist/contributions/inspector/behavior-editor.js
vendored
@@ -3,8 +3,8 @@
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ready = exports.update = exports.$ = exports.template = void 0;
|
||||
exports.template = `
|
||||
<div style="display:flex;justify-content:center;align-items:center;margin-top:10px;padding-right:8px;">
|
||||
<ui-button class="editor" style="height:24px;padding:0 16px;">Edit Tree</ui-prop>
|
||||
<div style="display:flex;justify-content:center;align-items:center;margin-top:10px;">
|
||||
<ui-button class="editor" style="height:24px;padding:0 16px;">Create / Edit</ui-prop>
|
||||
</div>
|
||||
|
||||
`;
|
||||
@@ -64,15 +64,17 @@ function ready() {
|
||||
});
|
||||
if (success) {
|
||||
console.log(`JSON文件挂载成功`);
|
||||
Editor.Message.request("behavior-eden", "open-panel");
|
||||
}
|
||||
else {
|
||||
console.warn("JSON文件挂载失败");
|
||||
return;
|
||||
}
|
||||
}
|
||||
else {
|
||||
// 打开插件面板
|
||||
Editor.Message.request("behavior-eden", "open-panel");
|
||||
// 打开插件面板
|
||||
const success = await Editor.Message.request("behavior-eden", "open-panel");
|
||||
// success为false,可能是已经打开了,通知面板刷新
|
||||
if (!success) {
|
||||
await Editor.Message.request("behavior-eden", "refresh-panel");
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user