From f6271220b2b4efea89e70d4eb56cf262f7dae59e Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Fri, 24 Jul 2020 04:42:24 +0000 Subject: [PATCH] chore(release): 13.3.0 [skip ci] # [13.3.0](https://github.com/seleb/bitsy-hacks/compare/v13.2.7...v13.3.0) (2020-07-24) ### Features * add `dialogOnly` option to allow portraits outside of dialog ([#160](https://github.com/seleb/bitsy-hacks/issues/160)) ([1611831](https://github.com/seleb/bitsy-hacks/commit/161183145e9292d94b928edc1639e4602edf7b1c)) --- CHANGELOG.md | 7 +++++++ dist/character-portraits-animated.js | 9 ++++++--- dist/character-portraits.js | 5 +++-- package-lock.json | 2 +- package.json | 2 +- 5 files changed, 18 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f6d29a6b..ecf67c73 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# [13.3.0](https://github.com/seleb/bitsy-hacks/compare/v13.2.7...v13.3.0) (2020-07-24) + + +### Features + +* add `dialogOnly` option to allow portraits outside of dialog ([#160](https://github.com/seleb/bitsy-hacks/issues/160)) ([1611831](https://github.com/seleb/bitsy-hacks/commit/161183145e9292d94b928edc1639e4602edf7b1c)) + ## [13.2.7](https://github.com/seleb/bitsy-hacks/compare/v13.2.6...v13.2.7) (2020-07-16) diff --git a/dist/character-portraits-animated.js b/dist/character-portraits-animated.js index d81f2ea6..c8d35289 100644 --- a/dist/character-portraits-animated.js +++ b/dist/character-portraits-animated.js @@ -3,7 +3,7 @@ @file character portraits animated @summary high quality anime gifs @license MIT -@version 1.0.8 +@version 1.1.0 @requires Bitsy Version: 5.3 @author Sean S. LeBlanc @@ -35,6 +35,7 @@ var hackOptions$1 = { // overrides for the base hack scale: bitsy.scale, autoReset: true, + dialogOnly: true, portraits: { earth: './GIF.gif', cat: './test-export.gif', @@ -1098,7 +1099,7 @@ function addDialogTag(tag, fn) { @file character portraits @summary high quality anime jpegs (or pngs i guess) @license MIT -@version 2.0.8 +@version 2.1.0 @requires Bitsy Version: 5.3 @author Sean S. LeBlanc @@ -1150,6 +1151,7 @@ var hackOptions = { cat: './cat.png', }, autoReset: true, // if true, automatically resets the portrait to blank when dialog is exited + dialogOnly: true, // if true, portrait is only shown when dialog is active }; var state = { @@ -1179,7 +1181,7 @@ addDialogTag('portrait', function (environment, parameters, onReturn) { // hook up drawing var context; after('drawRoom', function () { - if ((!bitsy.isDialogMode && !bitsy.isNarrating) || !state.portrait) { + if ((hackOptions.dialogOnly && !bitsy.isDialogMode && !bitsy.isNarrating) || !state.portrait) { return; } if (!context) { @@ -1209,6 +1211,7 @@ before('startExportedGame', function () { hackOptions.portraits = hackOptions$1.portraits; hackOptions.scale = hackOptions$1.scale; hackOptions.autoReset = hackOptions$1.autoReset; + hackOptions.dialogOnly = hackOptions$1.dialogOnly; }); // convert portrait state to new format supporting multiple frames diff --git a/dist/character-portraits.js b/dist/character-portraits.js index 722d897a..62445200 100644 --- a/dist/character-portraits.js +++ b/dist/character-portraits.js @@ -3,7 +3,7 @@ @file character portraits @summary high quality anime jpegs (or pngs i guess) @license MIT -@version 2.0.8 +@version 2.1.0 @requires Bitsy Version: 5.3 @author Sean S. LeBlanc @@ -57,6 +57,7 @@ var hackOptions = { cat: './cat.png', }, autoReset: true, // if true, automatically resets the portrait to blank when dialog is exited + dialogOnly: true, // if true, portrait is only shown when dialog is active }; bitsy = bitsy && Object.prototype.hasOwnProperty.call(bitsy, 'default') ? bitsy['default'] : bitsy; @@ -353,7 +354,7 @@ addDialogTag('portrait', function (environment, parameters, onReturn) { // hook up drawing var context; after('drawRoom', function () { - if ((!bitsy.isDialogMode && !bitsy.isNarrating) || !state.portrait) { + if ((hackOptions.dialogOnly && !bitsy.isDialogMode && !bitsy.isNarrating) || !state.portrait) { return; } if (!context) { diff --git a/package-lock.json b/package-lock.json index 9350cf1f..84244ed7 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "@bitsy/hecks", - "version": "13.2.7", + "version": "13.3.0", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index e6065095..b553a3e8 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "hacks" ], "main": "index.mjs", - "version": "13.2.7", + "version": "13.3.0", "scripts": { "build": "rollup -c", "test": "jest --runInBand",