Commit 93aabcde authored by Leon Arnott's avatar Leon Arnott
Browse files

Fixed a bug where (after:) would stop working if a mouse or key input was...

Fixed a bug where (after:) would stop working if a mouse or key input was performed and the optional second value wasn't provided.
parent 6866edca5b9c
......@@ -6,6 +6,7 @@ Documentation is at http://twine2.neocities.org/. See below for compilation inst
#### Bugfixes
* Fixed a bug where `(after:)` would stop working (the hook wouldn't appear) when the mouse was clicked or a key was pressed, and the optional second value wasn't provided.
* Fixed a bug where `(click:?page)` would suppress a gradient background applied to ?Page via `(enchant:)` or `(change:)`.
* Fixed an incorrectly-worded error message resulting from a data name containing an error (such as `$a's (a: 1 to 2)`, which is invalid syntax).
* Fixed a bug where attempting to generate certain error messages would instead cause an unrelated Javascript error to occur.
......
......@@ -577,7 +577,7 @@ define(['jquery','macros', 'utils', 'utils/renderutils', 'datatypes/colour', 'da
event: {
when: true,
filter: section => {
if (Utils.anyInputDown()) {
if (Utils.anyInputDown() && skip) {
delay -= skip;
}
return section.eval("Operations").Identifiers.time > delay ? [true] : [];
......
......@@ -156,6 +156,7 @@
}
const rt = defs.returnType.toLowerCase();
return `This is a <b>call to the \`(${defs.name}:)\` macro</b>. ${
rt === "metadata" ? `Metadata macros like this should be placed at the very top of the passage, before all other macros.` :
rt === "instant" || rt === "command" ? `It produces a <span class="cm-harlowe-3-macroName-command">command</span>, so it should appear in passage code without being connected to a hook.` :
rt === "changer" ? `It produces a <span class="cm-harlowe-3-macroName-changer">changer</span>, which can be placed to the left of a hook or a command (passage links are commands), or combined with other changers.` :
rt === "any" || rt === "string" ? "" :
......
......@@ -224,7 +224,7 @@ This panel ↓ will show any variables that are set by the code.
<main>${outputFile}
<p><small>This manual was generated at: ${new Date}</small></p>
</main>
/* Preview */
<!-- Preview -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.50.2/codemirror.min.js"></script>
<link rel=stylesheet href="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.50.2/codemirror.min.css">
<style>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment