@drincs/pixi-vn 1.2.1 → 1.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/constants.cjs +1 -1
- package/dist/constants.d.cts +1 -1
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/narration/classes/ChoiceMenuOption.d.cts +3 -3
- package/dist/narration/classes/ChoiceMenuOption.d.ts +3 -3
- package/dist/narration/classes/CloseChoiceOption.cjs +1 -1
- package/dist/narration/classes/CloseChoiceOption.d.cts +3 -3
- package/dist/narration/classes/CloseChoiceOption.d.ts +3 -3
- package/dist/narration/classes/CloseChoiceOption.js +1 -1
- package/dist/narration/index.cjs +15 -15
- package/dist/narration/index.js +15 -15
- package/package.json +1 -1
|
@@ -22,7 +22,7 @@ declare class ChoiceMenuOption<T extends StorageObjectType, TLabel extends Label
|
|
|
22
22
|
/**
|
|
23
23
|
* Text to be displayed in the menu
|
|
24
24
|
*/
|
|
25
|
-
text:
|
|
25
|
+
text: ChoiceInterface["text"];
|
|
26
26
|
private _label;
|
|
27
27
|
/**
|
|
28
28
|
* Label to be opened when the option is selected
|
|
@@ -78,7 +78,7 @@ declare class ChoiceMenuOption<T extends StorageObjectType, TLabel extends Label
|
|
|
78
78
|
* @param props Properties to be passed to the label and olther parameters that you can use when get all the choice menu options. It be converted to a JSON string, so it cannot contain functions or classes.
|
|
79
79
|
* @param options Options
|
|
80
80
|
*/
|
|
81
|
-
constructor(text:
|
|
81
|
+
constructor(text: ChoiceInterface["text"], label: Label<T> | LabelAbstract<any, T> | LabelIdType, props: T, options?: ChoiceMenuOptionOptions);
|
|
82
82
|
}
|
|
83
83
|
/**
|
|
84
84
|
* Function to create a new choice menu option.
|
|
@@ -87,6 +87,6 @@ declare class ChoiceMenuOption<T extends StorageObjectType, TLabel extends Label
|
|
|
87
87
|
* newChoiceOption("Hello", HelloLabel, {})
|
|
88
88
|
* ```
|
|
89
89
|
*/
|
|
90
|
-
declare function newChoiceOption<T extends StorageObjectType>(text:
|
|
90
|
+
declare function newChoiceOption<T extends StorageObjectType>(text: ChoiceInterface["text"], label: Label<T> | LabelAbstract<any, T> | LabelIdType, props: T, options?: ChoiceMenuOptionOptions): ChoiceOptionInterface;
|
|
91
91
|
|
|
92
92
|
export { ChoiceMenuOption as default, newChoiceOption };
|
|
@@ -22,7 +22,7 @@ declare class ChoiceMenuOption<T extends StorageObjectType, TLabel extends Label
|
|
|
22
22
|
/**
|
|
23
23
|
* Text to be displayed in the menu
|
|
24
24
|
*/
|
|
25
|
-
text:
|
|
25
|
+
text: ChoiceInterface["text"];
|
|
26
26
|
private _label;
|
|
27
27
|
/**
|
|
28
28
|
* Label to be opened when the option is selected
|
|
@@ -78,7 +78,7 @@ declare class ChoiceMenuOption<T extends StorageObjectType, TLabel extends Label
|
|
|
78
78
|
* @param props Properties to be passed to the label and olther parameters that you can use when get all the choice menu options. It be converted to a JSON string, so it cannot contain functions or classes.
|
|
79
79
|
* @param options Options
|
|
80
80
|
*/
|
|
81
|
-
constructor(text:
|
|
81
|
+
constructor(text: ChoiceInterface["text"], label: Label<T> | LabelAbstract<any, T> | LabelIdType, props: T, options?: ChoiceMenuOptionOptions);
|
|
82
82
|
}
|
|
83
83
|
/**
|
|
84
84
|
* Function to create a new choice menu option.
|
|
@@ -87,6 +87,6 @@ declare class ChoiceMenuOption<T extends StorageObjectType, TLabel extends Label
|
|
|
87
87
|
* newChoiceOption("Hello", HelloLabel, {})
|
|
88
88
|
* ```
|
|
89
89
|
*/
|
|
90
|
-
declare function newChoiceOption<T extends StorageObjectType>(text:
|
|
90
|
+
declare function newChoiceOption<T extends StorageObjectType>(text: ChoiceInterface["text"], label: Label<T> | LabelAbstract<any, T> | LabelIdType, props: T, options?: ChoiceMenuOptionOptions): ChoiceOptionInterface;
|
|
91
91
|
|
|
92
92
|
export { ChoiceMenuOption as default, newChoiceOption };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var o="close";var t=class{text;closeCurrentLabel;type=o;oneTime;onlyHaveNoChoice;autoSelect;props={};devProps={};constructor(e,
|
|
1
|
+
'use strict';Object.defineProperty(exports,'__esModule',{value:true});var o="close";var t=class{text;closeCurrentLabel;type=o;oneTime;onlyHaveNoChoice;autoSelect;props={};devProps={};constructor(e,n){let{closeCurrentLabel:r=false,oneTime:c=false,onlyHaveNoChoice:s=false,autoSelect:i=false,...a}=n||{};this.text=e,this.closeCurrentLabel=r,this.oneTime=c,this.onlyHaveNoChoice=s,this.autoSelect=i,this.devProps=a;}};function f(l,e){return {...e,type:o,text:l}}exports.default=t;exports.newCloseChoiceOption=f;
|
|
@@ -18,7 +18,7 @@ declare class ChoiceMenuOptionClose {
|
|
|
18
18
|
/**
|
|
19
19
|
* Text to be displayed in the menu
|
|
20
20
|
*/
|
|
21
|
-
text:
|
|
21
|
+
text: ChoiceInterface["text"];
|
|
22
22
|
/**
|
|
23
23
|
* If true, the current label will be closed
|
|
24
24
|
*/
|
|
@@ -71,7 +71,7 @@ declare class ChoiceMenuOptionClose {
|
|
|
71
71
|
* @param text Text to be displayed in the menu
|
|
72
72
|
* @param options Options
|
|
73
73
|
*/
|
|
74
|
-
constructor(text:
|
|
74
|
+
constructor(text: ChoiceInterface["text"], options?: ChoiceMenuOptionCloseOptions);
|
|
75
75
|
}
|
|
76
76
|
/**
|
|
77
77
|
* Function to create a new choice menu option that will close the menu.
|
|
@@ -80,6 +80,6 @@ declare class ChoiceMenuOptionClose {
|
|
|
80
80
|
* newCloseChoiceOption("Return")
|
|
81
81
|
* ```
|
|
82
82
|
*/
|
|
83
|
-
declare function newCloseChoiceOption(text:
|
|
83
|
+
declare function newCloseChoiceOption(text: ChoiceInterface["text"], options?: ChoiceMenuOptionCloseOptions): CloseChoiceOptionInterface;
|
|
84
84
|
|
|
85
85
|
export { ChoiceMenuOptionClose as default, newCloseChoiceOption };
|
|
@@ -18,7 +18,7 @@ declare class ChoiceMenuOptionClose {
|
|
|
18
18
|
/**
|
|
19
19
|
* Text to be displayed in the menu
|
|
20
20
|
*/
|
|
21
|
-
text:
|
|
21
|
+
text: ChoiceInterface["text"];
|
|
22
22
|
/**
|
|
23
23
|
* If true, the current label will be closed
|
|
24
24
|
*/
|
|
@@ -71,7 +71,7 @@ declare class ChoiceMenuOptionClose {
|
|
|
71
71
|
* @param text Text to be displayed in the menu
|
|
72
72
|
* @param options Options
|
|
73
73
|
*/
|
|
74
|
-
constructor(text:
|
|
74
|
+
constructor(text: ChoiceInterface["text"], options?: ChoiceMenuOptionCloseOptions);
|
|
75
75
|
}
|
|
76
76
|
/**
|
|
77
77
|
* Function to create a new choice menu option that will close the menu.
|
|
@@ -80,6 +80,6 @@ declare class ChoiceMenuOptionClose {
|
|
|
80
80
|
* newCloseChoiceOption("Return")
|
|
81
81
|
* ```
|
|
82
82
|
*/
|
|
83
|
-
declare function newCloseChoiceOption(text:
|
|
83
|
+
declare function newCloseChoiceOption(text: ChoiceInterface["text"], options?: ChoiceMenuOptionCloseOptions): CloseChoiceOptionInterface;
|
|
84
84
|
|
|
85
85
|
export { ChoiceMenuOptionClose as default, newCloseChoiceOption };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var o="close";var t=class{text;closeCurrentLabel;type=o;oneTime;onlyHaveNoChoice;autoSelect;props={};devProps={};constructor(e,
|
|
1
|
+
var o="close";var t=class{text;closeCurrentLabel;type=o;oneTime;onlyHaveNoChoice;autoSelect;props={};devProps={};constructor(e,n){let{closeCurrentLabel:r=false,oneTime:c=false,onlyHaveNoChoice:s=false,autoSelect:i=false,...a}=n||{};this.text=e,this.closeCurrentLabel=r,this.oneTime=c,this.onlyHaveNoChoice=s,this.autoSelect=i,this.devProps=a;}};function f(l,e){return {...e,type:o,text:l}}export{t as default,f as newCloseChoiceOption};
|