@drincs/pixi-vn 0.2.0 → 0.2.2

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.mjs CHANGED
@@ -972,7 +972,7 @@ function showImageWithDissolveTransition(tag, imageUrl, speed, priority) {
972
972
  }
973
973
 
974
974
  // src/constants.ts
975
- var PIXIVN_VERSION = "0.1.5";
975
+ var PIXIVN_VERSION = "0.2.2";
976
976
 
977
977
  // src/functions/SavesUtility.ts
978
978
  function getSaveData() {
@@ -1155,10 +1155,10 @@ import { Application } from "pixi.js";
1155
1155
  function asciiArtLog() {
1156
1156
  console.log(`
1157
1157
  ____ _ _ ___ ___ _
1158
- | _ (_)_ _(_| ) / / | |
1159
- | |_) | / / |/ / /| | |
1160
- | __/| |> <| | V / | | |
1161
- |_| |_/_/__| _/ |_| _|
1158
+ | _ \\(_)_ _(_| ) \\ / / \\ | |
1159
+ | |_) | \\ \\/ / |/ \\ \\ / /| \\| |
1160
+ | __/| |> <| | \\ V / | |\\ |
1161
+ |_| |_/_/\\_\\_| \\_/ |_| \\_|
1162
1162
  `);
1163
1163
  }
1164
1164
 
@@ -1793,8 +1793,18 @@ var _GameStepManager = class _GameStepManager {
1793
1793
  static get isLastGameStep() {
1794
1794
  var _a;
1795
1795
  let stepLabel = (_a = _GameStepManager.currentLabel) == null ? void 0 : _a.steps;
1796
- if (stepLabel) {
1797
- return _GameStepManager.currentLabelStepIndex === stepLabel.length;
1796
+ if (stepLabel && _GameStepManager.currentLabelStepIndex === stepLabel.length) {
1797
+ if (this.openedLabels.length <= 1) {
1798
+ return true;
1799
+ } else {
1800
+ this.openedLabels.forEach((item) => {
1801
+ let label = getLabelInstanceByClassName(item.label);
1802
+ if (label && label.steps.length > item.currentStepIndex) {
1803
+ return false;
1804
+ }
1805
+ });
1806
+ return true;
1807
+ }
1798
1808
  }
1799
1809
  return false;
1800
1810
  }