Mscript #2

Merged
sixteenmillimeter merged 8 commits from mscript into master 2018-09-02 12:04:39 +00:00
1 changed files with 12 additions and 0 deletions
Showing only changes of commit d306bc915c - Show all commits

View File

@ -47,7 +47,19 @@ mse.mscript.fromSequence = function () {
tmp = tmp.map(line => {
return `${line.cmd} ${line.num}`
})
if (mcopy.loop > 1) {
tmp.map(line => {
return ` ${line}`;
})
tmp.reverse();
tmp.push(`LOOP ${mcopy.loop}`);
tmp.reverse();
tmp.push('END');
}
str = tmp.join('\n');
nav.change('script');
cont = confirm(`Are you sure you want to over-write the current sequence?`);
if (cont) {