Skip to content

Commit

Permalink
v0.6.9
Browse files Browse the repository at this point in the history
  • Loading branch information
BlackRam-oss committed Aug 9, 2024
1 parent b9db43b commit fd1f219
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 11 deletions.
12 changes: 6 additions & 6 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand Down
9 changes: 8 additions & 1 deletion src/classes/LabelJson.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,14 @@ export default class LabelJson<T extends {} = {}> extends LabelAbstract<LabelJso
return (props) => {
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)
}
Expand Down
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
@@ -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.
Expand Down
2 changes: 1 addition & 1 deletion src/types/StepLabelJsonType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ type StepLabelJsonType = {
/**
* The text to be displayed.
*/
text: string
text: string | string[]
/**
* The label id to be opened.
*/
Expand Down

0 comments on commit fd1f219

Please sign in to comment.