From fd1f2195eba43181188c01a34cec2a624734c5a0 Mon Sep 17 00:00:00 2001 From: Black Ram <67595890+BlackRam-oss@users.noreply.github.com> Date: Fri, 9 Aug 2024 23:10:07 +0200 Subject: [PATCH] v0.6.9 --- package-lock.json | 12 ++++++------ package.json | 4 ++-- src/classes/LabelJson.ts | 9 ++++++++- src/constants.ts | 2 +- src/types/StepLabelJsonType.ts | 2 +- 5 files changed, 18 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index c66c2121..66087bfe 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@drincs/pixi-vn", - "version": "0.6.8", + "version": "0.6.9", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@drincs/pixi-vn", - "version": "0.6.8", + "version": "0.6.9", "license": "GPL-3.0", "dependencies": { "crypto-js": "^4.2.0", @@ -14,7 +14,7 @@ "pixi.js": "^8.2.5" }, "devDependencies": { - "@drincs/pixi-vn": "^0.6.7", + "@drincs/pixi-vn": "^0.6.8", "@types/crypto-js": "^4.2.2", "@types/css-font-loading-module": "^0.0.13", "@types/deep-diff": "^1.0.5", @@ -67,9 +67,9 @@ } }, "node_modules/@drincs/pixi-vn": { - "version": "0.6.7", - "resolved": "https://registry.npmjs.org/@drincs/pixi-vn/-/pixi-vn-0.6.7.tgz", - "integrity": "sha512-UDX9Hw5mRI9gr5VrjxW41WP7xMZKEyL5Oxj9cX7FawUwQeJziCGBjNPD0TIx92WLNbL/xe8rL5UDHKQGX4+U0A==", + "version": "0.6.8", + "resolved": "https://registry.npmjs.org/@drincs/pixi-vn/-/pixi-vn-0.6.8.tgz", + "integrity": "sha512-P+4dqw+h5ryO++CtQb5lsveszozTjoawUQbVCqm3+iBclJoxmX5uc4uMg3vsEnqNJm+ir/mOmU4MfHTaIOVVfg==", "dev": true, "license": "GPL-3.0", "dependencies": { diff --git a/package.json b/package.json index 63795ae2..4a2f008c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@drincs/pixi-vn", - "version": "0.6.8", + "version": "0.6.9", "description": "Pixi'VN is a npm package that provides various features for creating visual novels.", "main": "./dist/index.js", "module": "./dist/index.mjs", @@ -24,7 +24,7 @@ "homepage": "https://pixi-vn.web.app/", "funding": "https://github.com/DRincs-Productions/pixi-vn?sponsor=1", "devDependencies": { - "@drincs/pixi-vn": "^0.6.7", + "@drincs/pixi-vn": "^0.6.8", "@types/crypto-js": "^4.2.2", "@types/css-font-loading-module": "^0.0.13", "@types/deep-diff": "^1.0.5", diff --git a/src/classes/LabelJson.ts b/src/classes/LabelJson.ts index 620779d6..1f93d2ba 100644 --- a/src/classes/LabelJson.ts +++ b/src/classes/LabelJson.ts @@ -33,7 +33,14 @@ export default class LabelJson extends LabelAbstract { if (step.currentChoiceMenuOptions) { let options = step.currentChoiceMenuOptions.map((option) => { - return new ChoiceMenuOption(option.text, option.label, option.props, option.type) + let text: string = "" + if (Array.isArray(option.text)) { + text = option.text.join() + } + else { + text = option.text + } + return new ChoiceMenuOption(text, option.label, option.props, option.type) }) setChoiceMenuOptions(options) } diff --git a/src/constants.ts b/src/constants.ts index 9beb4fd4..6fed8f60 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1,6 +1,6 @@ import { PauseType, RepeatType } from "./types" -export const PIXIVN_VERSION = '0.6.8' +export const PIXIVN_VERSION = '0.6.9' export const Repeat: RepeatType = "repeat" /** * Pause the tickers for a duration. diff --git a/src/types/StepLabelJsonType.ts b/src/types/StepLabelJsonType.ts index 8fc12c02..bfc88382 100644 --- a/src/types/StepLabelJsonType.ts +++ b/src/types/StepLabelJsonType.ts @@ -12,7 +12,7 @@ type StepLabelJsonType = { /** * The text to be displayed. */ - text: string + text: string | string[] /** * The label id to be opened. */