narrat 2.8.0 → 2.8.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/app.vue.d.ts +0 -1
- package/dist/components/debug/debug-menu.vue.d.ts +2 -0
- package/dist/config.d.ts +4 -19
- package/dist/dialog-box.vue.d.ts +1 -1
- package/dist/narrat.es.js +6534 -6501
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +86 -86
- package/dist/narrat.umd.js.map +1 -1
- package/dist/stores/main-store.d.ts +5 -8
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/app.vue.d.ts
CHANGED
|
@@ -47,7 +47,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
47
47
|
};
|
|
48
48
|
returnValue: any;
|
|
49
49
|
}[]>;
|
|
50
|
-
modal: import("vue").ComputedRef<string | false>;
|
|
51
50
|
flowState: import("vue").ComputedRef<"menu" | "engine-splash" | "game-splash" | "playing">;
|
|
52
51
|
alerts: import("vue").ComputedRef<{
|
|
53
52
|
title: string;
|
package/dist/config.d.ts
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { AppOptions } from './types/app-types';
|
|
2
2
|
import { Config } from './config/config-output';
|
|
3
|
+
import { ScreenConfig } from './config/screens-config';
|
|
4
|
+
import { ButtonConfig } from './config/buttons-config';
|
|
3
5
|
import { ConfigInput } from './config/config-input';
|
|
4
6
|
export declare function setupConfig(configInput: ConfigInput): Promise<Config>;
|
|
5
7
|
export declare function loadConfig(options: AppOptions): Promise<Config>;
|
|
@@ -109,25 +111,8 @@ export declare function getImageUrl(imageKeyOrUrl: string): string;
|
|
|
109
111
|
export declare function getAssetUrl(assetPath: string): string;
|
|
110
112
|
export declare function getSplitConfigUrl(basePath: string, url: string): string;
|
|
111
113
|
export declare function getDataUrl(dataPath: string): string;
|
|
112
|
-
export declare function getButtonConfig(button: string):
|
|
113
|
-
|
|
114
|
-
x: number;
|
|
115
|
-
y: number;
|
|
116
|
-
} | undefined;
|
|
117
|
-
text?: string | undefined;
|
|
118
|
-
action?: string | undefined;
|
|
119
|
-
tag?: string | undefined;
|
|
120
|
-
cssClass?: string | undefined;
|
|
121
|
-
background?: string | undefined;
|
|
122
|
-
actionType?: string | undefined;
|
|
123
|
-
enabled: boolean;
|
|
124
|
-
position: {
|
|
125
|
-
width?: number | undefined;
|
|
126
|
-
height?: number | undefined;
|
|
127
|
-
left: number;
|
|
128
|
-
top: number;
|
|
129
|
-
};
|
|
130
|
-
};
|
|
114
|
+
export declare function getButtonConfig(button: string): ButtonConfig;
|
|
115
|
+
export declare function getScreenConfig(screen: string): ScreenConfig;
|
|
131
116
|
export declare function getItemConfig(id: string): {
|
|
132
117
|
onUse?: {
|
|
133
118
|
label: string;
|
package/dist/dialog-box.vue.d.ts
CHANGED
|
@@ -21,7 +21,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
21
|
}, unknown, {
|
|
22
22
|
playerText: string;
|
|
23
23
|
passed: boolean;
|
|
24
|
-
listener: any;
|
|
25
24
|
timeout: any;
|
|
26
25
|
textAnimation: TextAnimation | null;
|
|
27
26
|
mounted: boolean;
|
|
@@ -43,6 +42,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
43
42
|
paused: () => boolean;
|
|
44
43
|
}, {
|
|
45
44
|
clearListeners(): void;
|
|
45
|
+
keyboardEvent(e: KeyboardEvent): void;
|
|
46
46
|
next(): void;
|
|
47
47
|
chooseOption(choice: DialogChoice | number): void;
|
|
48
48
|
finishLine(): void;
|