Skip to content

Commit

Permalink
v2.9.0 release
Browse files Browse the repository at this point in the history
Update: The `<<typesim>>` macro is now mobile-friendly.
  • Loading branch information
ChapelR committed Apr 20, 2021
1 parent 53d1a20 commit c19add4
Show file tree
Hide file tree
Showing 29 changed files with 116 additions and 80 deletions.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Chapel's Custom Macro Collection (v2.8.0)
## Chapel's Custom Macro Collection (v2.9.0)

- [Try the demo!](https://macros.twinelab.net/demo) ([Sausage](https://github.com/ChapelR/custom-macros-demo))
- [Downloads](./download ':ignore')
Expand Down
4 changes: 4 additions & 0 deletions docs/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

[Back to the main page](./README.md).

### April 20, 2021 (v2.9.0)

- **[Update]** The `<<typesim>>` macro is now mobile-friendly.

### April 13, 2021 (v2.8.0)

- **[Retired]** Removed the `<<done>>` macro.
Expand Down
16 changes: 15 additions & 1 deletion docs/type-sim.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

[Back to the main readme](./README.md).

> [!NOTE]
> As of v2.9.0 of the collection (v2.0.0 of this macro) the `<<typesim>>` macro is mobile friendly and should work on phones and other devices with software keyboards!
Some games, like *Superhot*, have a neat little feature where you can mash on the keyboard and no matter what you actually type in, a predefined message comes out. This macro provides a similar function to Twine.

**THE CODE:** [Minified](https://github.com/ChapelR/custom-macros-for-sugarcube-2/blob/master/scripts/minified/type-sim.min.js). [Pretty](https://github.com/ChapelR/custom-macros-for-sugarcube-2/blob/master/scripts/type-sim.js).
Expand Down Expand Up @@ -30,4 +33,15 @@ You begin typing the email to your boss:

**Styling Options**:

The `<textarea>` generated will just use SugarCube's standard styling. If you want to alter its appearance, it has the class `.macro-typesim`.
The `<textarea>` generated will just use SugarCube's standard styling. If you want to alter its appearance, it has the class `.macro-typesim`.

**Event**:

When the typing simulation is finished, the event `:type-sim-end` is triggered on the document's root. The event object has a `message` property containing the message that was typed out.

```javascript
$(document).on(':type-sim-end', function (ev) {
console.log('Typing simulation message: ', ev.message);
});
```

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "custom-macros-for-sugarcube-2",
"version": "2.8.0",
"version": "2.9.0",
"description": "Collection of custom macros and systems for Twine/SugarCube2.",
"main": "build.js",
"directories": {
Expand Down
2 changes: 1 addition & 1 deletion scripts/minified/articles.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/minified/continue.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/minified/css-macro.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/minified/cycles.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/minified/dialog-api-macro-set.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/minified/disable.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/minified/events.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/minified/fading-macro-set.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion scripts/minified/first-macro.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit c19add4

Please sign in to comment.