diff --git a/editor/App.vue b/editor/App.vue index a0f83d4..1d5aefe 100644 --- a/editor/App.vue +++ b/editor/App.vue @@ -111,19 +111,7 @@ onMounted(() => restoreOrLoad()) - ● 未保存 - - 起始场景: - -
{{ error }}
@@ -173,9 +161,6 @@ html, body { width: 100%; height: 100%; overflow: hidden; background: #0a0a16; c .toolbar-actions button:hover { background: rgba(255,255,255,0.14); } .toolbar-actions button.secondary { color: #8cf; border-color: rgba(100,200,255,0.2); background: rgba(100,200,255,0.06); } .toolbar-actions button.active { background: rgba(100,200,255,0.18); color: #fff; } -.toolbar-start { margin-left: auto; font-size: 12px; color: #777; display: flex; align-items: center; gap: 6px; } -.start-select { padding: 4px 8px; font-size: 12px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 3px; color: #ccc; } -.dirty-indicator { font-size: 11px; color: #ff9800; } .error-bar { padding: 8px 16px; background: #4a1a1a; color: #f88; font-size: 13px; flex-shrink: 0; } .editor-main { flex: 1; display: flex; overflow: hidden; } .graph-area { flex: 1; } diff --git a/editor/components/NodeEditor.vue b/editor/components/NodeEditor.vue index d543429..823774c 100644 --- a/editor/components/NodeEditor.vue +++ b/editor/components/NodeEditor.vue @@ -40,6 +40,7 @@ function onBlur() { } else { const { scenes } = store.gameData store.gameData = { ...parsed, scenes } + store.startSceneId = parsed.startScene || store.startSceneId store.autoSave() } saved.value = true