hide: disable puzzle mode from editor without removing code

Comment out initPuzzleUI() call and remove puzzle_door from
interaction type dropdown — all puzzle code remains intact for
future re-enablement.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Jose Luis
2026-03-20 17:45:19 +01:00
parent e7b18afd1a
commit 6ba3fa457a
2 changed files with 2 additions and 2 deletions

View File

@@ -856,7 +856,7 @@ function updateProps() {
html += '<div style="color:var(--red);font-size:10px;padding:2px 0;">⚠️ Set target X/Y! Every exit needs explicit coordinates.</div>'; html += '<div style="color:var(--red);font-size:10px;padding:2px 0;">⚠️ Set target X/Y! Every exit needs explicit coordinates.</div>';
} }
} else if (t === 'interaction') { } else if (t === 'interaction') {
html += propSelect('Type', 'type', ent.type, ['sign','workshop','puzzle_door','terminal','door']); html += propSelect('Type', 'type', ent.type, ['sign','workshop','terminal','door']); // puzzle_door hidden for now
html += propText('Label', 'label', ent.label || ''); html += propText('Label', 'label', ent.label || '');
html += propTextarea('Dialog', 'dialog', (ent.dialog || []).join('\n')); html += propTextarea('Dialog', 'dialog', (ent.dialog || []).join('\n'));
if (ent.type === 'puzzle_door') { if (ent.type === 'puzzle_door') {

View File

@@ -14,7 +14,7 @@ document.addEventListener('DOMContentLoaded', () => {
() => { () => {
initRenderer(); initRenderer();
initEvents(); initEvents();
initPuzzleUI(); // initPuzzleUI(); // HIDDEN: puzzle mode disabled for now
if (loadFromStorage()) { if (loadFromStorage()) {
updateComponentButtons(); updateComponentButtons();
evaluateAll(); evaluateAll();