@drincs/pixi-vn 0.6.4 → 0.6.6
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/README.md +56 -7
- package/dist/classes/CharacterBaseModel.js +99 -90
- package/dist/classes/CharacterBaseModel.js.map +1 -1
- package/dist/classes/CharacterBaseModel.mjs +99 -90
- package/dist/classes/CharacterBaseModel.mjs.map +1 -1
- package/dist/classes/ChoiceMenuOption.d.mts +71 -8
- package/dist/classes/ChoiceMenuOption.d.ts +71 -8
- package/dist/classes/ChoiceMenuOption.js +160 -77
- package/dist/classes/ChoiceMenuOption.js.map +1 -1
- package/dist/classes/ChoiceMenuOption.mjs +160 -77
- package/dist/classes/ChoiceMenuOption.mjs.map +1 -1
- package/dist/classes/CloseLabel.d.mts +3 -1
- package/dist/classes/CloseLabel.d.ts +3 -1
- package/dist/classes/CloseLabel.js +77 -32
- package/dist/classes/CloseLabel.js.map +1 -1
- package/dist/classes/CloseLabel.mjs +77 -32
- package/dist/classes/CloseLabel.mjs.map +1 -1
- package/dist/classes/Label.d.mts +6 -33
- package/dist/classes/Label.d.ts +6 -33
- package/dist/classes/Label.js +74 -31
- package/dist/classes/Label.js.map +1 -1
- package/dist/classes/Label.mjs +74 -31
- package/dist/classes/Label.mjs.map +1 -1
- package/dist/classes/LabelAbstract.d.mts +50 -0
- package/dist/classes/LabelAbstract.d.ts +50 -0
- package/dist/classes/LabelAbstract.js +100 -0
- package/dist/classes/LabelAbstract.js.map +1 -0
- package/dist/classes/LabelAbstract.mjs +98 -0
- package/dist/classes/LabelAbstract.mjs.map +1 -0
- package/dist/classes/LabelJson.d.mts +30 -0
- package/dist/classes/LabelJson.d.ts +30 -0
- package/dist/classes/LabelJson.js +2766 -0
- package/dist/classes/LabelJson.js.map +1 -0
- package/dist/classes/LabelJson.mjs +2760 -0
- package/dist/classes/LabelJson.mjs.map +1 -0
- package/dist/classes/StoredClassModel.js +42 -33
- package/dist/classes/StoredClassModel.js.map +1 -1
- package/dist/classes/StoredClassModel.mjs +42 -33
- package/dist/classes/StoredClassModel.mjs.map +1 -1
- package/dist/classes/canvas/CanvasContainer.js +2 -2
- package/dist/classes/canvas/CanvasContainer.js.map +1 -1
- package/dist/classes/canvas/CanvasContainer.mjs +2 -2
- package/dist/classes/canvas/CanvasContainer.mjs.map +1 -1
- package/dist/classes/canvas/CanvasImage.js +2 -2
- package/dist/classes/canvas/CanvasImage.js.map +1 -1
- package/dist/classes/canvas/CanvasImage.mjs +2 -2
- package/dist/classes/canvas/CanvasImage.mjs.map +1 -1
- package/dist/classes/canvas/CanvasSprite.js +2 -2
- package/dist/classes/canvas/CanvasSprite.js.map +1 -1
- package/dist/classes/canvas/CanvasSprite.mjs +2 -2
- package/dist/classes/canvas/CanvasSprite.mjs.map +1 -1
- package/dist/classes/canvas/CanvasText.js +2 -2
- package/dist/classes/canvas/CanvasText.js.map +1 -1
- package/dist/classes/canvas/CanvasText.mjs +2 -2
- package/dist/classes/canvas/CanvasText.mjs.map +1 -1
- package/dist/classes/canvas/index.js +2 -2
- package/dist/classes/canvas/index.js.map +1 -1
- package/dist/classes/canvas/index.mjs +2 -2
- package/dist/classes/canvas/index.mjs.map +1 -1
- package/dist/classes/index.d.mts +6 -1
- package/dist/classes/index.d.ts +6 -1
- package/dist/classes/index.js +945 -78
- package/dist/classes/index.js.map +1 -1
- package/dist/classes/index.mjs +945 -79
- package/dist/classes/index.mjs.map +1 -1
- package/dist/classes/ticker/FadeAlphaTicker.js +42 -33
- package/dist/classes/ticker/FadeAlphaTicker.js.map +1 -1
- package/dist/classes/ticker/FadeAlphaTicker.mjs +42 -33
- package/dist/classes/ticker/FadeAlphaTicker.mjs.map +1 -1
- package/dist/classes/ticker/MoveTicker.d.mts +1 -0
- package/dist/classes/ticker/MoveTicker.d.ts +1 -0
- package/dist/classes/ticker/MoveTicker.js +42 -33
- package/dist/classes/ticker/MoveTicker.js.map +1 -1
- package/dist/classes/ticker/MoveTicker.mjs +42 -33
- package/dist/classes/ticker/MoveTicker.mjs.map +1 -1
- package/dist/classes/ticker/RotateTicker.d.mts +1 -0
- package/dist/classes/ticker/RotateTicker.d.ts +1 -0
- package/dist/classes/ticker/RotateTicker.js +42 -33
- package/dist/classes/ticker/RotateTicker.js.map +1 -1
- package/dist/classes/ticker/RotateTicker.mjs +42 -33
- package/dist/classes/ticker/RotateTicker.mjs.map +1 -1
- package/dist/classes/ticker/ZoomTicker.d.mts +1 -0
- package/dist/classes/ticker/ZoomTicker.d.ts +1 -0
- package/dist/classes/ticker/ZoomTicker.js +42 -33
- package/dist/classes/ticker/ZoomTicker.js.map +1 -1
- package/dist/classes/ticker/ZoomTicker.mjs +42 -33
- package/dist/classes/ticker/ZoomTicker.mjs.map +1 -1
- package/dist/classes/ticker/index.js +42 -33
- package/dist/classes/ticker/index.js.map +1 -1
- package/dist/classes/ticker/index.mjs +42 -33
- package/dist/classes/ticker/index.mjs.map +1 -1
- package/dist/constants.d.mts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/constants.js.map +1 -1
- package/dist/constants.mjs +1 -1
- package/dist/constants.mjs.map +1 -1
- package/dist/decorators/CanvasElementDecorator.js +2 -2
- package/dist/decorators/CanvasElementDecorator.js.map +1 -1
- package/dist/decorators/CanvasElementDecorator.mjs +2 -2
- package/dist/decorators/CanvasElementDecorator.mjs.map +1 -1
- package/dist/decorators/LabelDecorator.d.mts +19 -5
- package/dist/decorators/LabelDecorator.d.ts +19 -5
- package/dist/decorators/LabelDecorator.js +102 -65
- package/dist/decorators/LabelDecorator.js.map +1 -1
- package/dist/decorators/LabelDecorator.mjs +102 -66
- package/dist/decorators/LabelDecorator.mjs.map +1 -1
- package/dist/decorators/index.d.mts +10 -2
- package/dist/decorators/index.d.ts +10 -2
- package/dist/decorators/index.js +98 -65
- package/dist/decorators/index.js.map +1 -1
- package/dist/decorators/index.mjs +98 -65
- package/dist/decorators/index.mjs.map +1 -1
- package/dist/functions/CanvasUtility.js +2 -2
- package/dist/functions/CanvasUtility.js.map +1 -1
- package/dist/functions/CanvasUtility.mjs +2 -2
- package/dist/functions/CanvasUtility.mjs.map +1 -1
- package/dist/functions/DialogueUtility.d.mts +10 -8
- package/dist/functions/DialogueUtility.d.ts +10 -8
- package/dist/functions/DialogueUtility.js +268 -131
- package/dist/functions/DialogueUtility.js.map +1 -1
- package/dist/functions/DialogueUtility.mjs +268 -131
- package/dist/functions/DialogueUtility.mjs.map +1 -1
- package/dist/functions/FlagsUtility.js +42 -33
- package/dist/functions/FlagsUtility.js.map +1 -1
- package/dist/functions/FlagsUtility.mjs +42 -33
- package/dist/functions/FlagsUtility.mjs.map +1 -1
- package/dist/functions/GameUtility.js +42 -33
- package/dist/functions/GameUtility.js.map +1 -1
- package/dist/functions/GameUtility.mjs +42 -33
- package/dist/functions/GameUtility.mjs.map +1 -1
- package/dist/functions/ImageUtility.js +45 -36
- package/dist/functions/ImageUtility.js.map +1 -1
- package/dist/functions/ImageUtility.mjs +45 -36
- package/dist/functions/ImageUtility.mjs.map +1 -1
- package/dist/functions/Importer.d.mts +24 -0
- package/dist/functions/Importer.d.ts +24 -0
- package/dist/functions/Importer.js +2804 -0
- package/dist/functions/Importer.js.map +1 -0
- package/dist/functions/Importer.mjs +2798 -0
- package/dist/functions/Importer.mjs.map +1 -0
- package/dist/functions/SavesUtility.d.mts +5 -3
- package/dist/functions/SavesUtility.d.ts +5 -3
- package/dist/functions/SavesUtility.js +310 -145
- package/dist/functions/SavesUtility.js.map +1 -1
- package/dist/functions/SavesUtility.mjs +310 -145
- package/dist/functions/SavesUtility.mjs.map +1 -1
- package/dist/functions/TickerUtility.d.mts +2 -1
- package/dist/functions/TickerUtility.d.ts +2 -1
- package/dist/functions/TickerUtility.js +19 -15
- package/dist/functions/TickerUtility.js.map +1 -1
- package/dist/functions/TickerUtility.mjs +19 -15
- package/dist/functions/TickerUtility.mjs.map +1 -1
- package/dist/functions/index.d.mts +7 -2
- package/dist/functions/index.d.ts +7 -2
- package/dist/functions/index.js +364 -140
- package/dist/functions/index.js.map +1 -1
- package/dist/functions/index.mjs +364 -141
- package/dist/functions/index.mjs.map +1 -1
- package/dist/index.d.mts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +453 -219
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +453 -221
- package/dist/index.mjs.map +1 -1
- package/dist/interface/IHistoryStep.d.mts +3 -1
- package/dist/interface/IHistoryStep.d.ts +3 -1
- package/dist/interface/ISaveData.d.mts +3 -1
- package/dist/interface/ISaveData.d.ts +3 -1
- package/dist/interface/LabelProps.d.mts +38 -0
- package/dist/interface/LabelProps.d.ts +38 -0
- package/dist/interface/LabelProps.js +4 -0
- package/dist/interface/LabelProps.js.map +1 -0
- package/dist/interface/LabelProps.mjs +3 -0
- package/dist/interface/LabelProps.mjs.map +1 -0
- package/dist/interface/export/ExportedStep.d.mts +3 -1
- package/dist/interface/export/ExportedStep.d.ts +3 -1
- package/dist/interface/export/index.d.mts +3 -1
- package/dist/interface/export/index.d.ts +3 -1
- package/dist/interface/index.d.mts +3 -1
- package/dist/interface/index.d.ts +3 -1
- package/dist/labels/BaseCanvasElementTestLabel.d.mts +3 -1
- package/dist/labels/BaseCanvasElementTestLabel.d.ts +3 -1
- package/dist/labels/BaseCanvasElementTestLabel.js +303 -136
- package/dist/labels/BaseCanvasElementTestLabel.js.map +1 -1
- package/dist/labels/BaseCanvasElementTestLabel.mjs +304 -137
- package/dist/labels/BaseCanvasElementTestLabel.mjs.map +1 -1
- package/dist/labels/CanvasEventsTestLabel.d.mts +4 -5
- package/dist/labels/CanvasEventsTestLabel.d.ts +4 -5
- package/dist/labels/CanvasEventsTestLabel.js +313 -148
- package/dist/labels/CanvasEventsTestLabel.js.map +1 -1
- package/dist/labels/CanvasEventsTestLabel.mjs +314 -149
- package/dist/labels/CanvasEventsTestLabel.mjs.map +1 -1
- package/dist/labels/CustomTickerCanvasElementTestLabel.d.mts +3 -1
- package/dist/labels/CustomTickerCanvasElementTestLabel.d.ts +3 -1
- package/dist/labels/CustomTickerCanvasElementTestLabel.js +294 -133
- package/dist/labels/CustomTickerCanvasElementTestLabel.js.map +1 -1
- package/dist/labels/CustomTickerCanvasElementTestLabel.mjs +295 -134
- package/dist/labels/CustomTickerCanvasElementTestLabel.mjs.map +1 -1
- package/dist/labels/ImagesAnimationsTestLabel.d.mts +3 -1
- package/dist/labels/ImagesAnimationsTestLabel.d.ts +3 -1
- package/dist/labels/ImagesAnimationsTestLabel.js +298 -181
- package/dist/labels/ImagesAnimationsTestLabel.js.map +1 -1
- package/dist/labels/ImagesAnimationsTestLabel.mjs +299 -182
- package/dist/labels/ImagesAnimationsTestLabel.mjs.map +1 -1
- package/dist/labels/MarkdownTest.d.mts +3 -1
- package/dist/labels/MarkdownTest.d.ts +3 -1
- package/dist/labels/MarkdownTest.js +294 -133
- package/dist/labels/MarkdownTest.js.map +1 -1
- package/dist/labels/MarkdownTest.mjs +294 -133
- package/dist/labels/MarkdownTest.mjs.map +1 -1
- package/dist/labels/StartLabel.d.mts +3 -1
- package/dist/labels/StartLabel.d.ts +3 -1
- package/dist/labels/StartLabel.js +360 -213
- package/dist/labels/StartLabel.js.map +1 -1
- package/dist/labels/StartLabel.mjs +361 -214
- package/dist/labels/StartLabel.mjs.map +1 -1
- package/dist/labels/StepLabelTest.d.mts +11 -0
- package/dist/labels/StepLabelTest.d.ts +11 -0
- package/dist/labels/StepLabelTest.js +2861 -0
- package/dist/labels/StepLabelTest.js.map +1 -0
- package/dist/labels/StepLabelTest.mjs +2855 -0
- package/dist/labels/StepLabelTest.mjs.map +1 -0
- package/dist/labels/TestConstant.js +43 -34
- package/dist/labels/TestConstant.js.map +1 -1
- package/dist/labels/TestConstant.mjs +43 -34
- package/dist/labels/TestConstant.mjs.map +1 -1
- package/dist/labels/index.d.mts +3 -1
- package/dist/labels/index.d.ts +3 -1
- package/dist/labels/index.js +360 -213
- package/dist/labels/index.js.map +1 -1
- package/dist/labels/index.mjs +361 -214
- package/dist/labels/index.mjs.map +1 -1
- package/dist/managers/StepManager.d.mts +10 -7
- package/dist/managers/StepManager.d.ts +10 -7
- package/dist/managers/StepManager.js +300 -139
- package/dist/managers/StepManager.js.map +1 -1
- package/dist/managers/StepManager.mjs +300 -139
- package/dist/managers/StepManager.mjs.map +1 -1
- package/dist/managers/WindowManager.js +2 -2
- package/dist/managers/WindowManager.js.map +1 -1
- package/dist/managers/WindowManager.mjs +2 -2
- package/dist/managers/WindowManager.mjs.map +1 -1
- package/dist/managers/index.d.mts +7 -5
- package/dist/managers/index.d.ts +7 -5
- package/dist/managers/index.js +300 -139
- package/dist/managers/index.js.map +1 -1
- package/dist/managers/index.mjs +300 -139
- package/dist/managers/index.mjs.map +1 -1
- package/dist/types/ChoiceMenuOptionsType.d.mts +3 -1
- package/dist/types/ChoiceMenuOptionsType.d.ts +3 -1
- package/dist/types/LabelJsonType.d.mts +22 -0
- package/dist/types/LabelJsonType.d.ts +22 -0
- package/dist/types/LabelJsonType.js +4 -0
- package/dist/types/LabelJsonType.js.map +1 -0
- package/dist/types/LabelJsonType.mjs +3 -0
- package/dist/types/LabelJsonType.mjs.map +1 -0
- package/dist/types/StepLabelJsonType.d.mts +30 -0
- package/dist/types/StepLabelJsonType.d.ts +30 -0
- package/dist/types/StepLabelJsonType.js +4 -0
- package/dist/types/StepLabelJsonType.js.map +1 -0
- package/dist/types/StepLabelJsonType.mjs +3 -0
- package/dist/types/StepLabelJsonType.mjs.map +1 -0
- package/dist/types/index.d.mts +4 -0
- package/dist/types/index.d.ts +4 -0
- package/package.json +7 -6
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import deepDiff from 'deep-diff';
|
|
2
2
|
import { IStoratedChoiceMenuOption } from '../classes/ChoiceMenuOption.mjs';
|
|
3
|
+
import { LabelIdType } from '../types/LabelIdType.mjs';
|
|
3
4
|
import IOpenedLabel from './IOpenedLabel.mjs';
|
|
4
5
|
import ExportedCanvas from './export/ExportedCanvas.mjs';
|
|
5
6
|
import ExportedStorage from './export/ExportedStorage.mjs';
|
|
6
7
|
import DialogueBaseModel from '../classes/DialogueBaseModel.mjs';
|
|
7
|
-
import { LabelIdType } from '../types/LabelIdType.mjs';
|
|
8
8
|
import { StepHistoryDataType } from '../types/StepHistoryDataType.mjs';
|
|
9
9
|
import '../types/StorageElementType.mjs';
|
|
10
10
|
import '../classes/Label.mjs';
|
|
11
11
|
import '../types/StepLabelType.mjs';
|
|
12
12
|
import '@drincs/pixi-vn/dist/override';
|
|
13
|
+
import '../classes/LabelAbstract.mjs';
|
|
14
|
+
import './LabelProps.mjs';
|
|
13
15
|
import '../types/CloseType.mjs';
|
|
14
16
|
import '../types/LabelRunModeType.mjs';
|
|
15
17
|
import './canvas/ICanvasBaseMemory.mjs';
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import deepDiff from 'deep-diff';
|
|
2
2
|
import { IStoratedChoiceMenuOption } from '../classes/ChoiceMenuOption.js';
|
|
3
|
+
import { LabelIdType } from '../types/LabelIdType.js';
|
|
3
4
|
import IOpenedLabel from './IOpenedLabel.js';
|
|
4
5
|
import ExportedCanvas from './export/ExportedCanvas.js';
|
|
5
6
|
import ExportedStorage from './export/ExportedStorage.js';
|
|
6
7
|
import DialogueBaseModel from '../classes/DialogueBaseModel.js';
|
|
7
|
-
import { LabelIdType } from '../types/LabelIdType.js';
|
|
8
8
|
import { StepHistoryDataType } from '../types/StepHistoryDataType.js';
|
|
9
9
|
import '../types/StorageElementType.js';
|
|
10
10
|
import '../classes/Label.js';
|
|
11
11
|
import '../types/StepLabelType.js';
|
|
12
12
|
import '@drincs/pixi-vn/dist/override';
|
|
13
|
+
import '../classes/LabelAbstract.js';
|
|
14
|
+
import './LabelProps.js';
|
|
13
15
|
import '../types/CloseType.js';
|
|
14
16
|
import '../types/LabelRunModeType.js';
|
|
15
17
|
import './canvas/ICanvasBaseMemory.js';
|
|
@@ -15,9 +15,11 @@ import 'deep-diff';
|
|
|
15
15
|
import '../classes/ChoiceMenuOption.mjs';
|
|
16
16
|
import '../types/LabelIdType.mjs';
|
|
17
17
|
import '../classes/Label.mjs';
|
|
18
|
-
import '../types/StepHistoryDataType.mjs';
|
|
19
18
|
import '../types/StepLabelType.mjs';
|
|
20
19
|
import '@drincs/pixi-vn/dist/override';
|
|
20
|
+
import '../classes/LabelAbstract.mjs';
|
|
21
|
+
import '../types/StepHistoryDataType.mjs';
|
|
22
|
+
import './LabelProps.mjs';
|
|
21
23
|
import '../types/CloseType.mjs';
|
|
22
24
|
import '../types/LabelRunModeType.mjs';
|
|
23
25
|
import './IOpenedLabel.mjs';
|
|
@@ -15,9 +15,11 @@ import 'deep-diff';
|
|
|
15
15
|
import '../classes/ChoiceMenuOption.js';
|
|
16
16
|
import '../types/LabelIdType.js';
|
|
17
17
|
import '../classes/Label.js';
|
|
18
|
-
import '../types/StepHistoryDataType.js';
|
|
19
18
|
import '../types/StepLabelType.js';
|
|
20
19
|
import '@drincs/pixi-vn/dist/override';
|
|
20
|
+
import '../classes/LabelAbstract.js';
|
|
21
|
+
import '../types/StepHistoryDataType.js';
|
|
22
|
+
import './LabelProps.js';
|
|
21
23
|
import '../types/CloseType.js';
|
|
22
24
|
import '../types/LabelRunModeType.js';
|
|
23
25
|
import './IOpenedLabel.js';
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
interface LabelProps<T> {
|
|
2
|
+
/**
|
|
3
|
+
* Is a function that will be executed before any step is executed, is useful for example to make sure all images used have been cached.
|
|
4
|
+
* @param stepIndex Step index
|
|
5
|
+
* @param label Label
|
|
6
|
+
* @returns
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* newLabel("id", [], {
|
|
10
|
+
* onStepStart: async (stepIndex, label) => {
|
|
11
|
+
* await Assets.load('path/to/image1.png')
|
|
12
|
+
* await Assets.load('path/to/image2.png')
|
|
13
|
+
* }
|
|
14
|
+
* })
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
onStepStart?: (stepIndex: number, label: T) => void | Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* Is a function that will be executed in {@link Label#onStepStart} and when the user goes back to it or when the user laods a save file.
|
|
20
|
+
* @param stepIndex Step index
|
|
21
|
+
* @param label Label
|
|
22
|
+
* @returns
|
|
23
|
+
*/
|
|
24
|
+
onLoadStep?: (stepIndex: number, label: T) => void | Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* Is a function that will be executed when the step ends.
|
|
27
|
+
* @param stepIndex Step index
|
|
28
|
+
* @param label Label
|
|
29
|
+
* @returns
|
|
30
|
+
*/
|
|
31
|
+
onStepEnd?: (stepIndex: number, label: T) => void | Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* Is the index of the choice that the label will perform. This variable is used in the system.
|
|
34
|
+
*/
|
|
35
|
+
choiseIndex?: number;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type { LabelProps as default };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
interface LabelProps<T> {
|
|
2
|
+
/**
|
|
3
|
+
* Is a function that will be executed before any step is executed, is useful for example to make sure all images used have been cached.
|
|
4
|
+
* @param stepIndex Step index
|
|
5
|
+
* @param label Label
|
|
6
|
+
* @returns
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* newLabel("id", [], {
|
|
10
|
+
* onStepStart: async (stepIndex, label) => {
|
|
11
|
+
* await Assets.load('path/to/image1.png')
|
|
12
|
+
* await Assets.load('path/to/image2.png')
|
|
13
|
+
* }
|
|
14
|
+
* })
|
|
15
|
+
* ```
|
|
16
|
+
*/
|
|
17
|
+
onStepStart?: (stepIndex: number, label: T) => void | Promise<void>;
|
|
18
|
+
/**
|
|
19
|
+
* Is a function that will be executed in {@link Label#onStepStart} and when the user goes back to it or when the user laods a save file.
|
|
20
|
+
* @param stepIndex Step index
|
|
21
|
+
* @param label Label
|
|
22
|
+
* @returns
|
|
23
|
+
*/
|
|
24
|
+
onLoadStep?: (stepIndex: number, label: T) => void | Promise<void>;
|
|
25
|
+
/**
|
|
26
|
+
* Is a function that will be executed when the step ends.
|
|
27
|
+
* @param stepIndex Step index
|
|
28
|
+
* @param label Label
|
|
29
|
+
* @returns
|
|
30
|
+
*/
|
|
31
|
+
onStepEnd?: (stepIndex: number, label: T) => void | Promise<void>;
|
|
32
|
+
/**
|
|
33
|
+
* Is the index of the choice that the label will perform. This variable is used in the system.
|
|
34
|
+
*/
|
|
35
|
+
choiseIndex?: number;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type { LabelProps as default };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"LabelProps.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"LabelProps.mjs"}
|
|
@@ -15,9 +15,11 @@ import 'deep-diff';
|
|
|
15
15
|
import '../../classes/ChoiceMenuOption.mjs';
|
|
16
16
|
import '../../types/LabelIdType.mjs';
|
|
17
17
|
import '../../classes/Label.mjs';
|
|
18
|
-
import '../../types/StepHistoryDataType.mjs';
|
|
19
18
|
import '../../types/StepLabelType.mjs';
|
|
20
19
|
import '@drincs/pixi-vn/dist/override';
|
|
20
|
+
import '../../classes/LabelAbstract.mjs';
|
|
21
|
+
import '../../types/StepHistoryDataType.mjs';
|
|
22
|
+
import '../LabelProps.mjs';
|
|
21
23
|
import '../../types/CloseType.mjs';
|
|
22
24
|
import '../../types/LabelRunModeType.mjs';
|
|
23
25
|
import '../../classes/DialogueBaseModel.mjs';
|
|
@@ -15,9 +15,11 @@ import 'deep-diff';
|
|
|
15
15
|
import '../../classes/ChoiceMenuOption.js';
|
|
16
16
|
import '../../types/LabelIdType.js';
|
|
17
17
|
import '../../classes/Label.js';
|
|
18
|
-
import '../../types/StepHistoryDataType.js';
|
|
19
18
|
import '../../types/StepLabelType.js';
|
|
20
19
|
import '@drincs/pixi-vn/dist/override';
|
|
20
|
+
import '../../classes/LabelAbstract.js';
|
|
21
|
+
import '../../types/StepHistoryDataType.js';
|
|
22
|
+
import '../LabelProps.js';
|
|
21
23
|
import '../../types/CloseType.js';
|
|
22
24
|
import '../../types/LabelRunModeType.js';
|
|
23
25
|
import '../../classes/DialogueBaseModel.js';
|
|
@@ -15,9 +15,11 @@ import 'deep-diff';
|
|
|
15
15
|
import '../../classes/ChoiceMenuOption.mjs';
|
|
16
16
|
import '../../types/LabelIdType.mjs';
|
|
17
17
|
import '../../classes/Label.mjs';
|
|
18
|
-
import '../../types/StepHistoryDataType.mjs';
|
|
19
18
|
import '../../types/StepLabelType.mjs';
|
|
20
19
|
import '@drincs/pixi-vn/dist/override';
|
|
20
|
+
import '../../classes/LabelAbstract.mjs';
|
|
21
|
+
import '../../types/StepHistoryDataType.mjs';
|
|
22
|
+
import '../LabelProps.mjs';
|
|
21
23
|
import '../../types/CloseType.mjs';
|
|
22
24
|
import '../../types/LabelRunModeType.mjs';
|
|
23
25
|
import '../IOpenedLabel.mjs';
|
|
@@ -15,9 +15,11 @@ import 'deep-diff';
|
|
|
15
15
|
import '../../classes/ChoiceMenuOption.js';
|
|
16
16
|
import '../../types/LabelIdType.js';
|
|
17
17
|
import '../../classes/Label.js';
|
|
18
|
-
import '../../types/StepHistoryDataType.js';
|
|
19
18
|
import '../../types/StepLabelType.js';
|
|
20
19
|
import '@drincs/pixi-vn/dist/override';
|
|
20
|
+
import '../../classes/LabelAbstract.js';
|
|
21
|
+
import '../../types/StepHistoryDataType.js';
|
|
22
|
+
import '../LabelProps.js';
|
|
21
23
|
import '../../types/CloseType.js';
|
|
22
24
|
import '../../types/LabelRunModeType.js';
|
|
23
25
|
import '../IOpenedLabel.js';
|
|
@@ -5,6 +5,7 @@ export { default as IOpenedLabel } from './IOpenedLabel.mjs';
|
|
|
5
5
|
export { default as ISaveData } from './ISaveData.mjs';
|
|
6
6
|
export { I as ITicker } from '../TickerBase-DKYzbzro.mjs';
|
|
7
7
|
export { default as ITickersSteps } from './ITickersSteps.mjs';
|
|
8
|
+
export { default as LabelProps } from './LabelProps.mjs';
|
|
8
9
|
export { default as TickerHistory, TickerHistoryForExport } from './TickerHistory.mjs';
|
|
9
10
|
export { TickerProgrationType } from './TickerProgrationType.mjs';
|
|
10
11
|
export { default as TickerTimeoutHistory } from './TickerTimeoutHistory.mjs';
|
|
@@ -19,9 +20,10 @@ import 'deep-diff';
|
|
|
19
20
|
import '../classes/ChoiceMenuOption.mjs';
|
|
20
21
|
import '../types/LabelIdType.mjs';
|
|
21
22
|
import '../classes/Label.mjs';
|
|
22
|
-
import '../types/StepHistoryDataType.mjs';
|
|
23
23
|
import '../types/StepLabelType.mjs';
|
|
24
24
|
import '@drincs/pixi-vn/dist/override';
|
|
25
|
+
import '../classes/LabelAbstract.mjs';
|
|
26
|
+
import '../types/StepHistoryDataType.mjs';
|
|
25
27
|
import './export/ExportedCanvas.mjs';
|
|
26
28
|
import './canvas/ICanvasBaseMemory.mjs';
|
|
27
29
|
import './export/ExportedStorage.mjs';
|
|
@@ -5,6 +5,7 @@ export { default as IOpenedLabel } from './IOpenedLabel.js';
|
|
|
5
5
|
export { default as ISaveData } from './ISaveData.js';
|
|
6
6
|
export { I as ITicker } from '../TickerBase-3rLpDpmb.js';
|
|
7
7
|
export { default as ITickersSteps } from './ITickersSteps.js';
|
|
8
|
+
export { default as LabelProps } from './LabelProps.js';
|
|
8
9
|
export { default as TickerHistory, TickerHistoryForExport } from './TickerHistory.js';
|
|
9
10
|
export { TickerProgrationType } from './TickerProgrationType.js';
|
|
10
11
|
export { default as TickerTimeoutHistory } from './TickerTimeoutHistory.js';
|
|
@@ -19,9 +20,10 @@ import 'deep-diff';
|
|
|
19
20
|
import '../classes/ChoiceMenuOption.js';
|
|
20
21
|
import '../types/LabelIdType.js';
|
|
21
22
|
import '../classes/Label.js';
|
|
22
|
-
import '../types/StepHistoryDataType.js';
|
|
23
23
|
import '../types/StepLabelType.js';
|
|
24
24
|
import '@drincs/pixi-vn/dist/override';
|
|
25
|
+
import '../classes/LabelAbstract.js';
|
|
26
|
+
import '../types/StepHistoryDataType.js';
|
|
25
27
|
import './export/ExportedCanvas.js';
|
|
26
28
|
import './canvas/ICanvasBaseMemory.js';
|
|
27
29
|
import './export/ExportedStorage.js';
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import Label from '../classes/Label.mjs';
|
|
2
2
|
import '../types/LabelIdType.mjs';
|
|
3
|
-
import '../types/StepHistoryDataType.mjs';
|
|
4
3
|
import '../types/StepLabelType.mjs';
|
|
5
4
|
import '@drincs/pixi-vn/dist/override';
|
|
5
|
+
import '../classes/LabelAbstract.mjs';
|
|
6
|
+
import '../types/StepHistoryDataType.mjs';
|
|
7
|
+
import '../interface/LabelProps.mjs';
|
|
6
8
|
|
|
7
9
|
declare const baseCanvasElementTestLabel: Label<{}>;
|
|
8
10
|
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import Label from '../classes/Label.js';
|
|
2
2
|
import '../types/LabelIdType.js';
|
|
3
|
-
import '../types/StepHistoryDataType.js';
|
|
4
3
|
import '../types/StepLabelType.js';
|
|
5
4
|
import '@drincs/pixi-vn/dist/override';
|
|
5
|
+
import '../classes/LabelAbstract.js';
|
|
6
|
+
import '../types/StepHistoryDataType.js';
|
|
7
|
+
import '../interface/LabelProps.js';
|
|
6
8
|
|
|
7
9
|
declare const baseCanvasElementTestLabel: Label<{}>;
|
|
8
10
|
|