mirror of
https://github.com/Wx-2025/ST-Amily2-Chat-Optimisation.git
synced 2026-06-06 16:15:50 +00:00
Update drawer.js
This commit is contained in:
@@ -97,6 +97,10 @@ async function initializePanel(contentPanel, errorContainer) {
|
|||||||
const worldEditorPanelHtml = `<div id="amily2_world_editor_panel" style="display: none;">${worldEditorContent}</div>`;
|
const worldEditorPanelHtml = `<div id="amily2_world_editor_panel" style="display: none;">${worldEditorContent}</div>`;
|
||||||
mainContainer.append(worldEditorPanelHtml);
|
mainContainer.append(worldEditorPanelHtml);
|
||||||
|
|
||||||
|
const glossaryContent = await $.get(`${extensionFolderPath}/assets/amily2-glossary.html`);
|
||||||
|
const glossaryPanelHtml = `<div id="amily2_glossary_panel" style="display: none;">${glossaryContent}</div>`;
|
||||||
|
mainContainer.append(glossaryPanelHtml);
|
||||||
|
|
||||||
// 在面板创建后,加载世界书编辑器脚本
|
// 在面板创建后,加载世界书编辑器脚本
|
||||||
const worldEditorScriptId = 'world-editor-script';
|
const worldEditorScriptId = 'world-editor-script';
|
||||||
if (!document.getElementById(worldEditorScriptId)) {
|
if (!document.getElementById(worldEditorScriptId)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user