narrat 2.4.1 → 2.6.0
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/app.vue.d.ts +5 -17
- package/dist/components/MainMenu.vue.d.ts +1 -6
- package/dist/components/saves/{save-slot.vue.d.ts → save-slot-ui.vue.d.ts} +5 -5
- package/dist/config.d.ts +16 -0
- package/dist/dark.png +0 -0
- package/dist/dark.webp +0 -0
- package/dist/dialog-box.vue.d.ts +1 -0
- package/dist/narrat.es.js +13428 -13337
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +109 -109
- package/dist/narrat.umd.js.map +1 -1
- package/dist/stores/audio-store.d.ts +8 -1
- package/dist/stores/main-store.d.ts +58 -20
- package/dist/stores/rendering-store.d.ts +12 -7
- package/dist/stores/sprites-store.d.ts +2 -0
- package/dist/style.css +1 -1
- package/dist/types/game-save.d.ts +9 -7
- package/dist/utils/data-helpers.d.ts +1 -0
- package/dist/utils/save-helpers.d.ts +4 -6
- package/package.json +1 -1
package/dist/app.vue.d.ts
CHANGED
|
@@ -59,27 +59,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
59
59
|
lineTitle: string;
|
|
60
60
|
lineText: string;
|
|
61
61
|
}, {
|
|
62
|
-
backgroundStyle(): any;
|
|
63
|
-
layoutWidth(): number;
|
|
64
|
-
layoutHeight(): number;
|
|
65
|
-
backgroundSize(): {
|
|
66
|
-
width: number;
|
|
67
|
-
height: number;
|
|
68
|
-
left: number;
|
|
69
|
-
top: number;
|
|
70
|
-
};
|
|
71
|
-
gameWidth(): number;
|
|
72
|
-
gameHeight(): number;
|
|
73
62
|
appStyle(): any;
|
|
74
|
-
|
|
75
|
-
screenRatio(): number;
|
|
63
|
+
appClass(): any;
|
|
76
64
|
currentLine: () => import("./types/parser").Parser.ParsedExpression<import("./types/parser").Parser.DefaultArg, {}> | undefined;
|
|
65
|
+
gameScaleRatio: () => number;
|
|
66
|
+
gameWidth: () => number;
|
|
67
|
+
gameHeight: () => number;
|
|
68
|
+
actualGameHeight: () => number;
|
|
77
69
|
screenWidth: () => number;
|
|
78
70
|
screenHeight: () => number;
|
|
79
|
-
canvasWidth: () => number;
|
|
80
|
-
canvasHeight: () => number;
|
|
81
|
-
topOffset: () => number;
|
|
82
|
-
leftOffset: () => number;
|
|
83
71
|
layoutMode: () => "horizontal" | "vertical";
|
|
84
72
|
}, {
|
|
85
73
|
closeAlert(id: string): void;
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
declare const _default: import("vue").DefineComponent<{}, {}, {}, {
|
|
2
|
-
playTime: () => {
|
|
3
|
-
start: number;
|
|
4
|
-
previousPlaytime: number;
|
|
5
|
-
};
|
|
6
|
-
}, {
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {
|
|
7
2
|
quit(): void;
|
|
8
3
|
mainMenu(): void;
|
|
9
4
|
closeMenu(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SaveSlot } from '../../types/game-save';
|
|
2
2
|
import { PropType } from 'vue';
|
|
3
3
|
declare const _default: {
|
|
4
4
|
new (...args: any[]): {
|
|
@@ -6,7 +6,7 @@ declare const _default: {
|
|
|
6
6
|
$data: {};
|
|
7
7
|
$props: Partial<{}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
8
8
|
saveSlot: {
|
|
9
|
-
type: PropType<
|
|
9
|
+
type: PropType<SaveSlot>;
|
|
10
10
|
required: true;
|
|
11
11
|
};
|
|
12
12
|
id: {
|
|
@@ -35,7 +35,7 @@ declare const _default: {
|
|
|
35
35
|
$el: any;
|
|
36
36
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
37
37
|
saveSlot: {
|
|
38
|
-
type: PropType<
|
|
38
|
+
type: PropType<SaveSlot>;
|
|
39
39
|
required: true;
|
|
40
40
|
};
|
|
41
41
|
id: {
|
|
@@ -70,7 +70,7 @@ declare const _default: {
|
|
|
70
70
|
$watch(source: string | Function, cb: Function, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
71
71
|
} & Readonly<import("vue").ExtractPropTypes<{
|
|
72
72
|
saveSlot: {
|
|
73
|
-
type: PropType<
|
|
73
|
+
type: PropType<SaveSlot>;
|
|
74
74
|
required: true;
|
|
75
75
|
};
|
|
76
76
|
id: {
|
|
@@ -89,7 +89,7 @@ declare const _default: {
|
|
|
89
89
|
__isSuspense?: undefined;
|
|
90
90
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
91
91
|
saveSlot: {
|
|
92
|
-
type: PropType<
|
|
92
|
+
type: PropType<SaveSlot>;
|
|
93
93
|
required: true;
|
|
94
94
|
};
|
|
95
95
|
id: {
|
package/dist/config.d.ts
CHANGED
|
@@ -38,6 +38,10 @@ export interface Config {
|
|
|
38
38
|
[key: string]: string;
|
|
39
39
|
};
|
|
40
40
|
layout: {
|
|
41
|
+
dialogPanel?: {
|
|
42
|
+
overlayMode?: boolean;
|
|
43
|
+
rightOffset?: number;
|
|
44
|
+
};
|
|
41
45
|
backgrounds: {
|
|
42
46
|
width: number;
|
|
43
47
|
height: number;
|
|
@@ -49,6 +53,16 @@ export interface Config {
|
|
|
49
53
|
portraits: {
|
|
50
54
|
width: number;
|
|
51
55
|
height: number;
|
|
56
|
+
offset?: {
|
|
57
|
+
landscape?: {
|
|
58
|
+
right: number;
|
|
59
|
+
bottom: number;
|
|
60
|
+
};
|
|
61
|
+
portrait?: {
|
|
62
|
+
right: number;
|
|
63
|
+
bottom: number;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
52
66
|
};
|
|
53
67
|
};
|
|
54
68
|
gameFlow: {
|
|
@@ -134,6 +148,7 @@ export interface Config {
|
|
|
134
148
|
};
|
|
135
149
|
saves: {
|
|
136
150
|
mode: 'game-slots' | 'manual';
|
|
151
|
+
slots: number;
|
|
137
152
|
};
|
|
138
153
|
}
|
|
139
154
|
export interface ScreenConfig {
|
|
@@ -185,6 +200,7 @@ export interface ButtonConfig {
|
|
|
185
200
|
enabled: boolean;
|
|
186
201
|
background?: string;
|
|
187
202
|
text?: string;
|
|
203
|
+
cssClass?: string;
|
|
188
204
|
position: {
|
|
189
205
|
left: number;
|
|
190
206
|
top: number;
|
package/dist/dark.png
ADDED
|
Binary file
|
package/dist/dark.webp
ADDED
|
Binary file
|
package/dist/dialog-box.vue.d.ts
CHANGED
|
@@ -17,6 +17,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
preText(): string;
|
|
18
18
|
style(): DialogStyle;
|
|
19
19
|
dialogBoxStyle(): any;
|
|
20
|
+
dialogBoxClass(): false | "dialog-box-followup";
|
|
20
21
|
titleStyle(): any;
|
|
21
22
|
textStyle(): any;
|
|
22
23
|
choices(): DialogChoice[] | undefined;
|