Initial effects
This commit is contained in:
@@ -1,6 +1,16 @@
|
||||
import SequenceRunner from './sequence-runner.js';
|
||||
import UI from './ui.js';
|
||||
|
||||
function getGlobalMode() {
|
||||
const m1 = document.getElementById('mode-select');
|
||||
if (m1) return m1.value;
|
||||
const m2 = document.getElementById('seq-mode-select');
|
||||
if (m2) return m2.value;
|
||||
const m3 = document.getElementById('text-mode-select');
|
||||
if (m3) return m3.value;
|
||||
return 'direct';
|
||||
}
|
||||
|
||||
export function buildQuickSequencesHTML() {
|
||||
return `
|
||||
<div class="card" id="quick-sequences-card" style="margin-bottom: 16px;">
|
||||
@@ -49,7 +59,7 @@ export async function initQuickSequences(bgName, getSpots, getSteps, onStepCompl
|
||||
if (seq) {
|
||||
stopBtn.style.display = 'block';
|
||||
const { steps1, steps2 } = getSteps();
|
||||
await SequenceRunner.run(seq, getSpots(), steps1, steps2, onStepComplete);
|
||||
await SequenceRunner.run(seq, getSpots(), steps1, steps2, getGlobalMode(), onStepComplete);
|
||||
stopBtn.style.display = 'none';
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user