@drincs/pixi-vn-json 1.6.3 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/importer.cjs +1 -0
- package/dist/importer.d.cts +613 -0
- package/dist/importer.d.ts +613 -0
- package/dist/importer.mjs +1 -0
- package/dist/index.cjs +2 -2
- package/dist/index.d.cts +608 -19
- package/dist/index.d.ts +608 -19
- package/dist/index.mjs +3 -0
- package/dist/unifier.cjs +1 -0
- package/dist/unifier.d.cts +594 -0
- package/dist/unifier.d.ts +594 -0
- package/dist/unifier.mjs +1 -0
- package/package.json +26 -3
- package/dist/PixiVNJsonConditionalStatements-S3pFEkW9.d.cts +0 -249
- package/dist/PixiVNJsonConditionalStatements-S3pFEkW9.d.ts +0 -249
- package/dist/classes/LabelJson.cjs +0 -3
- package/dist/classes/LabelJson.d.cts +0 -44
- package/dist/classes/LabelJson.d.ts +0 -44
- package/dist/classes/LabelJson.js +0 -3
- package/dist/classes/index.cjs +0 -3
- package/dist/classes/index.d.cts +0 -12
- package/dist/classes/index.d.ts +0 -12
- package/dist/classes/index.js +0 -3
- package/dist/constants.cjs +0 -1
- package/dist/constants.d.cts +0 -3
- package/dist/constants.d.ts +0 -3
- package/dist/constants.js +0 -1
- package/dist/functions/assets.cjs +0 -3
- package/dist/functions/assets.d.cts +0 -14
- package/dist/functions/assets.d.ts +0 -14
- package/dist/functions/assets.js +0 -3
- package/dist/functions/importer.cjs +0 -3
- package/dist/functions/importer.d.cts +0 -24
- package/dist/functions/importer.d.ts +0 -24
- package/dist/functions/importer.js +0 -3
- package/dist/functions/index.cjs +0 -3
- package/dist/functions/index.d.cts +0 -16
- package/dist/functions/index.d.ts +0 -16
- package/dist/functions/index.js +0 -3
- package/dist/functions/operation-utility.cjs +0 -3
- package/dist/functions/operation-utility.d.cts +0 -16
- package/dist/functions/operation-utility.d.ts +0 -16
- package/dist/functions/operation-utility.js +0 -3
- package/dist/functions/utility.cjs +0 -3
- package/dist/functions/utility.d.cts +0 -17
- package/dist/functions/utility.d.ts +0 -17
- package/dist/functions/utility.js +0 -3
- package/dist/index.js +0 -3
- package/dist/interface/PixiVNJson.cjs +0 -1
- package/dist/interface/PixiVNJson.d.cts +0 -30
- package/dist/interface/PixiVNJson.d.ts +0 -30
- package/dist/interface/PixiVNJson.js +0 -0
- package/dist/interface/PixiVNJsonArithmeticOperations.cjs +0 -1
- package/dist/interface/PixiVNJsonArithmeticOperations.d.cts +0 -2
- package/dist/interface/PixiVNJsonArithmeticOperations.d.ts +0 -2
- package/dist/interface/PixiVNJsonArithmeticOperations.js +0 -0
- package/dist/interface/PixiVNJsonCanvas.cjs +0 -1
- package/dist/interface/PixiVNJsonCanvas.d.cts +0 -71
- package/dist/interface/PixiVNJsonCanvas.d.ts +0 -71
- package/dist/interface/PixiVNJsonCanvas.js +0 -0
- package/dist/interface/PixiVNJsonCanvasAnimate.cjs +0 -1
- package/dist/interface/PixiVNJsonCanvasAnimate.d.cts +0 -19
- package/dist/interface/PixiVNJsonCanvasAnimate.d.ts +0 -19
- package/dist/interface/PixiVNJsonCanvasAnimate.js +0 -0
- package/dist/interface/PixiVNJsonCanvasEffect.cjs +0 -1
- package/dist/interface/PixiVNJsonCanvasEffect.d.cts +0 -11
- package/dist/interface/PixiVNJsonCanvasEffect.d.ts +0 -11
- package/dist/interface/PixiVNJsonCanvasEffect.js +0 -0
- package/dist/interface/PixiVNJsonCanvasTicker.cjs +0 -1
- package/dist/interface/PixiVNJsonCanvasTicker.d.cts +0 -48
- package/dist/interface/PixiVNJsonCanvasTicker.d.ts +0 -48
- package/dist/interface/PixiVNJsonCanvasTicker.js +0 -0
- package/dist/interface/PixiVNJsonConditionalResultToCombine.cjs +0 -1
- package/dist/interface/PixiVNJsonConditionalResultToCombine.d.cts +0 -2
- package/dist/interface/PixiVNJsonConditionalResultToCombine.d.ts +0 -2
- package/dist/interface/PixiVNJsonConditionalResultToCombine.js +0 -0
- package/dist/interface/PixiVNJsonConditionalStatements.cjs +0 -1
- package/dist/interface/PixiVNJsonConditionalStatements.d.cts +0 -2
- package/dist/interface/PixiVNJsonConditionalStatements.d.ts +0 -2
- package/dist/interface/PixiVNJsonConditionalStatements.js +0 -0
- package/dist/interface/PixiVNJsonConditions.cjs +0 -1
- package/dist/interface/PixiVNJsonConditions.d.cts +0 -2
- package/dist/interface/PixiVNJsonConditions.d.ts +0 -2
- package/dist/interface/PixiVNJsonConditions.js +0 -0
- package/dist/interface/PixiVNJsonIfElse.cjs +0 -1
- package/dist/interface/PixiVNJsonIfElse.d.cts +0 -2
- package/dist/interface/PixiVNJsonIfElse.d.ts +0 -2
- package/dist/interface/PixiVNJsonIfElse.js +0 -0
- package/dist/interface/PixiVNJsonInput.cjs +0 -1
- package/dist/interface/PixiVNJsonInput.d.cts +0 -9
- package/dist/interface/PixiVNJsonInput.d.ts +0 -9
- package/dist/interface/PixiVNJsonInput.js +0 -0
- package/dist/interface/PixiVNJsonLabelStep.cjs +0 -1
- package/dist/interface/PixiVNJsonLabelStep.d.cts +0 -114
- package/dist/interface/PixiVNJsonLabelStep.d.ts +0 -114
- package/dist/interface/PixiVNJsonLabelStep.js +0 -0
- package/dist/interface/PixiVNJsonLabels.cjs +0 -1
- package/dist/interface/PixiVNJsonLabels.d.cts +0 -20
- package/dist/interface/PixiVNJsonLabels.d.ts +0 -20
- package/dist/interface/PixiVNJsonLabels.js +0 -0
- package/dist/interface/PixiVNJsonMediaTransiotions.cjs +0 -1
- package/dist/interface/PixiVNJsonMediaTransiotions.d.cts +0 -30
- package/dist/interface/PixiVNJsonMediaTransiotions.d.ts +0 -30
- package/dist/interface/PixiVNJsonMediaTransiotions.js +0 -0
- package/dist/interface/PixiVNJsonOperations.cjs +0 -1
- package/dist/interface/PixiVNJsonOperations.d.cts +0 -18
- package/dist/interface/PixiVNJsonOperations.d.ts +0 -18
- package/dist/interface/PixiVNJsonOperations.js +0 -0
- package/dist/interface/PixiVNJsonSound.cjs +0 -1
- package/dist/interface/PixiVNJsonSound.d.cts +0 -27
- package/dist/interface/PixiVNJsonSound.d.ts +0 -27
- package/dist/interface/PixiVNJsonSound.js +0 -0
- package/dist/interface/PixiVNJsonStepSwitch.cjs +0 -1
- package/dist/interface/PixiVNJsonStepSwitch.d.cts +0 -2
- package/dist/interface/PixiVNJsonStepSwitch.d.ts +0 -2
- package/dist/interface/PixiVNJsonStepSwitch.js +0 -0
- package/dist/interface/PixiVNJsonUnionCondition.cjs +0 -1
- package/dist/interface/PixiVNJsonUnionCondition.d.cts +0 -2
- package/dist/interface/PixiVNJsonUnionCondition.d.ts +0 -2
- package/dist/interface/PixiVNJsonUnionCondition.js +0 -0
- package/dist/interface/PixiVNJsonValue.cjs +0 -1
- package/dist/interface/PixiVNJsonValue.d.cts +0 -2
- package/dist/interface/PixiVNJsonValue.d.ts +0 -2
- package/dist/interface/PixiVNJsonValue.js +0 -0
- package/dist/interface/index.cjs +0 -1
- package/dist/interface/index.d.cts +0 -13
- package/dist/interface/index.d.ts +0 -13
- package/dist/interface/index.js +0 -0
- package/dist/managers/TranslateManager.cjs +0 -1
- package/dist/managers/TranslateManager.d.cts +0 -42
- package/dist/managers/TranslateManager.d.ts +0 -42
- package/dist/managers/TranslateManager.js +0 -1
- package/dist/managers/index.cjs +0 -1
- package/dist/managers/index.d.cts +0 -16
- package/dist/managers/index.d.ts +0 -16
- package/dist/managers/index.js +0 -1
- package/dist/utils/log-utility.cjs +0 -1
- package/dist/utils/log-utility.d.cts +0 -8
- package/dist/utils/log-utility.d.ts +0 -8
- package/dist/utils/log-utility.js +0 -1
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { CanvasBaseInterface, ImageSprite, KeyframesType, AnimationOptions, UPDATE_PRIORITY, ObjectSegment, ObjectSegmentWithTransition, SequenceOptions } from '@drincs/pixi-vn';
|
|
2
|
-
|
|
3
|
-
type PixiVNJsonAnimateBase<T extends CanvasBaseInterface<any>> = {
|
|
4
|
-
type: "animate";
|
|
5
|
-
alias: string | string[];
|
|
6
|
-
keyframes: KeyframesType<T>;
|
|
7
|
-
options?: AnimationOptions;
|
|
8
|
-
priority?: UPDATE_PRIORITY;
|
|
9
|
-
};
|
|
10
|
-
type PixiVNJsonAnimateSequence<T extends CanvasBaseInterface<any>> = {
|
|
11
|
-
type: "animate-sequence";
|
|
12
|
-
alias: string | string[];
|
|
13
|
-
sequence: (ObjectSegment<T> | ObjectSegmentWithTransition<T>)[];
|
|
14
|
-
options?: SequenceOptions;
|
|
15
|
-
priority?: UPDATE_PRIORITY;
|
|
16
|
-
};
|
|
17
|
-
type PixiVNJsonCanvasAnimate<T extends CanvasBaseInterface<any> = ImageSprite> = PixiVNJsonAnimateBase<T> | PixiVNJsonAnimateSequence<T>;
|
|
18
|
-
|
|
19
|
-
export type { PixiVNJsonAnimateBase, PixiVNJsonAnimateSequence, PixiVNJsonCanvasAnimate as default };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { CanvasBaseInterface, ImageSprite, KeyframesType, AnimationOptions, UPDATE_PRIORITY, ObjectSegment, ObjectSegmentWithTransition, SequenceOptions } from '@drincs/pixi-vn';
|
|
2
|
-
|
|
3
|
-
type PixiVNJsonAnimateBase<T extends CanvasBaseInterface<any>> = {
|
|
4
|
-
type: "animate";
|
|
5
|
-
alias: string | string[];
|
|
6
|
-
keyframes: KeyframesType<T>;
|
|
7
|
-
options?: AnimationOptions;
|
|
8
|
-
priority?: UPDATE_PRIORITY;
|
|
9
|
-
};
|
|
10
|
-
type PixiVNJsonAnimateSequence<T extends CanvasBaseInterface<any>> = {
|
|
11
|
-
type: "animate-sequence";
|
|
12
|
-
alias: string | string[];
|
|
13
|
-
sequence: (ObjectSegment<T> | ObjectSegmentWithTransition<T>)[];
|
|
14
|
-
options?: SequenceOptions;
|
|
15
|
-
priority?: UPDATE_PRIORITY;
|
|
16
|
-
};
|
|
17
|
-
type PixiVNJsonCanvasAnimate<T extends CanvasBaseInterface<any> = ImageSprite> = PixiVNJsonAnimateBase<T> | PixiVNJsonAnimateSequence<T>;
|
|
18
|
-
|
|
19
|
-
export type { PixiVNJsonAnimateBase, PixiVNJsonAnimateSequence, PixiVNJsonCanvasAnimate as default };
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ShakeEffectProps, UPDATE_PRIORITY } from '@drincs/pixi-vn';
|
|
2
|
-
|
|
3
|
-
type PixiVNJsonEffectShake = {
|
|
4
|
-
type: "shake";
|
|
5
|
-
alias: string;
|
|
6
|
-
props: ShakeEffectProps;
|
|
7
|
-
priority?: UPDATE_PRIORITY;
|
|
8
|
-
};
|
|
9
|
-
type PixiVNJsonCanvasEffect = PixiVNJsonEffectShake;
|
|
10
|
-
|
|
11
|
-
export type { PixiVNJsonCanvasEffect as default };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { ShakeEffectProps, UPDATE_PRIORITY } from '@drincs/pixi-vn';
|
|
2
|
-
|
|
3
|
-
type PixiVNJsonEffectShake = {
|
|
4
|
-
type: "shake";
|
|
5
|
-
alias: string;
|
|
6
|
-
props: ShakeEffectProps;
|
|
7
|
-
priority?: UPDATE_PRIORITY;
|
|
8
|
-
};
|
|
9
|
-
type PixiVNJsonCanvasEffect = PixiVNJsonEffectShake;
|
|
10
|
-
|
|
11
|
-
export type { PixiVNJsonCanvasEffect as default };
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { FadeAlphaTickerProps, UPDATE_PRIORITY, MoveTickerProps, RotateTickerProps, ZoomTickerProps } from '@drincs/pixi-vn';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated
|
|
5
|
-
*/
|
|
6
|
-
type PixiVNJsonTickerFade = {
|
|
7
|
-
type: "fade";
|
|
8
|
-
alias: string | string[];
|
|
9
|
-
duration?: number;
|
|
10
|
-
props: FadeAlphaTickerProps;
|
|
11
|
-
priority?: UPDATE_PRIORITY;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated
|
|
15
|
-
*/
|
|
16
|
-
type PixiVNJsonTickerMove = {
|
|
17
|
-
type: "move";
|
|
18
|
-
alias: string | string[];
|
|
19
|
-
duration?: number;
|
|
20
|
-
props: MoveTickerProps;
|
|
21
|
-
priority?: UPDATE_PRIORITY;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @deprecated
|
|
25
|
-
*/
|
|
26
|
-
type PixiVNJsonTickerRotate = {
|
|
27
|
-
type: "rotate";
|
|
28
|
-
alias: string | string[];
|
|
29
|
-
duration?: number;
|
|
30
|
-
props: RotateTickerProps;
|
|
31
|
-
priority?: UPDATE_PRIORITY;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated
|
|
35
|
-
*/
|
|
36
|
-
type PixiVNJsonTickerZoom = {
|
|
37
|
-
type: "zoom";
|
|
38
|
-
alias: string | string[];
|
|
39
|
-
duration?: number;
|
|
40
|
-
props: ZoomTickerProps;
|
|
41
|
-
priority?: UPDATE_PRIORITY;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* @deprecated
|
|
45
|
-
*/
|
|
46
|
-
type PixiVNJsonCanvasTicker = PixiVNJsonTickerFade | PixiVNJsonTickerMove | PixiVNJsonTickerRotate | PixiVNJsonTickerZoom;
|
|
47
|
-
|
|
48
|
-
export type { PixiVNJsonCanvasTicker as default };
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { FadeAlphaTickerProps, UPDATE_PRIORITY, MoveTickerProps, RotateTickerProps, ZoomTickerProps } from '@drincs/pixi-vn';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @deprecated
|
|
5
|
-
*/
|
|
6
|
-
type PixiVNJsonTickerFade = {
|
|
7
|
-
type: "fade";
|
|
8
|
-
alias: string | string[];
|
|
9
|
-
duration?: number;
|
|
10
|
-
props: FadeAlphaTickerProps;
|
|
11
|
-
priority?: UPDATE_PRIORITY;
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated
|
|
15
|
-
*/
|
|
16
|
-
type PixiVNJsonTickerMove = {
|
|
17
|
-
type: "move";
|
|
18
|
-
alias: string | string[];
|
|
19
|
-
duration?: number;
|
|
20
|
-
props: MoveTickerProps;
|
|
21
|
-
priority?: UPDATE_PRIORITY;
|
|
22
|
-
};
|
|
23
|
-
/**
|
|
24
|
-
* @deprecated
|
|
25
|
-
*/
|
|
26
|
-
type PixiVNJsonTickerRotate = {
|
|
27
|
-
type: "rotate";
|
|
28
|
-
alias: string | string[];
|
|
29
|
-
duration?: number;
|
|
30
|
-
props: RotateTickerProps;
|
|
31
|
-
priority?: UPDATE_PRIORITY;
|
|
32
|
-
};
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated
|
|
35
|
-
*/
|
|
36
|
-
type PixiVNJsonTickerZoom = {
|
|
37
|
-
type: "zoom";
|
|
38
|
-
alias: string | string[];
|
|
39
|
-
duration?: number;
|
|
40
|
-
props: ZoomTickerProps;
|
|
41
|
-
priority?: UPDATE_PRIORITY;
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* @deprecated
|
|
45
|
-
*/
|
|
46
|
-
type PixiVNJsonCanvasTicker = PixiVNJsonTickerFade | PixiVNJsonTickerMove | PixiVNJsonTickerRotate | PixiVNJsonTickerZoom;
|
|
47
|
-
|
|
48
|
-
export type { PixiVNJsonCanvasTicker as default };
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { LabelRunModeType, StorageObjectType, StepLabelPropsType } from '@drincs/pixi-vn';
|
|
2
|
-
import { q as PixiVNJsonValueGet, d as PixiVNJsonConditionalStatements } from '../PixiVNJsonConditionalStatements-S3pFEkW9.cjs';
|
|
3
|
-
import PixiVNJsonConditionalOperation from './PixiVNJsonOperations.cjs';
|
|
4
|
-
import './PixiVNJsonCanvas.cjs';
|
|
5
|
-
import './PixiVNJsonCanvasAnimate.cjs';
|
|
6
|
-
import './PixiVNJsonCanvasEffect.cjs';
|
|
7
|
-
import './PixiVNJsonCanvasTicker.cjs';
|
|
8
|
-
import './PixiVNJsonMediaTransiotions.cjs';
|
|
9
|
-
import './PixiVNJsonInput.cjs';
|
|
10
|
-
import './PixiVNJsonSound.cjs';
|
|
11
|
-
|
|
12
|
-
type PixiVNJsonChoice = {
|
|
13
|
-
/**
|
|
14
|
-
* The text to be displayed.
|
|
15
|
-
*/
|
|
16
|
-
text: PixiVNJsonDialogText;
|
|
17
|
-
/**
|
|
18
|
-
* The label id to be opened.
|
|
19
|
-
*/
|
|
20
|
-
label: string;
|
|
21
|
-
/**
|
|
22
|
-
* Label opening mode
|
|
23
|
-
*/
|
|
24
|
-
type: LabelRunModeType;
|
|
25
|
-
/**
|
|
26
|
-
* The properties to be passed to the label.
|
|
27
|
-
*/
|
|
28
|
-
props: StorageObjectType;
|
|
29
|
-
/**
|
|
30
|
-
* If this is true, the choice can only be made once.
|
|
31
|
-
*/
|
|
32
|
-
oneTime?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* If this is true, the choice can see only if there are no other choices. For example, all choices are one-time choices and they are already selected.
|
|
35
|
-
*/
|
|
36
|
-
onlyHaveNoChoice?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* If this is true and if is the only choice, it will be automatically selected, and call/jump to the label.
|
|
39
|
-
*/
|
|
40
|
-
autoSelect?: boolean;
|
|
41
|
-
};
|
|
42
|
-
type PixiVNJsonChoices = (PixiVNJsonChoice | PixiVNJsonConditionalStatements<PixiVNJsonChoice>)[];
|
|
43
|
-
type PixiVNJsonDialogText = string | PixiVNJsonValueGet | PixiVNJsonConditionalStatements<string | PixiVNJsonValueGet | string[]> | (string | PixiVNJsonValueGet | PixiVNJsonConditionalStatements<string | PixiVNJsonValueGet | string[]>)[];
|
|
44
|
-
type PixiVNJsonDialog<Text = string> = {
|
|
45
|
-
/**
|
|
46
|
-
* The character id that will speak.
|
|
47
|
-
*/
|
|
48
|
-
character: string;
|
|
49
|
-
/**
|
|
50
|
-
* The text to be displayed.
|
|
51
|
-
*/
|
|
52
|
-
text: Text;
|
|
53
|
-
} | Text;
|
|
54
|
-
type PixiVNJsonLabelToOpen<T extends {} = {}> = {
|
|
55
|
-
/**
|
|
56
|
-
* The id of the label to open.
|
|
57
|
-
*/
|
|
58
|
-
label: string | PixiVNJsonValueGet;
|
|
59
|
-
/**
|
|
60
|
-
* Label opening mode
|
|
61
|
-
*/
|
|
62
|
-
type: LabelRunModeType;
|
|
63
|
-
/**
|
|
64
|
-
* The properties to be passed to the label. if you don't want to pass a object, but a list of parameters, you can use the {@link PixiVNJsonLabelToOpen.params} attribute.
|
|
65
|
-
*/
|
|
66
|
-
props?: StepLabelPropsType<T>;
|
|
67
|
-
/**
|
|
68
|
-
* **It is not recommended to use it, use it only if necessary**. The parameters to be passed to the label. If you want to pass an object, use the {@link PixiVNJsonLabelToOpen.props} attribute.
|
|
69
|
-
* "params" attribute will be stored in the temp storage with the key: {@link PIXIVNJSON_PARAM_ID} + ({@link narration.openedLabels.length} - 1).
|
|
70
|
-
*/
|
|
71
|
-
params?: any[];
|
|
72
|
-
};
|
|
73
|
-
/**
|
|
74
|
-
* Steps of a label.
|
|
75
|
-
* Order of operations:
|
|
76
|
-
* 1. run all {@link PixiVNJsonLabelStep.operations}
|
|
77
|
-
* 2. set {@link PixiVNJsonLabelStep.choices}, {@link PixiVNJsonLabelStep.dialogue}, {@link PixiVNJsonLabelStep.glueEnabled}
|
|
78
|
-
* 3. open {@link PixiVNJsonLabelStep.labelToOpen}
|
|
79
|
-
* 4. go to next step if {@link PixiVNJsonLabelStep.goNextStep} is true
|
|
80
|
-
* 5. end the label if {@link PixiVNJsonLabelStep.end} is "label_end"
|
|
81
|
-
*/
|
|
82
|
-
type PixiVNJsonLabelStep = {
|
|
83
|
-
operations?: PixiVNJsonConditionalOperation[];
|
|
84
|
-
/**
|
|
85
|
-
* Variable used to display a choice menu.
|
|
86
|
-
*/
|
|
87
|
-
choices?: PixiVNJsonChoices | PixiVNJsonConditionalStatements<PixiVNJsonChoices>;
|
|
88
|
-
/**
|
|
89
|
-
* Variable used to display a dialog.
|
|
90
|
-
*/
|
|
91
|
-
dialogue?: PixiVNJsonDialog<PixiVNJsonDialogText> | PixiVNJsonConditionalStatements<PixiVNJsonDialog<PixiVNJsonDialogText>>;
|
|
92
|
-
/**
|
|
93
|
-
* This variable is used to add the next dialog text into the current dialog memory.
|
|
94
|
-
* This value was added to introduce Ink Glue functionality https://github.com/inkle/ink/blob/master/Documentation/WritingWithInk.md#glue
|
|
95
|
-
*/
|
|
96
|
-
glueEnabled?: boolean | PixiVNJsonConditionalStatements<boolean>;
|
|
97
|
-
/**
|
|
98
|
-
* Variable used to open a label.
|
|
99
|
-
*/
|
|
100
|
-
labelToOpen?: PixiVNJsonLabelToOpen | PixiVNJsonConditionalStatements<PixiVNJsonLabelToOpen> | (PixiVNJsonLabelToOpen | PixiVNJsonConditionalStatements<PixiVNJsonLabelToOpen>)[];
|
|
101
|
-
/**
|
|
102
|
-
* If is true, the next step will be executed automatically.
|
|
103
|
-
*/
|
|
104
|
-
goNextStep?: boolean | PixiVNJsonConditionalStatements<boolean>;
|
|
105
|
-
/**
|
|
106
|
-
* Variable used to end some elements of the narrative.
|
|
107
|
-
* - game_end: ends the game
|
|
108
|
-
* - label_end: ends the label
|
|
109
|
-
*/
|
|
110
|
-
end?: "game_end" | "label_end" | PixiVNJsonConditionalStatements<"game_end" | "label_end">;
|
|
111
|
-
conditionalStep?: PixiVNJsonConditionalStatements<PixiVNJsonLabelStep | PixiVNJsonLabelStep[]>;
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
export type { PixiVNJsonChoice, PixiVNJsonChoices, PixiVNJsonDialog, PixiVNJsonDialogText, PixiVNJsonLabelToOpen, PixiVNJsonLabelStep as default };
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
import { LabelRunModeType, StorageObjectType, StepLabelPropsType } from '@drincs/pixi-vn';
|
|
2
|
-
import { q as PixiVNJsonValueGet, d as PixiVNJsonConditionalStatements } from '../PixiVNJsonConditionalStatements-S3pFEkW9.js';
|
|
3
|
-
import PixiVNJsonConditionalOperation from './PixiVNJsonOperations.js';
|
|
4
|
-
import './PixiVNJsonCanvas.js';
|
|
5
|
-
import './PixiVNJsonCanvasAnimate.js';
|
|
6
|
-
import './PixiVNJsonCanvasEffect.js';
|
|
7
|
-
import './PixiVNJsonCanvasTicker.js';
|
|
8
|
-
import './PixiVNJsonMediaTransiotions.js';
|
|
9
|
-
import './PixiVNJsonInput.js';
|
|
10
|
-
import './PixiVNJsonSound.js';
|
|
11
|
-
|
|
12
|
-
type PixiVNJsonChoice = {
|
|
13
|
-
/**
|
|
14
|
-
* The text to be displayed.
|
|
15
|
-
*/
|
|
16
|
-
text: PixiVNJsonDialogText;
|
|
17
|
-
/**
|
|
18
|
-
* The label id to be opened.
|
|
19
|
-
*/
|
|
20
|
-
label: string;
|
|
21
|
-
/**
|
|
22
|
-
* Label opening mode
|
|
23
|
-
*/
|
|
24
|
-
type: LabelRunModeType;
|
|
25
|
-
/**
|
|
26
|
-
* The properties to be passed to the label.
|
|
27
|
-
*/
|
|
28
|
-
props: StorageObjectType;
|
|
29
|
-
/**
|
|
30
|
-
* If this is true, the choice can only be made once.
|
|
31
|
-
*/
|
|
32
|
-
oneTime?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* If this is true, the choice can see only if there are no other choices. For example, all choices are one-time choices and they are already selected.
|
|
35
|
-
*/
|
|
36
|
-
onlyHaveNoChoice?: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* If this is true and if is the only choice, it will be automatically selected, and call/jump to the label.
|
|
39
|
-
*/
|
|
40
|
-
autoSelect?: boolean;
|
|
41
|
-
};
|
|
42
|
-
type PixiVNJsonChoices = (PixiVNJsonChoice | PixiVNJsonConditionalStatements<PixiVNJsonChoice>)[];
|
|
43
|
-
type PixiVNJsonDialogText = string | PixiVNJsonValueGet | PixiVNJsonConditionalStatements<string | PixiVNJsonValueGet | string[]> | (string | PixiVNJsonValueGet | PixiVNJsonConditionalStatements<string | PixiVNJsonValueGet | string[]>)[];
|
|
44
|
-
type PixiVNJsonDialog<Text = string> = {
|
|
45
|
-
/**
|
|
46
|
-
* The character id that will speak.
|
|
47
|
-
*/
|
|
48
|
-
character: string;
|
|
49
|
-
/**
|
|
50
|
-
* The text to be displayed.
|
|
51
|
-
*/
|
|
52
|
-
text: Text;
|
|
53
|
-
} | Text;
|
|
54
|
-
type PixiVNJsonLabelToOpen<T extends {} = {}> = {
|
|
55
|
-
/**
|
|
56
|
-
* The id of the label to open.
|
|
57
|
-
*/
|
|
58
|
-
label: string | PixiVNJsonValueGet;
|
|
59
|
-
/**
|
|
60
|
-
* Label opening mode
|
|
61
|
-
*/
|
|
62
|
-
type: LabelRunModeType;
|
|
63
|
-
/**
|
|
64
|
-
* The properties to be passed to the label. if you don't want to pass a object, but a list of parameters, you can use the {@link PixiVNJsonLabelToOpen.params} attribute.
|
|
65
|
-
*/
|
|
66
|
-
props?: StepLabelPropsType<T>;
|
|
67
|
-
/**
|
|
68
|
-
* **It is not recommended to use it, use it only if necessary**. The parameters to be passed to the label. If you want to pass an object, use the {@link PixiVNJsonLabelToOpen.props} attribute.
|
|
69
|
-
* "params" attribute will be stored in the temp storage with the key: {@link PIXIVNJSON_PARAM_ID} + ({@link narration.openedLabels.length} - 1).
|
|
70
|
-
*/
|
|
71
|
-
params?: any[];
|
|
72
|
-
};
|
|
73
|
-
/**
|
|
74
|
-
* Steps of a label.
|
|
75
|
-
* Order of operations:
|
|
76
|
-
* 1. run all {@link PixiVNJsonLabelStep.operations}
|
|
77
|
-
* 2. set {@link PixiVNJsonLabelStep.choices}, {@link PixiVNJsonLabelStep.dialogue}, {@link PixiVNJsonLabelStep.glueEnabled}
|
|
78
|
-
* 3. open {@link PixiVNJsonLabelStep.labelToOpen}
|
|
79
|
-
* 4. go to next step if {@link PixiVNJsonLabelStep.goNextStep} is true
|
|
80
|
-
* 5. end the label if {@link PixiVNJsonLabelStep.end} is "label_end"
|
|
81
|
-
*/
|
|
82
|
-
type PixiVNJsonLabelStep = {
|
|
83
|
-
operations?: PixiVNJsonConditionalOperation[];
|
|
84
|
-
/**
|
|
85
|
-
* Variable used to display a choice menu.
|
|
86
|
-
*/
|
|
87
|
-
choices?: PixiVNJsonChoices | PixiVNJsonConditionalStatements<PixiVNJsonChoices>;
|
|
88
|
-
/**
|
|
89
|
-
* Variable used to display a dialog.
|
|
90
|
-
*/
|
|
91
|
-
dialogue?: PixiVNJsonDialog<PixiVNJsonDialogText> | PixiVNJsonConditionalStatements<PixiVNJsonDialog<PixiVNJsonDialogText>>;
|
|
92
|
-
/**
|
|
93
|
-
* This variable is used to add the next dialog text into the current dialog memory.
|
|
94
|
-
* This value was added to introduce Ink Glue functionality https://github.com/inkle/ink/blob/master/Documentation/WritingWithInk.md#glue
|
|
95
|
-
*/
|
|
96
|
-
glueEnabled?: boolean | PixiVNJsonConditionalStatements<boolean>;
|
|
97
|
-
/**
|
|
98
|
-
* Variable used to open a label.
|
|
99
|
-
*/
|
|
100
|
-
labelToOpen?: PixiVNJsonLabelToOpen | PixiVNJsonConditionalStatements<PixiVNJsonLabelToOpen> | (PixiVNJsonLabelToOpen | PixiVNJsonConditionalStatements<PixiVNJsonLabelToOpen>)[];
|
|
101
|
-
/**
|
|
102
|
-
* If is true, the next step will be executed automatically.
|
|
103
|
-
*/
|
|
104
|
-
goNextStep?: boolean | PixiVNJsonConditionalStatements<boolean>;
|
|
105
|
-
/**
|
|
106
|
-
* Variable used to end some elements of the narrative.
|
|
107
|
-
* - game_end: ends the game
|
|
108
|
-
* - label_end: ends the label
|
|
109
|
-
*/
|
|
110
|
-
end?: "game_end" | "label_end" | PixiVNJsonConditionalStatements<"game_end" | "label_end">;
|
|
111
|
-
conditionalStep?: PixiVNJsonConditionalStatements<PixiVNJsonLabelStep | PixiVNJsonLabelStep[]>;
|
|
112
|
-
};
|
|
113
|
-
|
|
114
|
-
export type { PixiVNJsonChoice, PixiVNJsonChoices, PixiVNJsonDialog, PixiVNJsonDialogText, PixiVNJsonLabelToOpen, PixiVNJsonLabelStep as default };
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import PixiVNJsonLabelStep from './PixiVNJsonLabelStep.cjs';
|
|
2
|
-
import '@drincs/pixi-vn';
|
|
3
|
-
import '../PixiVNJsonConditionalStatements-S3pFEkW9.cjs';
|
|
4
|
-
import './PixiVNJsonOperations.cjs';
|
|
5
|
-
import './PixiVNJsonCanvas.cjs';
|
|
6
|
-
import './PixiVNJsonCanvasAnimate.cjs';
|
|
7
|
-
import './PixiVNJsonCanvasEffect.cjs';
|
|
8
|
-
import './PixiVNJsonCanvasTicker.cjs';
|
|
9
|
-
import './PixiVNJsonMediaTransiotions.cjs';
|
|
10
|
-
import './PixiVNJsonInput.cjs';
|
|
11
|
-
import './PixiVNJsonSound.cjs';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Collection of labels to be used in the narrative.
|
|
15
|
-
*/
|
|
16
|
-
type PixiVNJsonLabels = {
|
|
17
|
-
[labelId: string]: PixiVNJsonLabelStep[];
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export type { PixiVNJsonLabels, PixiVNJsonLabels as default };
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import PixiVNJsonLabelStep from './PixiVNJsonLabelStep.js';
|
|
2
|
-
import '@drincs/pixi-vn';
|
|
3
|
-
import '../PixiVNJsonConditionalStatements-S3pFEkW9.js';
|
|
4
|
-
import './PixiVNJsonOperations.js';
|
|
5
|
-
import './PixiVNJsonCanvas.js';
|
|
6
|
-
import './PixiVNJsonCanvasAnimate.js';
|
|
7
|
-
import './PixiVNJsonCanvasEffect.js';
|
|
8
|
-
import './PixiVNJsonCanvasTicker.js';
|
|
9
|
-
import './PixiVNJsonMediaTransiotions.js';
|
|
10
|
-
import './PixiVNJsonInput.js';
|
|
11
|
-
import './PixiVNJsonSound.js';
|
|
12
|
-
|
|
13
|
-
/**
|
|
14
|
-
* Collection of labels to be used in the narrative.
|
|
15
|
-
*/
|
|
16
|
-
type PixiVNJsonLabels = {
|
|
17
|
-
[labelId: string]: PixiVNJsonLabelStep[];
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export type { PixiVNJsonLabels, PixiVNJsonLabels as default };
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ShowWithDissolveTransitionProps, UPDATE_PRIORITY, ShowWithFadeTransitionProps, MoveInOutProps, ZoomInOutProps, PushInOutProps } from '@drincs/pixi-vn';
|
|
2
|
-
|
|
3
|
-
type DissolveTransition = {
|
|
4
|
-
type: "dissolve";
|
|
5
|
-
props?: ShowWithDissolveTransitionProps;
|
|
6
|
-
priority?: UPDATE_PRIORITY;
|
|
7
|
-
};
|
|
8
|
-
type FadeTransition = {
|
|
9
|
-
type: "fade";
|
|
10
|
-
props?: ShowWithFadeTransitionProps;
|
|
11
|
-
priority?: UPDATE_PRIORITY;
|
|
12
|
-
};
|
|
13
|
-
type MoveInOutTransition = {
|
|
14
|
-
type: "movein" | "moveout";
|
|
15
|
-
props?: MoveInOutProps;
|
|
16
|
-
priority?: UPDATE_PRIORITY;
|
|
17
|
-
};
|
|
18
|
-
type ZoomInOutTransition = {
|
|
19
|
-
type: "zoomin" | "zoomout";
|
|
20
|
-
props?: ZoomInOutProps;
|
|
21
|
-
priority?: UPDATE_PRIORITY;
|
|
22
|
-
};
|
|
23
|
-
type PushInOutTransition = {
|
|
24
|
-
type: "pushin" | "pushout";
|
|
25
|
-
props?: PushInOutProps;
|
|
26
|
-
priority?: UPDATE_PRIORITY;
|
|
27
|
-
};
|
|
28
|
-
type PixiVNJsonMediaTransiotions = DissolveTransition | FadeTransition | MoveInOutTransition | ZoomInOutTransition | PushInOutTransition;
|
|
29
|
-
|
|
30
|
-
export type { PixiVNJsonMediaTransiotions as default };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ShowWithDissolveTransitionProps, UPDATE_PRIORITY, ShowWithFadeTransitionProps, MoveInOutProps, ZoomInOutProps, PushInOutProps } from '@drincs/pixi-vn';
|
|
2
|
-
|
|
3
|
-
type DissolveTransition = {
|
|
4
|
-
type: "dissolve";
|
|
5
|
-
props?: ShowWithDissolveTransitionProps;
|
|
6
|
-
priority?: UPDATE_PRIORITY;
|
|
7
|
-
};
|
|
8
|
-
type FadeTransition = {
|
|
9
|
-
type: "fade";
|
|
10
|
-
props?: ShowWithFadeTransitionProps;
|
|
11
|
-
priority?: UPDATE_PRIORITY;
|
|
12
|
-
};
|
|
13
|
-
type MoveInOutTransition = {
|
|
14
|
-
type: "movein" | "moveout";
|
|
15
|
-
props?: MoveInOutProps;
|
|
16
|
-
priority?: UPDATE_PRIORITY;
|
|
17
|
-
};
|
|
18
|
-
type ZoomInOutTransition = {
|
|
19
|
-
type: "zoomin" | "zoomout";
|
|
20
|
-
props?: ZoomInOutProps;
|
|
21
|
-
priority?: UPDATE_PRIORITY;
|
|
22
|
-
};
|
|
23
|
-
type PushInOutTransition = {
|
|
24
|
-
type: "pushin" | "pushout";
|
|
25
|
-
props?: PushInOutProps;
|
|
26
|
-
priority?: UPDATE_PRIORITY;
|
|
27
|
-
};
|
|
28
|
-
type PixiVNJsonMediaTransiotions = DissolveTransition | FadeTransition | MoveInOutTransition | ZoomInOutTransition | PushInOutTransition;
|
|
29
|
-
|
|
30
|
-
export type { PixiVNJsonMediaTransiotions as default };
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import PixiVNJsonCanvas from './PixiVNJsonCanvas.cjs';
|
|
2
|
-
import { r as PixiVNJsonValueSet, g as PixiVNJsonIfElse, q as PixiVNJsonValueGet, d as PixiVNJsonConditionalStatements } from '../PixiVNJsonConditionalStatements-S3pFEkW9.cjs';
|
|
3
|
-
import PixiVNJsonInput from './PixiVNJsonInput.cjs';
|
|
4
|
-
import PixiVNJsonSound from './PixiVNJsonSound.cjs';
|
|
5
|
-
import '@drincs/pixi-vn';
|
|
6
|
-
import './PixiVNJsonCanvasAnimate.cjs';
|
|
7
|
-
import './PixiVNJsonCanvasEffect.cjs';
|
|
8
|
-
import './PixiVNJsonCanvasTicker.cjs';
|
|
9
|
-
import './PixiVNJsonMediaTransiotions.cjs';
|
|
10
|
-
|
|
11
|
-
type PixiVNJsonOperationString = {
|
|
12
|
-
type: "operationtoconvert";
|
|
13
|
-
values: (string | PixiVNJsonValueGet | PixiVNJsonConditionalStatements<string | PixiVNJsonValueGet>)[];
|
|
14
|
-
};
|
|
15
|
-
type PixiVNJsonOperation = PixiVNJsonValueSet | PixiVNJsonCanvas | PixiVNJsonSound | PixiVNJsonInput;
|
|
16
|
-
type PixiVNJsonConditionalOperation = PixiVNJsonOperation | PixiVNJsonIfElse<PixiVNJsonOperation> | PixiVNJsonOperationString;
|
|
17
|
-
|
|
18
|
-
export type { PixiVNJsonOperation, PixiVNJsonOperationString, PixiVNJsonConditionalOperation as default };
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import PixiVNJsonCanvas from './PixiVNJsonCanvas.js';
|
|
2
|
-
import { r as PixiVNJsonValueSet, g as PixiVNJsonIfElse, q as PixiVNJsonValueGet, d as PixiVNJsonConditionalStatements } from '../PixiVNJsonConditionalStatements-S3pFEkW9.js';
|
|
3
|
-
import PixiVNJsonInput from './PixiVNJsonInput.js';
|
|
4
|
-
import PixiVNJsonSound from './PixiVNJsonSound.js';
|
|
5
|
-
import '@drincs/pixi-vn';
|
|
6
|
-
import './PixiVNJsonCanvasAnimate.js';
|
|
7
|
-
import './PixiVNJsonCanvasEffect.js';
|
|
8
|
-
import './PixiVNJsonCanvasTicker.js';
|
|
9
|
-
import './PixiVNJsonMediaTransiotions.js';
|
|
10
|
-
|
|
11
|
-
type PixiVNJsonOperationString = {
|
|
12
|
-
type: "operationtoconvert";
|
|
13
|
-
values: (string | PixiVNJsonValueGet | PixiVNJsonConditionalStatements<string | PixiVNJsonValueGet>)[];
|
|
14
|
-
};
|
|
15
|
-
type PixiVNJsonOperation = PixiVNJsonValueSet | PixiVNJsonCanvas | PixiVNJsonSound | PixiVNJsonInput;
|
|
16
|
-
type PixiVNJsonConditionalOperation = PixiVNJsonOperation | PixiVNJsonIfElse<PixiVNJsonOperation> | PixiVNJsonOperationString;
|
|
17
|
-
|
|
18
|
-
export type { PixiVNJsonOperation, PixiVNJsonOperationString, PixiVNJsonConditionalOperation as default };
|