File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -244,10 +244,10 @@ const IWSY = (playerElement, scriptObject) => {
244
244
// Set the visibility of a block
245
245
const setVisibility = ( block , showHide ) => {
246
246
if ( showHide ) {
247
- // block.element.style.opacity = `1.0`;
247
+ block . element . style . opacity = `1.0` ;
248
248
block . element . style . display = `block` ;
249
249
} else {
250
- // block.element.style.opacity = `0.0`;
250
+ block . element . style . opacity = `0.0` ;
251
251
block . element . style . display = `none` ;
252
252
}
253
253
} ;
@@ -535,7 +535,7 @@ const IWSY = (playerElement, scriptObject) => {
535
535
// } else if (continueFlag) {
536
536
// step.next();
537
537
// }
538
-
538
+
539
539
// An animation is not a transition, so move on immediately
540
540
step . next ( ) ;
541
541
} ;
@@ -934,10 +934,10 @@ const IWSY = (playerElement, scriptObject) => {
934
934
935
935
// Go to a specified label
936
936
const goto = step => {
937
- const target = script . labels [ step . target ] ;
938
- if ( typeof target !== `undefined` ) {
939
- script . scanTarget = target ;
940
- scan ( ) ;
937
+ const index = script . labels [ step . target ] ;
938
+ if ( typeof index !== `undefined` ) {
939
+ nextStep = script . steps [ index ] ;
940
+ doStep ( nextStep ) ;
941
941
} else {
942
942
throw Error ( `Unknown label '${ step . target } ` ) ;
943
943
}
You can’t perform that action at this time.
0 commit comments