diff --git a/editor.html b/editor.html index 1da6618..c408a00 100644 --- a/editor.html +++ b/editor.html @@ -1078,6 +1078,12 @@ function s2update(){ let selGame=null,dragging=null,epFor=null; const STORY_MAX=5,MULTI_MAX=3; +// unlockSection: Markiert eine Sektion als "gesehen" für den Live-Code-Preview +function unlockSection(key){ + if(typeof unlocked !== 'undefined') unlocked.add(key); + if(typeof setCodeFocus === 'function') setCodeFocus(key); +} + function s3init(){ unlockSection('movement'); unlockSection('failmode'); unlockSection('fieldcount'); unlockSection('fields'); document.getElementById('cntVal').textContent=ST.fieldCount; @@ -2574,320 +2580,6 @@ setTimeout(updateCodePane, 200);