@drincs/pixi-vn 0.6.5 → 0.6.7
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 +49 -3
- package/dist/classes/CharacterBaseModel.js +57 -57
- package/dist/classes/CharacterBaseModel.js.map +1 -1
- package/dist/classes/CharacterBaseModel.mjs +57 -57
- package/dist/classes/CharacterBaseModel.mjs.map +1 -1
- package/dist/classes/ChoiceMenuOption.d.mts +5 -2
- package/dist/classes/ChoiceMenuOption.d.ts +5 -2
- package/dist/classes/ChoiceMenuOption.js +42 -25
- package/dist/classes/ChoiceMenuOption.js.map +1 -1
- package/dist/classes/ChoiceMenuOption.mjs +42 -25
- 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 +25 -16
- package/dist/classes/CloseLabel.js.map +1 -1
- package/dist/classes/CloseLabel.mjs +25 -16
- package/dist/classes/CloseLabel.mjs.map +1 -1
- package/dist/classes/Label.d.mts +45 -4
- package/dist/classes/Label.d.ts +45 -4
- package/dist/classes/Label.js +25 -16
- package/dist/classes/Label.js.map +1 -1
- package/dist/classes/Label.mjs +25 -16
- 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.map +1 -1
- package/dist/classes/StoredClassModel.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 +827 -26
- package/dist/classes/index.js.map +1 -1
- package/dist/classes/index.mjs +827 -27
- package/dist/classes/index.mjs.map +1 -1
- package/dist/classes/ticker/FadeAlphaTicker.js.map +1 -1
- package/dist/classes/ticker/FadeAlphaTicker.mjs.map +1 -1
- package/dist/classes/ticker/MoveTicker.js.map +1 -1
- package/dist/classes/ticker/MoveTicker.mjs.map +1 -1
- package/dist/classes/ticker/RotateTicker.js.map +1 -1
- package/dist/classes/ticker/RotateTicker.mjs.map +1 -1
- package/dist/classes/ticker/ZoomTicker.js.map +1 -1
- package/dist/classes/ticker/ZoomTicker.mjs.map +1 -1
- package/dist/classes/ticker/index.js.map +1 -1
- 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/LabelDecorator.d.mts +19 -5
- package/dist/decorators/LabelDecorator.d.ts +19 -5
- package/dist/decorators/LabelDecorator.js +29 -16
- package/dist/decorators/LabelDecorator.js.map +1 -1
- package/dist/decorators/LabelDecorator.mjs +29 -17
- 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 +25 -16
- package/dist/decorators/index.js.map +1 -1
- package/dist/decorators/index.mjs +25 -16
- package/dist/decorators/index.mjs.map +1 -1
- package/dist/functions/DialogueUtility.d.mts +3 -1
- package/dist/functions/DialogueUtility.d.ts +3 -1
- package/dist/functions/DialogueUtility.js +85 -26
- package/dist/functions/DialogueUtility.js.map +1 -1
- package/dist/functions/DialogueUtility.mjs +85 -26
- package/dist/functions/DialogueUtility.mjs.map +1 -1
- package/dist/functions/FlagsUtility.js.map +1 -1
- package/dist/functions/FlagsUtility.mjs.map +1 -1
- package/dist/functions/GameUtility.js.map +1 -1
- package/dist/functions/GameUtility.mjs.map +1 -1
- package/dist/functions/ImageUtility.js.map +1 -1
- 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 +3 -1
- package/dist/functions/SavesUtility.d.ts +3 -1
- package/dist/functions/SavesUtility.js +139 -36
- package/dist/functions/SavesUtility.js.map +1 -1
- package/dist/functions/SavesUtility.mjs +139 -36
- package/dist/functions/SavesUtility.mjs.map +1 -1
- package/dist/functions/index.d.mts +6 -1
- package/dist/functions/index.d.ts +6 -1
- package/dist/functions/index.js +169 -27
- package/dist/functions/index.js.map +1 -1
- package/dist/functions/index.mjs +169 -28
- package/dist/functions/index.mjs.map +1 -1
- package/dist/index.d.mts +7 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.js +131 -36
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +130 -37
- 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 -5
- package/dist/interface/LabelProps.d.ts +38 -5
- 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 +6 -4
- package/dist/interface/index.d.ts +6 -4
- package/dist/labels/BaseCanvasElementTestLabel.d.mts +3 -1
- package/dist/labels/BaseCanvasElementTestLabel.d.ts +3 -1
- package/dist/labels/BaseCanvasElementTestLabel.js +129 -26
- package/dist/labels/BaseCanvasElementTestLabel.js.map +1 -1
- package/dist/labels/BaseCanvasElementTestLabel.mjs +130 -27
- package/dist/labels/BaseCanvasElementTestLabel.mjs.map +1 -1
- package/dist/labels/CanvasEventsTestLabel.d.mts +3 -1
- package/dist/labels/CanvasEventsTestLabel.d.ts +3 -1
- package/dist/labels/CanvasEventsTestLabel.js +129 -26
- package/dist/labels/CanvasEventsTestLabel.js.map +1 -1
- package/dist/labels/CanvasEventsTestLabel.mjs +129 -26
- 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 +129 -26
- package/dist/labels/CustomTickerCanvasElementTestLabel.js.map +1 -1
- package/dist/labels/CustomTickerCanvasElementTestLabel.mjs +130 -27
- 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 +46 -35
- package/dist/labels/ImagesAnimationsTestLabel.js.map +1 -1
- package/dist/labels/ImagesAnimationsTestLabel.mjs +47 -36
- 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 +129 -26
- package/dist/labels/MarkdownTest.js.map +1 -1
- package/dist/labels/MarkdownTest.mjs +129 -26
- 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 +47 -36
- package/dist/labels/StartLabel.js.map +1 -1
- package/dist/labels/StartLabel.mjs +47 -36
- package/dist/labels/StartLabel.mjs.map +1 -1
- package/dist/labels/StepLabelTest.d.mts +3 -1
- package/dist/labels/StepLabelTest.d.ts +3 -1
- package/dist/labels/StepLabelTest.js +129 -26
- package/dist/labels/StepLabelTest.js.map +1 -1
- package/dist/labels/StepLabelTest.mjs +129 -26
- package/dist/labels/StepLabelTest.mjs.map +1 -1
- package/dist/labels/TestConstant.js.map +1 -1
- 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 +47 -36
- package/dist/labels/index.js.map +1 -1
- package/dist/labels/index.mjs +47 -36
- package/dist/labels/index.mjs.map +1 -1
- package/dist/managers/StepManager.d.mts +5 -3
- package/dist/managers/StepManager.d.ts +5 -3
- package/dist/managers/StepManager.js +138 -35
- package/dist/managers/StepManager.js.map +1 -1
- package/dist/managers/StepManager.mjs +138 -35
- package/dist/managers/StepManager.mjs.map +1 -1
- package/dist/managers/WindowManager.js.map +1 -1
- 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 +138 -35
- package/dist/managers/index.js.map +1 -1
- package/dist/managers/index.mjs +138 -35
- 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 +5 -1
- package/dist/types/index.d.ts +5 -1
- package/package.json +3 -2
- package/dist/LabelProps-CFV-zRjG.d.ts +0 -113
- package/dist/LabelProps-CmRpvUJm.d.mts +0 -113
|
@@ -561,61 +561,6 @@ function geTickerInstanceById(tickerId, args, duration, priority) {
|
|
|
561
561
|
}
|
|
562
562
|
}
|
|
563
563
|
|
|
564
|
-
// src/classes/StoredClassModel.ts
|
|
565
|
-
var StoredClassModel = class {
|
|
566
|
-
/**
|
|
567
|
-
* @param categoryId The id of the category. For example if you are storing a character class, you can use "characters" as categoryId. so all instances of the character class will be stored in the "characters" category.
|
|
568
|
-
* @param id The id of instance of the class. This id must be unique for the category.
|
|
569
|
-
*/
|
|
570
|
-
constructor(categoryId, id) {
|
|
571
|
-
this.categoryId = categoryId;
|
|
572
|
-
this._id = id;
|
|
573
|
-
}
|
|
574
|
-
/**
|
|
575
|
-
* Is id of the stored class. is unique for this class.
|
|
576
|
-
*/
|
|
577
|
-
get id() {
|
|
578
|
-
return this._id;
|
|
579
|
-
}
|
|
580
|
-
/**
|
|
581
|
-
* Update a property in the storage.
|
|
582
|
-
* @param propertyName The name of the property to set.
|
|
583
|
-
* @param value The value to set. If is undefined, the property will be removed from the storage.
|
|
584
|
-
*/
|
|
585
|
-
setStorageProperty(propertyName, value) {
|
|
586
|
-
let storage = GameStorageManager.getVariable(this.categoryId);
|
|
587
|
-
if (!storage) {
|
|
588
|
-
storage = {};
|
|
589
|
-
}
|
|
590
|
-
if (!storage.hasOwnProperty(this.id)) {
|
|
591
|
-
storage[this.id] = {};
|
|
592
|
-
}
|
|
593
|
-
if (value === void 0 || value === null) {
|
|
594
|
-
if (storage[this.id].hasOwnProperty(propertyName)) {
|
|
595
|
-
delete storage[this.id][propertyName];
|
|
596
|
-
}
|
|
597
|
-
} else {
|
|
598
|
-
storage[this.id] = __spreadProps(__spreadValues({}, storage[this.id]), { [propertyName]: value });
|
|
599
|
-
}
|
|
600
|
-
if (Object.keys(storage[this.id]).length === 0) {
|
|
601
|
-
delete storage[this.id];
|
|
602
|
-
}
|
|
603
|
-
GameStorageManager.setVariable(this.categoryId, storage);
|
|
604
|
-
}
|
|
605
|
-
/**
|
|
606
|
-
* Get a property from the storage.
|
|
607
|
-
* @param propertyName The name of the property to get.
|
|
608
|
-
* @returns The value of the property. If the property is not found, returns undefined.
|
|
609
|
-
*/
|
|
610
|
-
getStorageProperty(propertyName) {
|
|
611
|
-
let storage = GameStorageManager.getVariable(this.categoryId);
|
|
612
|
-
if (storage && storage.hasOwnProperty(this.id) && storage[this.id].hasOwnProperty(propertyName)) {
|
|
613
|
-
return storage[this.id][propertyName];
|
|
614
|
-
}
|
|
615
|
-
return void 0;
|
|
616
|
-
}
|
|
617
|
-
};
|
|
618
|
-
|
|
619
564
|
// src/classes/ticker/TickerBase.ts
|
|
620
565
|
var TickerBase = class {
|
|
621
566
|
/**
|
|
@@ -937,6 +882,61 @@ ZoomTicker = __decorateClass([
|
|
|
937
882
|
// src/constants.ts
|
|
938
883
|
var Repeat = "repeat";
|
|
939
884
|
|
|
885
|
+
// src/classes/StoredClassModel.ts
|
|
886
|
+
var StoredClassModel = class {
|
|
887
|
+
/**
|
|
888
|
+
* @param categoryId The id of the category. For example if you are storing a character class, you can use "characters" as categoryId. so all instances of the character class will be stored in the "characters" category.
|
|
889
|
+
* @param id The id of instance of the class. This id must be unique for the category.
|
|
890
|
+
*/
|
|
891
|
+
constructor(categoryId, id) {
|
|
892
|
+
this.categoryId = categoryId;
|
|
893
|
+
this._id = id;
|
|
894
|
+
}
|
|
895
|
+
/**
|
|
896
|
+
* Is id of the stored class. is unique for this class.
|
|
897
|
+
*/
|
|
898
|
+
get id() {
|
|
899
|
+
return this._id;
|
|
900
|
+
}
|
|
901
|
+
/**
|
|
902
|
+
* Update a property in the storage.
|
|
903
|
+
* @param propertyName The name of the property to set.
|
|
904
|
+
* @param value The value to set. If is undefined, the property will be removed from the storage.
|
|
905
|
+
*/
|
|
906
|
+
setStorageProperty(propertyName, value) {
|
|
907
|
+
let storage = GameStorageManager.getVariable(this.categoryId);
|
|
908
|
+
if (!storage) {
|
|
909
|
+
storage = {};
|
|
910
|
+
}
|
|
911
|
+
if (!storage.hasOwnProperty(this.id)) {
|
|
912
|
+
storage[this.id] = {};
|
|
913
|
+
}
|
|
914
|
+
if (value === void 0 || value === null) {
|
|
915
|
+
if (storage[this.id].hasOwnProperty(propertyName)) {
|
|
916
|
+
delete storage[this.id][propertyName];
|
|
917
|
+
}
|
|
918
|
+
} else {
|
|
919
|
+
storage[this.id] = __spreadProps(__spreadValues({}, storage[this.id]), { [propertyName]: value });
|
|
920
|
+
}
|
|
921
|
+
if (Object.keys(storage[this.id]).length === 0) {
|
|
922
|
+
delete storage[this.id];
|
|
923
|
+
}
|
|
924
|
+
GameStorageManager.setVariable(this.categoryId, storage);
|
|
925
|
+
}
|
|
926
|
+
/**
|
|
927
|
+
* Get a property from the storage.
|
|
928
|
+
* @param propertyName The name of the property to get.
|
|
929
|
+
* @returns The value of the property. If the property is not found, returns undefined.
|
|
930
|
+
*/
|
|
931
|
+
getStorageProperty(propertyName) {
|
|
932
|
+
let storage = GameStorageManager.getVariable(this.categoryId);
|
|
933
|
+
if (storage && storage.hasOwnProperty(this.id) && storage[this.id].hasOwnProperty(propertyName)) {
|
|
934
|
+
return storage[this.id][propertyName];
|
|
935
|
+
}
|
|
936
|
+
return void 0;
|
|
937
|
+
}
|
|
938
|
+
};
|
|
939
|
+
|
|
940
940
|
// src/functions/ExportUtility.ts
|
|
941
941
|
function createExportableElement(element) {
|
|
942
942
|
try {
|
|
@@ -1770,7 +1770,7 @@ _GameWindowManager._currentTickersTimeouts = {};
|
|
|
1770
1770
|
var GameWindowManager = _GameWindowManager;
|
|
1771
1771
|
|
|
1772
1772
|
// src/classes/CharacterBaseModel.ts
|
|
1773
|
-
var
|
|
1773
|
+
var CharacterBaseModel2 = class extends StoredClassModel {
|
|
1774
1774
|
/**
|
|
1775
1775
|
* @param id The id of the character.
|
|
1776
1776
|
* @param props The properties of the character.
|
|
@@ -1828,6 +1828,6 @@ var CharacterBaseModel = class extends StoredClassModel {
|
|
|
1828
1828
|
}
|
|
1829
1829
|
};
|
|
1830
1830
|
|
|
1831
|
-
export {
|
|
1831
|
+
export { CharacterBaseModel2 as default };
|
|
1832
1832
|
//# sourceMappingURL=CharacterBaseModel.mjs.map
|
|
1833
1833
|
//# sourceMappingURL=CharacterBaseModel.mjs.map
|