@drincs/pixi-vn 0.8.5 → 0.8.9
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/{chunk-OBQXJNCS.js → chunk-4KV6VMUV.js} +92 -6
- package/dist/{chunk-ATJOKACB.js → chunk-5A543GJ4.js} +2 -2
- package/dist/{chunk-P5XNCVKG.js → chunk-A4NKPUL5.js} +4 -2
- package/dist/{chunk-IWJD3C4Y.js → chunk-BHVKSBFZ.js} +2 -2
- package/dist/{chunk-RUYEWYEH.js → chunk-D3ZQSJKZ.js} +171 -22
- package/dist/{chunk-VIQQNPPV.js → chunk-FIQXZ3P3.js} +2 -2
- package/dist/{chunk-LZHBFVRK.js → chunk-FM5SFYXO.js} +1 -1
- package/dist/{chunk-7TH27DDS.js → chunk-GEWQS6GP.js} +46 -4
- package/dist/{chunk-C3CICOHN.js → chunk-GKLIT4GX.js} +2 -2
- package/dist/{chunk-RAQZR6CM.js → chunk-GNFWXAOE.js} +2 -2
- package/dist/{chunk-REITIQ75.js → chunk-SZWI2CBA.js} +3 -3
- package/dist/{chunk-XWOKK2Z4.js → chunk-TNQKYUOG.js} +2 -2
- package/dist/classes/CharacterBaseModel.cjs +25 -18
- package/dist/classes/CharacterBaseModel.js +2 -2
- package/dist/classes/CharacterStoredClass.cjs +25 -18
- package/dist/classes/CharacterStoredClass.js +2 -2
- package/dist/classes/ChoiceMenuOption.cjs +25 -18
- package/dist/classes/ChoiceMenuOption.d.cts +1 -1
- package/dist/classes/ChoiceMenuOption.d.ts +1 -1
- package/dist/classes/ChoiceMenuOption.js +2 -2
- package/dist/classes/Sound.cjs +25 -18
- package/dist/classes/Sound.js +2 -2
- package/dist/classes/StoredClassModel.cjs +25 -18
- package/dist/classes/StoredClassModel.js +2 -2
- package/dist/classes/canvas/CanvasAVideo.cjs +25 -18
- package/dist/classes/canvas/CanvasAVideo.js +2 -2
- package/dist/classes/canvas/CanvasContainer.cjs +25 -18
- package/dist/classes/canvas/CanvasContainer.js +2 -2
- package/dist/classes/canvas/CanvasImage.cjs +25 -18
- package/dist/classes/canvas/CanvasImage.js +2 -2
- package/dist/classes/canvas/CanvasSprite.cjs +25 -18
- package/dist/classes/canvas/CanvasSprite.js +2 -2
- package/dist/classes/canvas/CanvasText.cjs +25 -18
- package/dist/classes/canvas/CanvasText.js +2 -2
- package/dist/classes/index.cjs +25 -18
- package/dist/classes/index.d.cts +1 -1
- package/dist/classes/index.d.ts +1 -1
- package/dist/classes/index.js +2 -2
- package/dist/classes/ticker/FadeAlphaTicker.cjs +25 -18
- package/dist/classes/ticker/FadeAlphaTicker.d.cts +3 -2
- package/dist/classes/ticker/FadeAlphaTicker.d.ts +3 -2
- package/dist/classes/ticker/FadeAlphaTicker.js +2 -2
- package/dist/classes/ticker/MoveTicker.cjs +25 -18
- package/dist/classes/ticker/MoveTicker.d.cts +3 -2
- package/dist/classes/ticker/MoveTicker.d.ts +3 -2
- package/dist/classes/ticker/MoveTicker.js +2 -2
- package/dist/classes/ticker/RotateTicker.cjs +25 -18
- package/dist/classes/ticker/RotateTicker.d.cts +3 -2
- package/dist/classes/ticker/RotateTicker.d.ts +3 -2
- package/dist/classes/ticker/RotateTicker.js +2 -2
- package/dist/classes/ticker/TickerBase.cjs +25 -18
- package/dist/classes/ticker/TickerBase.d.cts +70 -4
- package/dist/classes/ticker/TickerBase.d.ts +70 -4
- package/dist/classes/ticker/TickerBase.js +2 -2
- package/dist/classes/ticker/ZoomTicker.cjs +25 -18
- package/dist/classes/ticker/ZoomTicker.d.cts +4 -3
- package/dist/classes/ticker/ZoomTicker.d.ts +4 -3
- package/dist/classes/ticker/ZoomTicker.js +2 -2
- package/dist/classes/ticker/index.cjs +25 -18
- package/dist/classes/ticker/index.d.cts +3 -2
- package/dist/classes/ticker/index.d.ts +3 -2
- package/dist/classes/ticker/index.js +2 -2
- package/dist/constants.cjs +8 -6
- package/dist/constants.d.cts +3 -2
- package/dist/constants.d.ts +3 -2
- package/dist/constants.js +3 -3
- package/dist/decorators/canvas-element-decorator.cjs +25 -18
- package/dist/decorators/canvas-element-decorator.js +2 -2
- package/dist/decorators/index.cjs +25 -18
- package/dist/decorators/index.d.cts +3 -2
- package/dist/decorators/index.d.ts +3 -2
- package/dist/decorators/index.js +2 -2
- package/dist/decorators/label-decorator.cjs +25 -18
- package/dist/decorators/label-decorator.js +2 -2
- package/dist/decorators/ticker-decorator.d.cts +4 -3
- package/dist/decorators/ticker-decorator.d.ts +4 -3
- package/dist/functions/canvas/canvas-effect.cjs +25 -18
- package/dist/functions/canvas/canvas-effect.js +2 -2
- package/dist/functions/canvas/canvas-memory-utility.cjs +25 -18
- package/dist/functions/canvas/canvas-memory-utility.js +2 -2
- package/dist/functions/canvas/canvas-transition.cjs +177 -26
- package/dist/functions/canvas/canvas-transition.d.cts +39 -14
- package/dist/functions/canvas/canvas-transition.d.ts +39 -14
- package/dist/functions/canvas/canvas-transition.js +6 -2
- package/dist/functions/canvas/canvas-utility.cjs +25 -18
- package/dist/functions/canvas/canvas-utility.js +2 -2
- package/dist/functions/canvas/image-utility.cjs +25 -18
- package/dist/functions/canvas/image-utility.js +2 -2
- package/dist/functions/canvas/video-utility.cjs +25 -18
- package/dist/functions/canvas/video-utility.js +2 -2
- package/dist/functions/dialogue-utility.cjs +25 -18
- package/dist/functions/dialogue-utility.d.cts +1 -1
- package/dist/functions/dialogue-utility.d.ts +1 -1
- package/dist/functions/dialogue-utility.js +2 -2
- package/dist/functions/flags-utility.cjs +25 -18
- package/dist/functions/flags-utility.js +2 -2
- package/dist/functions/game-utility.cjs +25 -18
- package/dist/functions/game-utility.js +2 -2
- package/dist/functions/index.cjs +181 -28
- package/dist/functions/index.d.cts +8 -8
- package/dist/functions/index.d.ts +8 -8
- package/dist/functions/index.js +6 -2
- package/dist/functions/saves-utility.cjs +29 -20
- package/dist/functions/saves-utility.d.cts +10 -10
- package/dist/functions/saves-utility.d.ts +10 -10
- package/dist/functions/saves-utility.js +2 -2
- package/dist/functions/ticker-utility.d.cts +1 -1
- package/dist/functions/ticker-utility.d.ts +1 -1
- package/dist/index.cjs +224 -31
- package/dist/index.d.cts +10 -8
- package/dist/index.d.ts +10 -8
- package/dist/index.js +17 -15
- package/dist/interface/{IOpenedLabel.cjs → HistoryStep.cjs} +3 -3
- package/dist/interface/{IHistoryStep.d.cts → HistoryStep.d.cts} +9 -9
- package/dist/interface/{IHistoryStep.d.ts → HistoryStep.d.ts} +9 -9
- package/dist/interface/{IHistoryStep.cjs → OpenedLabel.cjs} +3 -3
- package/dist/interface/{IOpenedLabel.d.cts → OpenedLabel.d.cts} +2 -2
- package/dist/interface/{IOpenedLabel.d.ts → OpenedLabel.d.ts} +2 -2
- package/dist/interface/{ISaveData.cjs → SaveData.cjs} +3 -3
- package/dist/interface/{ISaveData.d.cts → SaveData.d.cts} +8 -8
- package/dist/interface/{ISaveData.d.ts → SaveData.d.ts} +8 -8
- package/dist/interface/SoundOptions.d.cts +1 -1
- package/dist/interface/SoundOptions.d.ts +1 -1
- package/dist/interface/{ITicker.cjs → Ticker.cjs} +3 -3
- package/dist/interface/Ticker.d.cts +24 -0
- package/dist/interface/Ticker.d.ts +24 -0
- package/dist/interface/TickerArgs.cjs +18 -0
- package/dist/interface/TickerArgs.d.cts +5 -0
- package/dist/interface/TickerArgs.d.ts +5 -0
- package/dist/interface/TickerHistory.d.cts +4 -5
- package/dist/interface/TickerHistory.d.ts +4 -5
- package/dist/interface/TickerProgrationType.d.cts +7 -6
- package/dist/interface/TickerProgrationType.d.ts +7 -6
- package/dist/interface/TickersSteps.cjs +18 -0
- package/dist/interface/{ITickersSteps.d.cts → TickersSteps.d.cts} +5 -7
- package/dist/interface/{ITickersSteps.d.ts → TickersSteps.d.ts} +5 -7
- package/dist/interface/canvas/canvas-memory.d.cts +1 -1
- package/dist/interface/canvas/canvas-memory.d.ts +1 -1
- package/dist/interface/canvas/effect-props.d.cts +1 -1
- package/dist/interface/canvas/effect-props.d.ts +1 -1
- package/dist/interface/canvas/transition-props.d.cts +19 -5
- package/dist/interface/canvas/transition-props.d.ts +19 -5
- package/dist/interface/export/ExportedCanvas.d.cts +3 -4
- package/dist/interface/export/ExportedCanvas.d.ts +3 -4
- package/dist/interface/export/ExportedStep.d.cts +9 -9
- package/dist/interface/export/ExportedStep.d.ts +9 -9
- package/dist/interface/index.d.cts +9 -8
- package/dist/interface/index.d.ts +9 -8
- package/dist/labels/BaseCanvasElementTestLabel.cjs +25 -18
- package/dist/labels/BaseCanvasElementTestLabel.js +4 -4
- package/dist/labels/CanvasEventsTestLabel.cjs +25 -18
- package/dist/labels/CanvasEventsTestLabel.js +4 -4
- package/dist/labels/CustomTickerCanvasElementTestLabel.cjs +1656 -19
- package/dist/labels/CustomTickerCanvasElementTestLabel.d.cts +3 -2
- package/dist/labels/CustomTickerCanvasElementTestLabel.d.ts +3 -2
- package/dist/labels/CustomTickerCanvasElementTestLabel.js +14 -4
- package/dist/labels/ImagesAnimationsTestLabel.cjs +214 -27
- package/dist/labels/ImagesAnimationsTestLabel.js +4 -4
- package/dist/labels/InputTestLabel.cjs +25 -18
- package/dist/labels/InputTestLabel.js +4 -4
- package/dist/labels/MarkdownTest.cjs +25 -18
- package/dist/labels/MarkdownTest.js +4 -4
- package/dist/labels/SoundTestLabel.cjs +25 -18
- package/dist/labels/SoundTestLabel.js +4 -4
- package/dist/labels/StartLabel.cjs +224 -30
- package/dist/labels/StartLabel.js +14 -13
- package/dist/labels/StepLabelTest.cjs +25 -18
- package/dist/labels/StepLabelTest.js +4 -4
- package/dist/labels/TestConstant.cjs +25 -18
- package/dist/labels/TestConstant.js +3 -3
- package/dist/labels/VideoTestLabel.cjs +30 -20
- package/dist/labels/VideoTestLabel.js +4 -4
- package/dist/labels/index.cjs +224 -30
- package/dist/labels/index.js +14 -14
- package/dist/managers/CanvasManager.cjs +25 -18
- package/dist/managers/CanvasManager.d.cts +16 -8
- package/dist/managers/CanvasManager.d.ts +16 -8
- package/dist/managers/CanvasManager.js +2 -2
- package/dist/managers/CanvasManagerStatic.d.cts +4 -5
- package/dist/managers/CanvasManagerStatic.d.ts +4 -5
- package/dist/managers/NarrationManager.cjs +25 -18
- package/dist/managers/NarrationManager.d.cts +7 -7
- package/dist/managers/NarrationManager.d.ts +7 -7
- package/dist/managers/NarrationManager.js +2 -2
- package/dist/managers/NarrationManagerStatic.cjs +25 -18
- package/dist/managers/NarrationManagerStatic.d.cts +13 -13
- package/dist/managers/NarrationManagerStatic.d.ts +13 -13
- package/dist/managers/NarrationManagerStatic.js +2 -2
- package/dist/managers/SoundManager.cjs +25 -18
- package/dist/managers/SoundManager.js +2 -2
- package/dist/managers/StorageManager.cjs +25 -18
- package/dist/managers/StorageManager.js +2 -2
- package/dist/managers/index.cjs +25 -18
- package/dist/managers/index.d.cts +8 -6
- package/dist/managers/index.d.ts +8 -6
- package/dist/managers/index.js +2 -2
- package/dist/types/ChoiceMenuOptionsType.d.cts +1 -1
- package/dist/types/ChoiceMenuOptionsType.d.ts +1 -1
- package/dist/types/StepLabelType.d.cts +1 -1
- package/dist/types/StepLabelType.d.ts +1 -1
- package/dist/types/ticker/MoveTickerProps.d.cts +8 -2
- package/dist/types/ticker/MoveTickerProps.d.ts +8 -2
- package/dist/types/ticker/RotateTickerProps.d.cts +1 -1
- package/dist/types/ticker/RotateTickerProps.d.ts +1 -1
- package/dist/types/ticker/ZoomTickerProps.d.cts +1 -1
- package/dist/types/ticker/ZoomTickerProps.d.ts +1 -1
- package/package.json +4 -4
- package/dist/TickerBase-DbIg7gDS.d.ts +0 -94
- package/dist/TickerBase-eU4Hvvy0.d.cts +0 -94
- package/dist/chunk-TFGPTMIQ.js +0 -101
- package/dist/interface/ITicker.d.cts +0 -4
- package/dist/interface/ITicker.d.ts +0 -4
- package/dist/interface/ITickersSteps.cjs +0 -18
- /package/dist/{chunk-JQ2KK52M.js → interface/HistoryStep.js} +0 -0
- /package/dist/interface/{IHistoryStep.js → OpenedLabel.js} +0 -0
- /package/dist/interface/{IOpenedLabel.js → SaveData.js} +0 -0
- /package/dist/interface/{ISaveData.js → Ticker.js} +0 -0
- /package/dist/interface/{ITicker.js → TickerArgs.js} +0 -0
- /package/dist/interface/{ITickersSteps.js → TickersSteps.js} +0 -0
|
@@ -1,30 +1,114 @@
|
|
|
1
|
+
import {
|
|
2
|
+
videoTest
|
|
3
|
+
} from "./chunk-GNFWXAOE.js";
|
|
4
|
+
import {
|
|
5
|
+
imagesAnimationsTest
|
|
6
|
+
} from "./chunk-GEWQS6GP.js";
|
|
7
|
+
import {
|
|
8
|
+
inputTestLabel
|
|
9
|
+
} from "./chunk-FIQXZ3P3.js";
|
|
10
|
+
import {
|
|
11
|
+
markdownTest
|
|
12
|
+
} from "./chunk-TNQKYUOG.js";
|
|
13
|
+
import {
|
|
14
|
+
soundTestLabel
|
|
15
|
+
} from "./chunk-SZWI2CBA.js";
|
|
16
|
+
import {
|
|
17
|
+
stepLabelTestLAbel
|
|
18
|
+
} from "./chunk-5A543GJ4.js";
|
|
19
|
+
import {
|
|
20
|
+
baseCanvasElementTestLabel
|
|
21
|
+
} from "./chunk-BHVKSBFZ.js";
|
|
22
|
+
import {
|
|
23
|
+
canvasEventsTestLabel
|
|
24
|
+
} from "./chunk-GKLIT4GX.js";
|
|
1
25
|
import {
|
|
2
26
|
eggHeadImage,
|
|
3
27
|
eggHeadName,
|
|
4
28
|
juliette
|
|
5
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-FM5SFYXO.js";
|
|
6
30
|
import {
|
|
7
31
|
CanvasSprite,
|
|
32
|
+
ChoiceMenuOption,
|
|
8
33
|
TickerBase,
|
|
9
34
|
canvas,
|
|
10
35
|
canvasElementDecorator,
|
|
11
36
|
narration,
|
|
12
37
|
newLabel
|
|
13
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-D3ZQSJKZ.js";
|
|
14
39
|
import {
|
|
15
40
|
tickerDecorator
|
|
16
41
|
} from "./chunk-JTQGULTR.js";
|
|
42
|
+
import {
|
|
43
|
+
version
|
|
44
|
+
} from "./chunk-A4NKPUL5.js";
|
|
17
45
|
import {
|
|
18
46
|
Assets
|
|
19
47
|
} from "./chunk-2PXN34ON.js";
|
|
20
48
|
import {
|
|
21
|
-
Rectangle
|
|
22
|
-
Sprite
|
|
49
|
+
Rectangle
|
|
23
50
|
} from "./chunk-PZXJFPCN.js";
|
|
24
51
|
import {
|
|
25
52
|
__decorateClass
|
|
26
53
|
} from "./chunk-N342G4HO.js";
|
|
27
54
|
|
|
55
|
+
// src/labels/StartLabel.ts
|
|
56
|
+
var pixivnTestStartLabel = newLabel(
|
|
57
|
+
"___pixi_vn_example_start_label___",
|
|
58
|
+
[
|
|
59
|
+
() => {
|
|
60
|
+
let currentTimeName = "";
|
|
61
|
+
const hour = (/* @__PURE__ */ new Date()).getHours();
|
|
62
|
+
if (hour >= 5 && hour < 12) {
|
|
63
|
+
currentTimeName = "morning\u{1F505}";
|
|
64
|
+
} else if (hour >= 12 && hour < 18) {
|
|
65
|
+
currentTimeName = "afternoon\u{1F506}";
|
|
66
|
+
} else if (hour >= 18 && hour < 22) {
|
|
67
|
+
currentTimeName = "evening\u26C5";
|
|
68
|
+
} else {
|
|
69
|
+
currentTimeName = "night\u{1F319}";
|
|
70
|
+
}
|
|
71
|
+
narration.dialogue = { character: juliette, text: `Good ${currentTimeName}! I'm ${juliette.name}, your virtual assistant. I'm here to help you with your tests.` };
|
|
72
|
+
},
|
|
73
|
+
() => narration.dialogue = { character: juliette, text: `You are running the Pixi\u2019VN v${version} test. This test will guide you through the different features of the library.` },
|
|
74
|
+
(props) => narration.jumpLabel(pixivnTestStartLabel2, props)
|
|
75
|
+
]
|
|
76
|
+
);
|
|
77
|
+
var openLink = newLabel(
|
|
78
|
+
"___pixi_vn_open_link___",
|
|
79
|
+
[
|
|
80
|
+
async (props) => {
|
|
81
|
+
window.open(props.link);
|
|
82
|
+
await narration.goNext(props);
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
);
|
|
86
|
+
var RESTART_TEST_LABEL = "___pixi_vn_restart_test_label___";
|
|
87
|
+
var pixivnTestStartLabel2 = newLabel(
|
|
88
|
+
RESTART_TEST_LABEL,
|
|
89
|
+
[
|
|
90
|
+
() => {
|
|
91
|
+
canvas.clear();
|
|
92
|
+
narration.dialogue = { character: juliette, text: "Which test would you like to start with?" };
|
|
93
|
+
narration.choiceMenuOptions = [
|
|
94
|
+
new ChoiceMenuOption("Open Pixi\u2019VN Wiki", openLink, { link: "https://pixi-vn.web.app/" }),
|
|
95
|
+
new ChoiceMenuOption("Open Pixi\u2019VN Discord", openLink, { link: "https://discord.gg/E95FZWakzp" }),
|
|
96
|
+
new ChoiceMenuOption("Open Pixi\u2019VN Github Issues", openLink, { link: "https://github.com/DRincs-Productions/pixi-vn/issues" }),
|
|
97
|
+
new ChoiceMenuOption("Images, Transitions and Animations Test", imagesAnimationsTest, {}),
|
|
98
|
+
new ChoiceMenuOption("Video Test", videoTest, {}),
|
|
99
|
+
new ChoiceMenuOption("Canvas Events Test", canvasEventsTestLabel, {}),
|
|
100
|
+
new ChoiceMenuOption("Sound Test", soundTestLabel, {}),
|
|
101
|
+
new ChoiceMenuOption("Base Canvas Element Test", baseCanvasElementTestLabel, {}),
|
|
102
|
+
new ChoiceMenuOption("Custom Ticker Canvas Element Test", customTickerCanvasElementTestLabel, {}),
|
|
103
|
+
new ChoiceMenuOption("Steps and Labels Test", stepLabelTestLAbel, {}),
|
|
104
|
+
new ChoiceMenuOption("Markdown Test", markdownTest, {}),
|
|
105
|
+
new ChoiceMenuOption("Input Test", inputTestLabel, {})
|
|
106
|
+
];
|
|
107
|
+
},
|
|
108
|
+
(props) => narration.jumpLabel(RESTART_TEST_LABEL, props)
|
|
109
|
+
]
|
|
110
|
+
);
|
|
111
|
+
|
|
28
112
|
// src/labels/CustomTickerCanvasElementTestLabel.ts
|
|
29
113
|
var AlienTintingTest = class extends CanvasSprite {
|
|
30
114
|
get memory() {
|
|
@@ -45,7 +129,7 @@ var AlienTintingTest = class extends CanvasSprite {
|
|
|
45
129
|
turningSpeed = 0;
|
|
46
130
|
speed = 0;
|
|
47
131
|
static from(source, skipCache) {
|
|
48
|
-
let sprite =
|
|
132
|
+
let sprite = CanvasSprite.from(source, skipCache);
|
|
49
133
|
let mySprite = new AlienTintingTest();
|
|
50
134
|
mySprite.texture = sprite.texture;
|
|
51
135
|
return mySprite;
|
|
@@ -120,5 +204,7 @@ var customTickerCanvasElementTestLabel = newLabel(
|
|
|
120
204
|
|
|
121
205
|
export {
|
|
122
206
|
TintingTestTicker,
|
|
123
|
-
customTickerCanvasElementTestLabel
|
|
207
|
+
customTickerCanvasElementTestLabel,
|
|
208
|
+
pixivnTestStartLabel,
|
|
209
|
+
pixivnTestStartLabel2
|
|
124
210
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
juliette
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FM5SFYXO.js";
|
|
4
4
|
import {
|
|
5
5
|
narration,
|
|
6
6
|
newLabel
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-D3ZQSJKZ.js";
|
|
8
8
|
|
|
9
9
|
// src/labels/StepLabelTest.ts
|
|
10
10
|
var STEP_LABEL_TEST_LABEL = "___pixi_vn_step_label_test___";
|
|
@@ -2,8 +2,10 @@ import {
|
|
|
2
2
|
filters_exports
|
|
3
3
|
} from "./chunk-RATGPKD3.js";
|
|
4
4
|
|
|
5
|
+
// package.json
|
|
6
|
+
var version = "0.8.9";
|
|
7
|
+
|
|
5
8
|
// src/constants.ts
|
|
6
|
-
var PIXIVN_VERSION = "0.8.3";
|
|
7
9
|
var Repeat = "repeat";
|
|
8
10
|
function Pause(duration) {
|
|
9
11
|
return {
|
|
@@ -125,7 +127,7 @@ var videoFormats = [
|
|
|
125
127
|
var CANVAS_APP_STAGE_ALIAS = "_stage_";
|
|
126
128
|
|
|
127
129
|
export {
|
|
128
|
-
|
|
130
|
+
version,
|
|
129
131
|
Repeat,
|
|
130
132
|
Pause,
|
|
131
133
|
filters,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
bunnyImage,
|
|
3
3
|
juliette
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FM5SFYXO.js";
|
|
5
5
|
import {
|
|
6
6
|
CanvasContainer,
|
|
7
7
|
CanvasSprite,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
canvas,
|
|
11
11
|
narration,
|
|
12
12
|
newLabel
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-D3ZQSJKZ.js";
|
|
14
14
|
import {
|
|
15
15
|
Assets
|
|
16
16
|
} from "./chunk-2PXN34ON.js";
|
|
@@ -43,11 +43,11 @@ import {
|
|
|
43
43
|
} from "./chunk-LEMOIFSV.js";
|
|
44
44
|
import {
|
|
45
45
|
CANVAS_APP_STAGE_ALIAS,
|
|
46
|
-
PIXIVN_VERSION,
|
|
47
46
|
Pause,
|
|
48
47
|
Repeat,
|
|
48
|
+
version,
|
|
49
49
|
videoFormats
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-A4NKPUL5.js";
|
|
51
51
|
import {
|
|
52
52
|
Sound,
|
|
53
53
|
SoundLibrary,
|
|
@@ -901,16 +901,17 @@ var CanvasManager = class {
|
|
|
901
901
|
this.removeAllTickers();
|
|
902
902
|
}
|
|
903
903
|
/**
|
|
904
|
-
* Edit the alias of a canvas element.
|
|
904
|
+
* Edit the alias of a canvas element. The tickers that are connected to the canvas element will be transferred.
|
|
905
905
|
* @param oldAlias The old alias of the canvas element.
|
|
906
906
|
* @param newAlias The new alias of the canvas element.
|
|
907
|
+
* @param options The options of the canvas element.
|
|
907
908
|
*/
|
|
908
|
-
editAlias(oldAlias, newAlias) {
|
|
909
|
+
editAlias(oldAlias, newAlias, options = {}) {
|
|
909
910
|
if (CanvasManagerStatic._children[oldAlias]) {
|
|
910
911
|
CanvasManagerStatic._children[newAlias] = CanvasManagerStatic._children[oldAlias];
|
|
911
912
|
delete CanvasManagerStatic._children[oldAlias];
|
|
912
913
|
}
|
|
913
|
-
this.transferTickers(oldAlias, newAlias, "move");
|
|
914
|
+
!options.ignoreTickers && this.transferTickers(oldAlias, newAlias, "move");
|
|
914
915
|
}
|
|
915
916
|
/** Edit Tickers Methods */
|
|
916
917
|
/**
|
|
@@ -1413,11 +1414,6 @@ var CanvasManager = class {
|
|
|
1413
1414
|
import(data) {
|
|
1414
1415
|
this.clear();
|
|
1415
1416
|
try {
|
|
1416
|
-
if (data.hasOwnProperty("stage") && data.hasOwnProperty("stage")) {
|
|
1417
|
-
setMemoryContainer(this.app.stage, data["stage"]);
|
|
1418
|
-
} else {
|
|
1419
|
-
console.error("[Pixi\u2019VN] The data does not have the properties stage");
|
|
1420
|
-
}
|
|
1421
1417
|
let tickersOnPause = data["tickersOnPause"] || {};
|
|
1422
1418
|
if (data.hasOwnProperty("elementAliasesOrder") && data.hasOwnProperty("elements")) {
|
|
1423
1419
|
let currentElements = data["elements"];
|
|
@@ -1433,6 +1429,11 @@ var CanvasManager = class {
|
|
|
1433
1429
|
console.error("[Pixi\u2019VN] The data does not have the properties elementAliasesOrder and elements");
|
|
1434
1430
|
return;
|
|
1435
1431
|
}
|
|
1432
|
+
if (data.hasOwnProperty("stage") && data.hasOwnProperty("stage")) {
|
|
1433
|
+
setMemoryContainer(this.app.stage, data["stage"]);
|
|
1434
|
+
} else {
|
|
1435
|
+
console.error("[Pixi\u2019VN] The data does not have the properties stage");
|
|
1436
|
+
}
|
|
1436
1437
|
if (data.hasOwnProperty("tickers")) {
|
|
1437
1438
|
let tickers = data["tickers"];
|
|
1438
1439
|
Object.entries(tickers).forEach(([oldId, t]) => {
|
|
@@ -1713,8 +1714,8 @@ FadeAlphaTicker = __decorateClass([
|
|
|
1713
1714
|
// src/classes/ticker/MoveTicker.ts
|
|
1714
1715
|
var MoveTicker = class extends TickerBase {
|
|
1715
1716
|
fn(ticker, args, aliases, tickerId) {
|
|
1716
|
-
let xSpeed =
|
|
1717
|
-
let ySpeed =
|
|
1717
|
+
let xSpeed = 10;
|
|
1718
|
+
let ySpeed = 10;
|
|
1718
1719
|
if (args.speed) {
|
|
1719
1720
|
if (typeof args.speed === "number") {
|
|
1720
1721
|
xSpeed = this.speedConvert(args.speed);
|
|
@@ -1778,6 +1779,10 @@ var MoveTicker = class extends TickerBase {
|
|
|
1778
1779
|
let destination = args.destination;
|
|
1779
1780
|
element.x = destination.x;
|
|
1780
1781
|
element.y = destination.y;
|
|
1782
|
+
if (args.isPushInOut && element.children.length > 0) {
|
|
1783
|
+
let elementChild = element.children[0];
|
|
1784
|
+
canvas.add(alias2, elementChild, { ignoreOldStyle: true });
|
|
1785
|
+
}
|
|
1781
1786
|
}
|
|
1782
1787
|
});
|
|
1783
1788
|
super.onEndOfTicker(alias, tickerId, args);
|
|
@@ -2114,6 +2119,7 @@ async function showVideo(alias, videoUrl) {
|
|
|
2114
2119
|
|
|
2115
2120
|
// src/functions/canvas/canvas-transition.ts
|
|
2116
2121
|
async function showWithDissolveTransition(alias, image, props = {}, priority) {
|
|
2122
|
+
let mustBeCompletedBeforeNextStep = props.mustBeCompletedBeforeNextStep ?? true;
|
|
2117
2123
|
let oldCanvasAlias = void 0;
|
|
2118
2124
|
if (canvas.find(alias)) {
|
|
2119
2125
|
oldCanvasAlias = alias + "_temp_disolve";
|
|
@@ -2143,10 +2149,13 @@ async function showWithDissolveTransition(alias, image, props = {}, priority) {
|
|
|
2143
2149
|
startOnlyIfHaveTexture: true
|
|
2144
2150
|
}, 10, priority);
|
|
2145
2151
|
let id = canvas.addTicker(alias, effect);
|
|
2146
|
-
|
|
2147
|
-
|
|
2152
|
+
if (id) {
|
|
2153
|
+
mustBeCompletedBeforeNextStep && canvas.addTickerMustBeCompletedBeforeNextStep({ id });
|
|
2154
|
+
return [id];
|
|
2155
|
+
}
|
|
2148
2156
|
}
|
|
2149
2157
|
function removeWithDissolveTransition(alias, props = {}, priority) {
|
|
2158
|
+
let mustBeCompletedBeforeNextStep = props.mustBeCompletedBeforeNextStep ?? true;
|
|
2150
2159
|
if (typeof alias === "string") {
|
|
2151
2160
|
alias = [alias];
|
|
2152
2161
|
}
|
|
@@ -2156,12 +2165,17 @@ function removeWithDissolveTransition(alias, props = {}, priority) {
|
|
|
2156
2165
|
aliasToRemoveAfter: alias,
|
|
2157
2166
|
startOnlyIfHaveTexture: true
|
|
2158
2167
|
}, 10, priority);
|
|
2159
|
-
canvas.addTicker(alias, effect);
|
|
2168
|
+
let id = canvas.addTicker(alias, effect);
|
|
2169
|
+
if (id) {
|
|
2170
|
+
mustBeCompletedBeforeNextStep && canvas.addTickerMustBeCompletedBeforeNextStep({ id });
|
|
2171
|
+
return [id];
|
|
2172
|
+
}
|
|
2160
2173
|
}
|
|
2161
2174
|
async function showWithFadeTransition(alias, image, props = {}, priority) {
|
|
2162
2175
|
if (!canvas.find(alias)) {
|
|
2163
2176
|
return showWithDissolveTransition(alias, image, props, priority);
|
|
2164
2177
|
}
|
|
2178
|
+
let mustBeCompletedBeforeNextStep = props.mustBeCompletedBeforeNextStep ?? true;
|
|
2165
2179
|
let oldCanvasAlias = alias + "_temp_fade";
|
|
2166
2180
|
canvas.editAlias(alias, oldCanvasAlias);
|
|
2167
2181
|
let canvasElement;
|
|
@@ -2197,14 +2211,23 @@ async function showWithFadeTransition(alias, image, props = {}, priority) {
|
|
|
2197
2211
|
aliasToRemoveAfter: oldCanvasAlias
|
|
2198
2212
|
}, void 0, priority)
|
|
2199
2213
|
]);
|
|
2200
|
-
|
|
2201
|
-
|
|
2214
|
+
let res = void 0;
|
|
2215
|
+
if (id1) {
|
|
2216
|
+
res = [id1];
|
|
2217
|
+
mustBeCompletedBeforeNextStep && canvas.addTickerMustBeCompletedBeforeNextStep({ id: id1, alias });
|
|
2218
|
+
}
|
|
2219
|
+
if (id2) {
|
|
2220
|
+
res ? res.push(id2) : res = [id2];
|
|
2221
|
+
mustBeCompletedBeforeNextStep && canvas.addTickerMustBeCompletedBeforeNextStep({ id: id2, alias });
|
|
2222
|
+
}
|
|
2223
|
+
return res;
|
|
2202
2224
|
}
|
|
2203
2225
|
function removeWithFadeTransition(alias, props = {}, priority) {
|
|
2204
2226
|
return removeWithDissolveTransition(alias, props, priority);
|
|
2205
2227
|
}
|
|
2206
2228
|
async function moveIn(alias, image, props = {}, priority) {
|
|
2207
2229
|
let direction = props.direction || "right";
|
|
2230
|
+
let mustBeCompletedBeforeNextStep = props.mustBeCompletedBeforeNextStep ?? true;
|
|
2208
2231
|
let tickerAliasToResume = typeof props.tickerAliasToResume === "string" ? [props.tickerAliasToResume] : props.tickerAliasToResume || [];
|
|
2209
2232
|
tickerAliasToResume.push(alias);
|
|
2210
2233
|
let canvasElement;
|
|
@@ -2245,10 +2268,15 @@ async function moveIn(alias, image, props = {}, priority) {
|
|
|
2245
2268
|
let id = canvas.addTicker(alias, effect);
|
|
2246
2269
|
if (id) {
|
|
2247
2270
|
canvas.putOnPauseTicker(alias, id);
|
|
2271
|
+
mustBeCompletedBeforeNextStep && canvas.addTickerMustBeCompletedBeforeNextStep({ id });
|
|
2272
|
+
return [id];
|
|
2248
2273
|
}
|
|
2249
2274
|
}
|
|
2250
2275
|
function moveOut(alias, props = {}, priority) {
|
|
2251
2276
|
let direction = props.direction || "right";
|
|
2277
|
+
let mustBeCompletedBeforeNextStep = props.mustBeCompletedBeforeNextStep ?? true;
|
|
2278
|
+
let tickerAliasToResume = typeof props.tickerAliasToResume === "string" ? [props.tickerAliasToResume] : props.tickerAliasToResume || [];
|
|
2279
|
+
tickerAliasToResume.push(alias);
|
|
2252
2280
|
let canvasElement = canvas.find(alias);
|
|
2253
2281
|
if (!canvasElement) {
|
|
2254
2282
|
console.warn("[Pixi\u2019VN] The canvas element is not found.");
|
|
@@ -2271,13 +2299,20 @@ function moveOut(alias, props = {}, priority) {
|
|
|
2271
2299
|
}
|
|
2272
2300
|
let effect = new MoveTicker({
|
|
2273
2301
|
...props,
|
|
2302
|
+
tickerAliasToResume,
|
|
2274
2303
|
destination,
|
|
2275
2304
|
startOnlyIfHaveTexture: true,
|
|
2276
2305
|
aliasToRemoveAfter: alias
|
|
2277
2306
|
}, void 0, priority);
|
|
2278
|
-
canvas.addTicker(alias, effect);
|
|
2307
|
+
let id = canvas.addTicker(alias, effect);
|
|
2308
|
+
if (id) {
|
|
2309
|
+
canvas.putOnPauseTicker(alias, id);
|
|
2310
|
+
mustBeCompletedBeforeNextStep && canvas.addTickerMustBeCompletedBeforeNextStep({ id });
|
|
2311
|
+
return [id];
|
|
2312
|
+
}
|
|
2279
2313
|
}
|
|
2280
2314
|
async function zoomIn(alias, image, props = { direction: "right" }, priority) {
|
|
2315
|
+
let mustBeCompletedBeforeNextStep = props.mustBeCompletedBeforeNextStep ?? true;
|
|
2281
2316
|
let tickerAliasToResume = typeof props.tickerAliasToResume === "string" ? [props.tickerAliasToResume] : props.tickerAliasToResume || [];
|
|
2282
2317
|
tickerAliasToResume.push(alias);
|
|
2283
2318
|
let canvasElement;
|
|
@@ -2290,7 +2325,9 @@ async function zoomIn(alias, image, props = { direction: "right" }, priority) {
|
|
|
2290
2325
|
} else {
|
|
2291
2326
|
canvasElement = image;
|
|
2292
2327
|
}
|
|
2293
|
-
canvas.
|
|
2328
|
+
if (canvas.find(alias)) {
|
|
2329
|
+
canvas.copyCanvasElementProperty(alias, canvasElement);
|
|
2330
|
+
}
|
|
2294
2331
|
let container = new CanvasContainer();
|
|
2295
2332
|
container.addChild(canvasElement);
|
|
2296
2333
|
container.height = canvas.canvasHeight;
|
|
@@ -2332,9 +2369,14 @@ async function zoomIn(alias, image, props = { direction: "right" }, priority) {
|
|
|
2332
2369
|
let id = canvas.addTicker(alias, effect);
|
|
2333
2370
|
if (id) {
|
|
2334
2371
|
canvas.putOnPauseTicker(alias, id);
|
|
2372
|
+
mustBeCompletedBeforeNextStep && canvas.addTickerMustBeCompletedBeforeNextStep({ id });
|
|
2373
|
+
return [id];
|
|
2335
2374
|
}
|
|
2336
2375
|
}
|
|
2337
2376
|
function zoomOut(alias, props = { direction: "right" }, priority) {
|
|
2377
|
+
let mustBeCompletedBeforeNextStep = props.mustBeCompletedBeforeNextStep ?? true;
|
|
2378
|
+
let tickerAliasToResume = typeof props.tickerAliasToResume === "string" ? [props.tickerAliasToResume] : props.tickerAliasToResume || [];
|
|
2379
|
+
tickerAliasToResume.push(alias);
|
|
2338
2380
|
let canvasElement = canvas.find(alias);
|
|
2339
2381
|
if (!canvasElement) {
|
|
2340
2382
|
console.warn("[Pixi\u2019VN] The canvas element is not found.");
|
|
@@ -2369,13 +2411,116 @@ function zoomOut(alias, props = { direction: "right" }, priority) {
|
|
|
2369
2411
|
container.scale.set(1);
|
|
2370
2412
|
let effect = new ZoomTicker({
|
|
2371
2413
|
...props,
|
|
2414
|
+
tickerAliasToResume,
|
|
2372
2415
|
startOnlyIfHaveTexture: true,
|
|
2373
2416
|
type: "unzoom",
|
|
2374
2417
|
limit: 0,
|
|
2375
2418
|
aliasToRemoveAfter: alias,
|
|
2376
2419
|
isZoomInOut: true
|
|
2377
2420
|
}, void 0, priority);
|
|
2378
|
-
canvas.addTicker(alias, effect);
|
|
2421
|
+
let id = canvas.addTicker(alias, effect);
|
|
2422
|
+
if (id) {
|
|
2423
|
+
canvas.putOnPauseTicker(alias, id);
|
|
2424
|
+
mustBeCompletedBeforeNextStep && canvas.addTickerMustBeCompletedBeforeNextStep({ id });
|
|
2425
|
+
return [id];
|
|
2426
|
+
}
|
|
2427
|
+
}
|
|
2428
|
+
async function pushIn(alias, image, props = { direction: "right" }, priority) {
|
|
2429
|
+
let oldCanvasAlias = alias + "_temp_push";
|
|
2430
|
+
let mustBeCompletedBeforeNextStep = props.mustBeCompletedBeforeNextStep ?? true;
|
|
2431
|
+
let tickerAliasToResume = typeof props.tickerAliasToResume === "string" ? [props.tickerAliasToResume] : props.tickerAliasToResume || [];
|
|
2432
|
+
tickerAliasToResume.push(alias);
|
|
2433
|
+
let canvasElement;
|
|
2434
|
+
if (typeof image === "string") {
|
|
2435
|
+
if (checkIfVideo(image)) {
|
|
2436
|
+
canvasElement = new CanvasVideo({}, image);
|
|
2437
|
+
} else {
|
|
2438
|
+
canvasElement = new CanvasImage({}, image);
|
|
2439
|
+
}
|
|
2440
|
+
} else {
|
|
2441
|
+
canvasElement = image;
|
|
2442
|
+
}
|
|
2443
|
+
let oldCanvas = canvas.find(alias);
|
|
2444
|
+
if (oldCanvas) {
|
|
2445
|
+
canvas.copyCanvasElementProperty(oldCanvas, canvasElement);
|
|
2446
|
+
canvas.editAlias(alias, oldCanvasAlias, { ignoreTickers: true });
|
|
2447
|
+
pushOut(oldCanvasAlias, props, priority);
|
|
2448
|
+
}
|
|
2449
|
+
let container = new CanvasContainer();
|
|
2450
|
+
container.height = canvas.canvasHeight;
|
|
2451
|
+
container.width = canvas.canvasWidth;
|
|
2452
|
+
container.addChild(canvasElement);
|
|
2453
|
+
canvas.add(alias, container, { ignoreOldStyle: true });
|
|
2454
|
+
if (canvasElement instanceof CanvasImage && canvasElement.texture?.label == "EMPTY") {
|
|
2455
|
+
await canvasElement.load();
|
|
2456
|
+
}
|
|
2457
|
+
if (props.direction == "up") {
|
|
2458
|
+
container.x = 0;
|
|
2459
|
+
container.y = -canvas.canvasHeight;
|
|
2460
|
+
} else if (props.direction == "down") {
|
|
2461
|
+
container.x = 0;
|
|
2462
|
+
container.y = canvas.canvasHeight;
|
|
2463
|
+
} else if (props.direction == "left") {
|
|
2464
|
+
container.x = canvas.canvasWidth;
|
|
2465
|
+
container.y = 0;
|
|
2466
|
+
} else if (props.direction == "right") {
|
|
2467
|
+
container.x = -canvas.canvasWidth;
|
|
2468
|
+
container.y = 0;
|
|
2469
|
+
}
|
|
2470
|
+
let effect = new MoveTicker({
|
|
2471
|
+
...props,
|
|
2472
|
+
tickerAliasToResume,
|
|
2473
|
+
startOnlyIfHaveTexture: true,
|
|
2474
|
+
isPushInOut: true,
|
|
2475
|
+
destination: { x: 0, y: 0 }
|
|
2476
|
+
}, void 0, priority);
|
|
2477
|
+
let id = canvas.addTicker(alias, effect);
|
|
2478
|
+
if (id) {
|
|
2479
|
+
canvas.putOnPauseTicker(alias, id);
|
|
2480
|
+
mustBeCompletedBeforeNextStep && canvas.addTickerMustBeCompletedBeforeNextStep({ id });
|
|
2481
|
+
return [id];
|
|
2482
|
+
}
|
|
2483
|
+
}
|
|
2484
|
+
function pushOut(alias, props = { direction: "right" }, priority) {
|
|
2485
|
+
let mustBeCompletedBeforeNextStep = props.mustBeCompletedBeforeNextStep ?? true;
|
|
2486
|
+
let tickerAliasToResume = typeof props.tickerAliasToResume === "string" ? [props.tickerAliasToResume] : props.tickerAliasToResume || [];
|
|
2487
|
+
tickerAliasToResume.push(alias);
|
|
2488
|
+
let canvasElement = canvas.find(alias);
|
|
2489
|
+
if (!canvasElement) {
|
|
2490
|
+
console.warn("[Pixi\u2019VN] The canvas element is not found.");
|
|
2491
|
+
return;
|
|
2492
|
+
}
|
|
2493
|
+
let container = new CanvasContainer();
|
|
2494
|
+
container.pivot.x = 0;
|
|
2495
|
+
container.pivot.y = 0;
|
|
2496
|
+
container.x = 0;
|
|
2497
|
+
container.y = 0;
|
|
2498
|
+
container.addChild(canvasElement);
|
|
2499
|
+
canvas.add(alias, container, { ignoreOldStyle: true });
|
|
2500
|
+
let destination = { x: 0, y: 0 };
|
|
2501
|
+
if (props.direction == "up") {
|
|
2502
|
+
destination.y = canvas.canvasHeight;
|
|
2503
|
+
} else if (props.direction == "down") {
|
|
2504
|
+
destination.y = -canvas.canvasHeight;
|
|
2505
|
+
} else if (props.direction == "left") {
|
|
2506
|
+
destination.x = -canvas.canvasWidth;
|
|
2507
|
+
} else if (props.direction == "right") {
|
|
2508
|
+
destination.x = canvas.canvasWidth;
|
|
2509
|
+
}
|
|
2510
|
+
let effect = new MoveTicker({
|
|
2511
|
+
...props,
|
|
2512
|
+
tickerAliasToResume,
|
|
2513
|
+
startOnlyIfHaveTexture: true,
|
|
2514
|
+
destination,
|
|
2515
|
+
aliasToRemoveAfter: alias,
|
|
2516
|
+
isPushInOut: true
|
|
2517
|
+
}, void 0, priority);
|
|
2518
|
+
let id = canvas.addTicker(alias, effect);
|
|
2519
|
+
if (id) {
|
|
2520
|
+
canvas.putOnPauseTicker(alias, id);
|
|
2521
|
+
mustBeCompletedBeforeNextStep && canvas.addTickerMustBeCompletedBeforeNextStep({ id });
|
|
2522
|
+
return [id];
|
|
2523
|
+
}
|
|
2379
2524
|
}
|
|
2380
2525
|
|
|
2381
2526
|
// src/functions/dialogue-utility.ts
|
|
@@ -2429,7 +2574,7 @@ function clearAllGameDatas() {
|
|
|
2429
2574
|
// src/functions/saves-utility.ts
|
|
2430
2575
|
function getSaveData() {
|
|
2431
2576
|
return {
|
|
2432
|
-
pixivn_version:
|
|
2577
|
+
pixivn_version: version,
|
|
2433
2578
|
stepData: narration.export(),
|
|
2434
2579
|
storageData: storage.export(),
|
|
2435
2580
|
canvasData: canvas.export(),
|
|
@@ -3094,8 +3239,10 @@ var NarrationManager = class {
|
|
|
3094
3239
|
console.warn("[Pixi\u2019VN] stepSha not found");
|
|
3095
3240
|
}
|
|
3096
3241
|
try {
|
|
3242
|
+
if (NarrationManagerStatic.stepsRunning === 0) {
|
|
3243
|
+
canvas.forceCompletionOfReportedTickers();
|
|
3244
|
+
}
|
|
3097
3245
|
NarrationManagerStatic.stepsRunning++;
|
|
3098
|
-
canvas.forceCompletionOfReportedTickers();
|
|
3099
3246
|
let result = await step(props);
|
|
3100
3247
|
if (this.choiceMenuOptions?.length === 1 && this.choiceMenuOptions[0].autoSelect) {
|
|
3101
3248
|
let choice = this.choiceMenuOptions[0];
|
|
@@ -4829,6 +4976,8 @@ export {
|
|
|
4829
4976
|
moveOut,
|
|
4830
4977
|
zoomIn,
|
|
4831
4978
|
zoomOut,
|
|
4979
|
+
pushIn,
|
|
4980
|
+
pushOut,
|
|
4832
4981
|
setDialogue,
|
|
4833
4982
|
getDialogue,
|
|
4834
4983
|
clearDialogue,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
juliette
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FM5SFYXO.js";
|
|
4
4
|
import {
|
|
5
5
|
narration,
|
|
6
6
|
newLabel
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-D3ZQSJKZ.js";
|
|
8
8
|
|
|
9
9
|
// src/labels/InputTestLabel.ts
|
|
10
10
|
var INPUT_TEST_LABEL = "___pixi_vn_input_test___";
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
juliette,
|
|
9
9
|
skullyImage,
|
|
10
10
|
skullyName
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-FM5SFYXO.js";
|
|
12
12
|
import {
|
|
13
13
|
CanvasImage,
|
|
14
14
|
ChoiceMenuOption,
|
|
@@ -24,6 +24,8 @@ import {
|
|
|
24
24
|
moveOut,
|
|
25
25
|
narration,
|
|
26
26
|
newLabel,
|
|
27
|
+
pushIn,
|
|
28
|
+
pushOut,
|
|
27
29
|
removeWithDissolveTransition,
|
|
28
30
|
removeWithFadeTransition,
|
|
29
31
|
shakeEffect,
|
|
@@ -32,12 +34,12 @@ import {
|
|
|
32
34
|
showWithFadeTransition,
|
|
33
35
|
zoomIn,
|
|
34
36
|
zoomOut
|
|
35
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-D3ZQSJKZ.js";
|
|
36
38
|
import {
|
|
37
39
|
CANVAS_APP_STAGE_ALIAS,
|
|
38
40
|
Pause,
|
|
39
41
|
Repeat
|
|
40
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-A4NKPUL5.js";
|
|
41
43
|
|
|
42
44
|
// src/labels/ImagesAnimationsTestLabel.ts
|
|
43
45
|
var IMAGE_ANIMAIONS_TEST_LABEL = "___pixi_vn_images_animations_test___";
|
|
@@ -71,6 +73,7 @@ var imagesAnimationsTest = newLabel(IMAGE_ANIMAIONS_TEST_LABEL, [
|
|
|
71
73
|
new ChoiceMenuOption("Zoom", imagesZoomTest, {}),
|
|
72
74
|
new ChoiceMenuOption("Move in/out", imagesMoveInOutTest, {}),
|
|
73
75
|
new ChoiceMenuOption("Zoom in/out", imagesZoomInOutTest, {}),
|
|
76
|
+
new ChoiceMenuOption("Push in/out", imagesPushInOutTest, {}),
|
|
74
77
|
new ChoiceMenuOption("Shake", shakeStageTest, {}),
|
|
75
78
|
new ChoiceMenuOption("Add same alias", imagesAddSameAliasTestLabel, {}),
|
|
76
79
|
new ChoiceMenuOptionClose("Cancel", { closeCurrentLabel: true })
|
|
@@ -404,6 +407,44 @@ var imagesZoomInOutTest = newLabel("___pixi_vn_images_zoom_in_out_test___", [
|
|
|
404
407
|
});
|
|
405
408
|
}
|
|
406
409
|
]);
|
|
410
|
+
var imagesPushInOutTest = newLabel("___pixi_vn_images_push_in_out_test___", [
|
|
411
|
+
async () => {
|
|
412
|
+
narration.dialogue = {
|
|
413
|
+
character: juliette,
|
|
414
|
+
text: `Here's what's going to happen:`
|
|
415
|
+
};
|
|
416
|
+
let eggHead = new CanvasImage({ x: 100, y: 100 }, eggHeadImage);
|
|
417
|
+
let flowerTop = new CanvasImage({ x: 300, y: 100 }, flowerTopImage);
|
|
418
|
+
let helmlok = new CanvasImage({ x: 100, y: 300 }, helmlokImage);
|
|
419
|
+
let skully = new CanvasImage({ x: 300, y: 300 }, skullyImage);
|
|
420
|
+
pushIn("eggHead", eggHead, { speed: 20, direction: "down" });
|
|
421
|
+
pushIn("flowerTop", flowerTop, {
|
|
422
|
+
speed: 3,
|
|
423
|
+
direction: "left",
|
|
424
|
+
speedProgression: { type: "exponential", percentage: 0.02 }
|
|
425
|
+
});
|
|
426
|
+
pushIn("helmlok", helmlok, { speed: 30, direction: "right" });
|
|
427
|
+
pushIn("skully", skully, {
|
|
428
|
+
speed: 3,
|
|
429
|
+
direction: "up",
|
|
430
|
+
speedProgression: { type: "exponential", percentage: 0.02 }
|
|
431
|
+
});
|
|
432
|
+
},
|
|
433
|
+
async () => {
|
|
434
|
+
pushOut("eggHead", {
|
|
435
|
+
speed: 3,
|
|
436
|
+
direction: "down",
|
|
437
|
+
speedProgression: { type: "exponential", percentage: 0.02 }
|
|
438
|
+
});
|
|
439
|
+
pushOut("flowerTop", { speed: 30, direction: "left" });
|
|
440
|
+
pushOut("helmlok", { speed: 10, direction: "right" });
|
|
441
|
+
pushOut("skully", {
|
|
442
|
+
speed: 3,
|
|
443
|
+
direction: "up",
|
|
444
|
+
speedProgression: { type: "exponential", percentage: 0.02 }
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
]);
|
|
407
448
|
var imagesAddSameAliasTestLabel = newLabel("___pixi_vn_images_add_same_tag_test___", [
|
|
408
449
|
() => {
|
|
409
450
|
narration.dialogue = {
|
|
@@ -445,7 +486,8 @@ var imagesAddSameAliasTestLabel = newLabel("___pixi_vn_images_add_same_tag_test_
|
|
|
445
486
|
async () => await showWithDissolveTransition("eggHead", helmlokImage),
|
|
446
487
|
async () => await showWithFadeTransition("eggHead", skullyImage),
|
|
447
488
|
async () => await moveIn("eggHead", eggHeadImage, { speed: 100 }),
|
|
448
|
-
async () => await zoomIn("eggHead", eggHeadImage)
|
|
489
|
+
async () => await zoomIn("eggHead", eggHeadImage),
|
|
490
|
+
async () => await pushIn("eggHead", eggHeadImage)
|
|
449
491
|
]);
|
|
450
492
|
var shakeStageTest = newLabel("___pixi_vn_images_shake_stage_test___", [
|
|
451
493
|
() => {
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
bunnyImage,
|
|
3
3
|
bunnyName,
|
|
4
4
|
juliette
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FM5SFYXO.js";
|
|
6
6
|
import {
|
|
7
7
|
CanvasSprite,
|
|
8
8
|
canvas,
|
|
9
9
|
narration,
|
|
10
10
|
newLabel
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-D3ZQSJKZ.js";
|
|
12
12
|
import {
|
|
13
13
|
eventDecorator
|
|
14
14
|
} from "./chunk-LEMOIFSV.js";
|