@drincs/pixi-vn 0.2.0 → 0.2.1
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/index.js +16 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1232,10 +1232,10 @@ var import_pixi9 = require("pixi.js");
|
|
|
1232
1232
|
function asciiArtLog() {
|
|
1233
1233
|
console.log(`
|
|
1234
1234
|
____ _ _ ___ ___ _
|
|
1235
|
-
| _ (_)_ _(_| )
|
|
1236
|
-
| |_) |
|
|
1237
|
-
| __/| |> <| |
|
|
1238
|
-
|_| |_/_
|
|
1235
|
+
| _ \\(_)_ _(_| ) \\ / / \\ | |
|
|
1236
|
+
| |_) | \\ \\/ / |/ \\ \\ / /| \\| |
|
|
1237
|
+
| __/| |> <| | \\ V / | |\\ |
|
|
1238
|
+
|_| |_/_/\\_\\_| \\_/ |_| \\_|
|
|
1239
1239
|
`);
|
|
1240
1240
|
}
|
|
1241
1241
|
|
|
@@ -1870,8 +1870,18 @@ var _GameStepManager = class _GameStepManager {
|
|
|
1870
1870
|
static get isLastGameStep() {
|
|
1871
1871
|
var _a;
|
|
1872
1872
|
let stepLabel = (_a = _GameStepManager.currentLabel) == null ? void 0 : _a.steps;
|
|
1873
|
-
if (stepLabel) {
|
|
1874
|
-
|
|
1873
|
+
if (stepLabel && _GameStepManager.currentLabelStepIndex === stepLabel.length) {
|
|
1874
|
+
if (this.openedLabels.length <= 1) {
|
|
1875
|
+
return true;
|
|
1876
|
+
} else {
|
|
1877
|
+
this.openedLabels.forEach((item) => {
|
|
1878
|
+
let label = getLabelInstanceByClassName(item.label);
|
|
1879
|
+
if (label && label.steps.length > item.currentStepIndex) {
|
|
1880
|
+
return false;
|
|
1881
|
+
}
|
|
1882
|
+
});
|
|
1883
|
+
return true;
|
|
1884
|
+
}
|
|
1875
1885
|
}
|
|
1876
1886
|
return false;
|
|
1877
1887
|
}
|