-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## Changelog: * Fixed an issue with the `selected` keyword in the `<<cycle>>` and `<<listbox>>` macros' `<<option>>` tags. * Fixed instances where using the `[img[]]` markup as an argument to macros would drop the `link-image` class. * Fixed `Config.history.maxStates` to disallow unlimited states (value: `0`). * Added the `init` special tag that, similar to `StoryInit`, allows pre-story-start initialization tasks. Intended for add-on/library use. * Added a `data-init-passage` content attribute to `StoryInterface` that allows content to be updated only once at initialization. * Added the `State.metadata.entries()` and `State.metadata.keys()` static methods. * Added a `once` keyword to the `<<cycle>>` macro that ends the cycle upon reaching the final option. * Added the `<Array>.countWith()` method. * Added the `Save` Events API. * Added support for template literals within TwineScript. * Added various accessibility improvements. * Updated the `<<done>>` macro to better serve when used to wait for DOM updates. * `<<widget>>` macro updates: * Added a `container` keyword that allows non-void/container widgets and an associated `_contents` special variable. * Added a new special arguments variable, `_args`, and deprecated the old variable, `$args`. * Updated the default value of `Config.history.maxStates` from `100` to `40`. * Updated passage objects to maintain the order of passage tags as specified in the data chunk. * Deprecated the `Config.saves.onLoad` and `Config.saves.onSave` settings in favor of the `Save` Events API. * Updated bundled library: `jQuery` to v3.6.0. * Updates to locale files: * Updated the localization template. Translators are asked to updated the locale files as necessary. * Added `nl.js` – Dutch. * Various documentation updates. * Various internal improvements. * Build system updates.
- Loading branch information
Showing
61 changed files
with
8,720 additions
and
5,662 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.