Skip to content

Bug fixes #219

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Bug fixes
  • Loading branch information
graham-trott committed Aug 9, 2020
commit b20eeea54ed582ad82439b4741bbd53856528af1
14 changes: 7 additions & 7 deletions iwsy/iwsy.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,10 @@ const IWSY = (playerElement, scriptObject) => {
// Set the visibility of a block
const setVisibility = (block, showHide) => {
if (showHide) {
// block.element.style.opacity = `1.0`;
block.element.style.opacity = `1.0`;
block.element.style.display = `block`;
} else {
// block.element.style.opacity = `0.0`;
block.element.style.opacity = `0.0`;
block.element.style.display = `none`;
}
};
Expand Down Expand Up @@ -535,7 +535,7 @@ const IWSY = (playerElement, scriptObject) => {
// } else if (continueFlag) {
// step.next();
// }

// An animation is not a transition, so move on immediately
step.next();
};
Expand Down Expand Up @@ -934,10 +934,10 @@ const IWSY = (playerElement, scriptObject) => {

// Go to a specified label
const goto = step => {
const target = script.labels[step.target];
if (typeof target !== `undefined`) {
script.scanTarget = target;
scan();
const index = script.labels[step.target];
if (typeof index !== `undefined`) {
nextStep = script.steps[index];
doStep(nextStep);
} else {
throw Error(`Unknown label '${step.target}`);
}
Expand Down