narrat 3.2.0 → 3.2.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 +78 -78
- package/dist/components/MainMenu.vue.d.ts +4 -4
- package/dist/components/SkillsWindow.vue.d.ts +28 -28
- package/dist/components/StartMenu.vue.d.ts +2 -2
- package/dist/components/achievements/achievement-tile.vue.d.ts +15 -15
- package/dist/components/achievements/achievements-section.vue.d.ts +34 -34
- package/dist/components/achievements/achievements-ui.vue.d.ts +32 -32
- package/dist/components/auto-play/AutoPlayFeedback.vue.d.ts +2 -2
- package/dist/components/debug/debug-menu.vue.d.ts +53 -53
- package/dist/components/dialog-picture.vue.d.ts +11 -11
- package/dist/components/engine-splash/engine-splash.vue.d.ts +4 -4
- package/dist/components/game-dialog.vue.d.ts +11 -11
- package/dist/components/game-splash/game-splash.vue.d.ts +2 -2
- package/dist/components/hud.vue.d.ts +20 -20
- package/dist/components/in-game.vue.d.ts +2 -2
- package/dist/components/inventory/inventory-section.vue.d.ts +34 -34
- package/dist/components/inventory/item-details.vue.d.ts +16 -16
- package/dist/components/inventory-ui.vue.d.ts +39 -39
- package/dist/components/loading-bar.vue.d.ts +10 -10
- package/dist/components/menu-buttons.vue.d.ts +2 -2
- package/dist/components/notification-toast.vue.d.ts +2 -2
- package/dist/components/quests/QuestDetails.vue.d.ts +13 -13
- package/dist/components/quests/QuestDisplay.vue.d.ts +13 -13
- package/dist/components/quests/quests-list-section.vue.d.ts +50 -50
- package/dist/components/quests-ui.vue.d.ts +22 -22
- package/dist/components/save-slots.vue.d.ts +16 -16
- package/dist/components/saves/save-slot-ui.vue.d.ts +32 -32
- package/dist/components/screen-layer.vue.d.ts +28 -28
- package/dist/components/screen-objects/screen-object.vue.d.ts +21 -21
- package/dist/components/screens.vue.d.ts +2 -2
- package/dist/components/settings/setting-widget.vue.d.ts +15 -15
- package/dist/components/settings/settings-menu.vue.d.ts +2 -2
- package/dist/components/tabs/TabsController.vue.d.ts +28 -28
- package/dist/components/tabs/tab-selector.vue.d.ts +29 -29
- package/dist/components/tooltips/tooltips-ui.vue.d.ts +2 -2
- package/dist/components/transitions/NarratTransition.vue.d.ts +32 -32
- package/dist/components/utils/__tests__/alert-modal.spec.d.ts +1 -1
- package/dist/components/utils/__tests__/floating-tooltip.spec.d.ts +1 -1
- package/dist/components/utils/alert-modal.vue.d.ts +20 -20
- package/dist/components/utils/floating-tooltip.vue.d.ts +56 -56
- package/dist/components/utils/modal-window.vue.d.ts +18 -18
- package/dist/components/utils/yes-no.vue.d.ts +30 -30
- package/dist/components/volume-controls.vue.d.ts +18 -18
- package/dist/config/achievements-config.d.ts +58 -58
- package/dist/config/audio-config.d.ts +58 -58
- package/dist/config/buttons-config.d.ts +68 -68
- package/dist/config/characters-config.d.ts +36 -36
- package/dist/config/common-config.d.ts +81 -81
- package/dist/config/config-input.d.ts +286 -286
- package/dist/config/config-output.d.ts +280 -280
- package/dist/config/items-config.d.ts +71 -71
- package/dist/config/layout-config.d.ts +27 -27
- package/dist/config/quests-config.d.ts +48 -48
- package/dist/config/screens-config.d.ts +133 -133
- package/dist/config/settings-config.d.ts +113 -113
- package/dist/config/skillchecks-config.d.ts +73 -73
- package/dist/config/skills-config.d.ts +51 -51
- package/dist/config/tooltips-config.d.ts +16 -16
- package/dist/config.d.ts +235 -235
- package/dist/constants.d.ts +14 -11
- package/dist/demo/demo.d.ts +1 -1
- package/dist/dialog-box.vue.d.ts +34 -34
- package/dist/examples/default/scripts.d.ts +2 -2
- package/dist/examples/demo/scripts.d.ts +2 -2
- package/dist/examples/empty/scripts.d.ts +2 -2
- package/dist/examples/rpg/scripts.d.ts +2 -2
- package/dist/exports/components.d.ts +2 -2
- package/dist/exports/config.d.ts +4 -4
- package/dist/exports/display.d.ts +2 -2
- package/dist/exports/events.d.ts +1 -1
- package/dist/exports/inputs.d.ts +1 -1
- package/dist/exports/others.d.ts +1 -1
- package/dist/exports/plugins.d.ts +69 -69
- package/dist/exports/stores.d.ts +17 -17
- package/dist/exports/utils.d.ts +12 -12
- package/dist/hmr/hmr.d.ts +4 -4
- package/dist/hooks/util-hooks.d.ts +1 -1
- package/dist/inputs/Inputs.d.ts +96 -96
- package/dist/inputs/useNavigation.d.ts +30 -30
- package/dist/lib.d.ts +22 -22
- package/dist/main.d.ts +9 -9
- package/dist/menu-buttons/menu-buttons.d.ts +7 -7
- package/dist/narrat.es.js +6121 -6113
- package/dist/narrat.es.js.map +1 -1
- package/dist/narrat.umd.js +87 -87
- package/dist/narrat.umd.js.map +1 -1
- package/dist/plugins/NarratPlugin.d.ts +12 -12
- package/dist/stores/__tests__/achievements-store.spec.d.ts +1 -1
- package/dist/stores/__tests__/notifications-store.spec.d.ts +1 -1
- package/dist/stores/achievements-store.d.ts +27 -27
- package/dist/stores/audio-store.d.ts +57 -57
- package/dist/stores/config-store.d.ts +7 -7
- package/dist/stores/dialog-store.d.ts +35 -35
- package/dist/stores/gamepad-store.d.ts +11 -11
- package/dist/stores/hud-stats-store.d.ts +21 -21
- package/dist/stores/inputs-store.d.ts +23 -23
- package/dist/stores/inventory-store.d.ts +40 -40
- package/dist/stores/main-store.d.ts +2058 -2058
- package/dist/stores/menu-store.d.ts +46 -46
- package/dist/stores/notification-store.d.ts +22 -22
- package/dist/stores/quest-log.d.ts +38 -38
- package/dist/stores/rendering-store.d.ts +20 -20
- package/dist/stores/screen-objects-store.d.ts +82 -82
- package/dist/stores/screens-store.d.ts +36 -36
- package/dist/stores/settings-store.d.ts +93 -93
- package/dist/stores/skills.d.ts +40 -40
- package/dist/stores/start-menu-store.d.ts +7 -7
- package/dist/stores/tooltip-store.d.ts +18 -18
- package/dist/stores/vm-store.d.ts +189 -189
- package/dist/tests/mock-config.d.ts +3 -3
- package/dist/tests/tests.setup.d.ts +1 -1
- package/dist/types/app-types.d.ts +14 -14
- package/dist/types/dialog-box-types.d.ts +11 -11
- package/dist/types/game-save.d.ts +51 -51
- package/dist/types/parser.d.ts +93 -93
- package/dist/types/state.d.ts +3 -3
- package/dist/utils/InputsListener.d.ts +9 -9
- package/dist/utils/Vector2.d.ts +49 -49
- package/dist/utils/ajax.d.ts +2 -2
- package/dist/utils/audio-loader.d.ts +10 -10
- package/dist/utils/characters.d.ts +4 -4
- package/dist/utils/data-helpers.d.ts +50 -50
- package/dist/utils/data-helpers.test.d.ts +1 -1
- package/dist/utils/debounce.d.ts +14 -14
- package/dist/utils/error-handling.d.ts +4 -4
- package/dist/utils/gameloop.d.ts +10 -10
- package/dist/utils/getWindow.d.ts +1 -1
- package/dist/utils/helpers.d.ts +6 -6
- package/dist/utils/images-loader.d.ts +7 -7
- package/dist/utils/logger.d.ts +11 -11
- package/dist/utils/object-iterators.d.ts +9 -9
- package/dist/utils/promises.d.ts +1 -1
- package/dist/utils/randomId.d.ts +1 -1
- package/dist/utils/save-helpers.d.ts +18 -18
- package/dist/utils/skillchecks.d.ts +26 -26
- package/dist/utils/skillchecks.test.d.ts +1 -1
- package/dist/utils/string-helpers.d.ts +5 -5
- package/dist/utils/time-helpers.d.ts +2 -2
- package/dist/utils/tooltip-utils.d.ts +2 -2
- package/dist/utils/transition.d.ts +21 -21
- package/dist/utils/type-utils.d.ts +2 -2
- package/dist/utils/typed-emitter.d.ts +18 -18
- package/dist/utils/viewport-utils.d.ts +3 -3
- package/dist/utils/vue-directives.d.ts +2 -2
- package/dist/vm/commands/achievements-commands.d.ts +6 -6
- package/dist/vm/commands/arithmetic-commands.d.ts +23 -23
- package/dist/vm/commands/array-commands.d.ts +42 -42
- package/dist/vm/commands/audio-commands.d.ts +19 -19
- package/dist/vm/commands/choice.d.ts +35 -35
- package/dist/vm/commands/clear_dialog.d.ts +2 -2
- package/dist/vm/commands/command-helpers.d.ts +3 -3
- package/dist/vm/commands/command-plugin.d.ts +43 -43
- package/dist/vm/commands/flow-commands.d.ts +28 -28
- package/dist/vm/commands/if.d.ts +15 -15
- package/dist/vm/commands/index.d.ts +2 -2
- package/dist/vm/commands/inventory-commands.d.ts +15 -15
- package/dist/vm/commands/logic-command.d.ts +42 -42
- package/dist/vm/commands/math-commands.d.ts +30 -30
- package/dist/vm/commands/notify.d.ts +8 -8
- package/dist/vm/commands/quest-commands.d.ts +30 -30
- package/dist/vm/commands/random-commands.d.ts +13 -13
- package/dist/vm/commands/screen-commands.d.ts +18 -18
- package/dist/vm/commands/set.d.ts +6 -6
- package/dist/vm/commands/settings-commands.d.ts +8 -8
- package/dist/vm/commands/skill-commands.d.ts +39 -39
- package/dist/vm/commands/sprite-commands.d.ts +19 -19
- package/dist/vm/commands/stats-commands.d.ts +12 -12
- package/dist/vm/commands/string-commands.d.ts +9 -9
- package/dist/vm/commands/text-field.d.ts +7 -7
- package/dist/vm/commands/text.d.ts +14 -14
- package/dist/vm/commands/time-commands.d.ts +16 -16
- package/dist/vm/commands/util-commands.d.ts +4 -4
- package/dist/vm/commands/wait.d.ts +4 -4
- package/dist/vm/vm-helpers.d.ts +20 -20
- package/dist/vm/vm-parser.d.ts +22 -22
- package/dist/vm/vm-parser.test.d.ts +1 -1
- package/dist/vm/vm.d.ts +26 -26
- package/package.json +3 -3
package/dist/config.d.ts
CHANGED
|
@@ -1,235 +1,235 @@
|
|
|
1
|
-
import { AppOptions } from './types/app-types';
|
|
2
|
-
import { Config } from './config/config-output';
|
|
3
|
-
import { ScreenConfig } from './config/screens-config';
|
|
4
|
-
import { ButtonConfig } from './config/buttons-config';
|
|
5
|
-
import { ConfigInput } from './config/config-input';
|
|
6
|
-
export declare function setupConfig(configInput: ConfigInput): Promise<Config>;
|
|
7
|
-
export declare function loadConfig(options: AppOptions): Promise<Config>;
|
|
8
|
-
export declare function getConfig(): Config;
|
|
9
|
-
export declare function audioConfig(): import("./config/audio-config").AudioConfig;
|
|
10
|
-
export declare function skillsConfig(): {
|
|
11
|
-
skills: Record<string, {
|
|
12
|
-
hidden?: boolean | undefined;
|
|
13
|
-
name: string;
|
|
14
|
-
description: string;
|
|
15
|
-
startingLevel: number;
|
|
16
|
-
icon: string;
|
|
17
|
-
}>;
|
|
18
|
-
skillOptions: {
|
|
19
|
-
xpPerLevel: number;
|
|
20
|
-
notifyLevelUp: boolean;
|
|
21
|
-
};
|
|
22
|
-
};
|
|
23
|
-
export declare function skillChecksConfig(): {
|
|
24
|
-
options: {
|
|
25
|
-
extraDicePerLevel?: number | undefined;
|
|
26
|
-
finalRollIsHighest?: boolean | undefined;
|
|
27
|
-
finalRollIsLowest?: boolean | undefined;
|
|
28
|
-
failOnRollsEqualToThreshold?: boolean | undefined;
|
|
29
|
-
diceRange: [number, number];
|
|
30
|
-
diceCount: number;
|
|
31
|
-
difficultyText: [number, string][];
|
|
32
|
-
extraPointsPerLevel: number;
|
|
33
|
-
successOnRollsBelowThreshold: boolean;
|
|
34
|
-
showDifficultyText: boolean;
|
|
35
|
-
showDifficultyNumber: boolean;
|
|
36
|
-
showDifficultyWithoutModifiers: boolean;
|
|
37
|
-
};
|
|
38
|
-
skillChecks: Record<string, {
|
|
39
|
-
winsNeeded?: number | undefined;
|
|
40
|
-
hideAfterRoll?: boolean | undefined;
|
|
41
|
-
repeatable?: boolean | undefined;
|
|
42
|
-
skill: string;
|
|
43
|
-
difficulty: number;
|
|
44
|
-
}>;
|
|
45
|
-
};
|
|
46
|
-
export declare function itemsConfig(): {
|
|
47
|
-
items: Record<string, {
|
|
48
|
-
category?: string | undefined;
|
|
49
|
-
onUse?: {
|
|
50
|
-
label: string;
|
|
51
|
-
action: string;
|
|
52
|
-
} | undefined;
|
|
53
|
-
tag?: string | undefined;
|
|
54
|
-
showIfEmpty?: boolean | undefined;
|
|
55
|
-
name: string;
|
|
56
|
-
description: string;
|
|
57
|
-
icon: string;
|
|
58
|
-
}>;
|
|
59
|
-
categories: {
|
|
60
|
-
title: string;
|
|
61
|
-
id: string;
|
|
62
|
-
}[];
|
|
63
|
-
};
|
|
64
|
-
export declare function questsConfig(): {
|
|
65
|
-
quests: Record<string, {
|
|
66
|
-
category?: string | undefined;
|
|
67
|
-
title: string;
|
|
68
|
-
description: string;
|
|
69
|
-
objectives: Record<string, {
|
|
70
|
-
hidden?: boolean | undefined;
|
|
71
|
-
description: string;
|
|
72
|
-
}>;
|
|
73
|
-
}>;
|
|
74
|
-
categories: {
|
|
75
|
-
title: string;
|
|
76
|
-
id: string;
|
|
77
|
-
}[];
|
|
78
|
-
};
|
|
79
|
-
export declare function screensConfig(): {
|
|
80
|
-
screens: Record<string, {
|
|
81
|
-
buttons?: (string | ({
|
|
82
|
-
text?: string | undefined;
|
|
83
|
-
anchor?: {
|
|
84
|
-
x: number;
|
|
85
|
-
y: number;
|
|
86
|
-
} | undefined;
|
|
87
|
-
cssClass?: string | undefined;
|
|
88
|
-
action?: string | undefined;
|
|
89
|
-
tag?: string | undefined;
|
|
90
|
-
background?: string | undefined;
|
|
91
|
-
actionType?: string | undefined;
|
|
92
|
-
scriptClickable?: boolean | undefined;
|
|
93
|
-
enabled: boolean;
|
|
94
|
-
position: {
|
|
95
|
-
width?: number | undefined;
|
|
96
|
-
height?: number | undefined;
|
|
97
|
-
left: number;
|
|
98
|
-
top: number;
|
|
99
|
-
};
|
|
100
|
-
} & {
|
|
101
|
-
id: string;
|
|
102
|
-
}))[] | undefined;
|
|
103
|
-
background: string;
|
|
104
|
-
}>;
|
|
105
|
-
};
|
|
106
|
-
export declare function buttonsConfig(): {
|
|
107
|
-
clickableDuringScriptsByDefault?: boolean | undefined;
|
|
108
|
-
buttons: Record<string, {
|
|
109
|
-
text?: string | undefined;
|
|
110
|
-
anchor?: {
|
|
111
|
-
x: number;
|
|
112
|
-
y: number;
|
|
113
|
-
} | undefined;
|
|
114
|
-
cssClass?: string | undefined;
|
|
115
|
-
action?: string | undefined;
|
|
116
|
-
tag?: string | undefined;
|
|
117
|
-
background?: string | undefined;
|
|
118
|
-
actionType?: string | undefined;
|
|
119
|
-
scriptClickable?: boolean | undefined;
|
|
120
|
-
enabled: boolean;
|
|
121
|
-
position: {
|
|
122
|
-
width?: number | undefined;
|
|
123
|
-
height?: number | undefined;
|
|
124
|
-
left: number;
|
|
125
|
-
top: number;
|
|
126
|
-
};
|
|
127
|
-
}>;
|
|
128
|
-
};
|
|
129
|
-
export declare function tooltipsConfig(): {
|
|
130
|
-
options: {
|
|
131
|
-
delay?: number | undefined;
|
|
132
|
-
screenEdgesMinimumMargin?: number | undefined;
|
|
133
|
-
width: number;
|
|
134
|
-
keywordsPrefix: string;
|
|
135
|
-
};
|
|
136
|
-
tooltips: {
|
|
137
|
-
title: string;
|
|
138
|
-
description: string;
|
|
139
|
-
keywords: string[];
|
|
140
|
-
}[];
|
|
141
|
-
};
|
|
142
|
-
export declare function charactersConfig(): {
|
|
143
|
-
config: {
|
|
144
|
-
imagesPath: string;
|
|
145
|
-
};
|
|
146
|
-
characters: Record<string, {
|
|
147
|
-
style?: {
|
|
148
|
-
color?: string | undefined;
|
|
149
|
-
boxCss?: Record<string, any> | undefined;
|
|
150
|
-
nameCss?: Record<string, any> | undefined;
|
|
151
|
-
textCss?: Record<string, any> | undefined;
|
|
152
|
-
} | undefined;
|
|
153
|
-
sprites?: Record<string, string> | undefined;
|
|
154
|
-
name: string;
|
|
155
|
-
}>;
|
|
156
|
-
};
|
|
157
|
-
export declare function
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
export declare function
|
|
178
|
-
export declare function
|
|
179
|
-
export declare function
|
|
180
|
-
export declare function
|
|
181
|
-
export declare function
|
|
182
|
-
export declare function
|
|
183
|
-
export declare function getItemConfig(id: string): {
|
|
184
|
-
category?: string | undefined;
|
|
185
|
-
onUse?: {
|
|
186
|
-
label: string;
|
|
187
|
-
action: string;
|
|
188
|
-
} | undefined;
|
|
189
|
-
tag?: string | undefined;
|
|
190
|
-
showIfEmpty?: boolean | undefined;
|
|
191
|
-
name: string;
|
|
192
|
-
description: string;
|
|
193
|
-
icon: string;
|
|
194
|
-
};
|
|
195
|
-
export declare function getAchievementsConfig(): {
|
|
196
|
-
secretAchievements?: {
|
|
197
|
-
censorDescription?: boolean | undefined;
|
|
198
|
-
censorName?: boolean | undefined;
|
|
199
|
-
hideUntilObtained?: boolean | undefined;
|
|
200
|
-
} | undefined;
|
|
201
|
-
categories: {
|
|
202
|
-
title: string;
|
|
203
|
-
id: string;
|
|
204
|
-
}[];
|
|
205
|
-
defaultAchievementIcon: string;
|
|
206
|
-
achievements: Record<string, {
|
|
207
|
-
category?: string | undefined;
|
|
208
|
-
secret?: boolean | undefined;
|
|
209
|
-
name: string;
|
|
210
|
-
description: string;
|
|
211
|
-
icon: string;
|
|
212
|
-
}>;
|
|
213
|
-
notifyNewAchievements: boolean;
|
|
214
|
-
};
|
|
215
|
-
export declare function getAchievementConfig(id: string): {
|
|
216
|
-
category?: string | undefined;
|
|
217
|
-
secret?: boolean | undefined;
|
|
218
|
-
name: string;
|
|
219
|
-
description: string;
|
|
220
|
-
icon: string;
|
|
221
|
-
};
|
|
222
|
-
export declare function getQuestConfig(questId: string): {
|
|
223
|
-
category?: string | undefined;
|
|
224
|
-
title: string;
|
|
225
|
-
description: string;
|
|
226
|
-
objectives: Record<string, {
|
|
227
|
-
hidden?: boolean | undefined;
|
|
228
|
-
description: string;
|
|
229
|
-
}>;
|
|
230
|
-
};
|
|
231
|
-
export declare function getObjectiveConfig(quest: string, objectiveId: string): {
|
|
232
|
-
hidden?: boolean | undefined;
|
|
233
|
-
description: string;
|
|
234
|
-
};
|
|
235
|
-
export declare function getDialogPanelWidth(): number;
|
|
1
|
+
import { AppOptions } from './types/app-types';
|
|
2
|
+
import { Config } from './config/config-output';
|
|
3
|
+
import { ScreenConfig } from './config/screens-config';
|
|
4
|
+
import { ButtonConfig } from './config/buttons-config';
|
|
5
|
+
import { ConfigInput } from './config/config-input';
|
|
6
|
+
export declare function setupConfig(configInput: ConfigInput): Promise<Config>;
|
|
7
|
+
export declare function loadConfig(options: AppOptions): Promise<Config>;
|
|
8
|
+
export declare function getConfig(): Config;
|
|
9
|
+
export declare function audioConfig(): import("./config/audio-config").AudioConfig;
|
|
10
|
+
export declare function skillsConfig(): {
|
|
11
|
+
skills: Record<string, {
|
|
12
|
+
hidden?: boolean | undefined;
|
|
13
|
+
name: string;
|
|
14
|
+
description: string;
|
|
15
|
+
startingLevel: number;
|
|
16
|
+
icon: string;
|
|
17
|
+
}>;
|
|
18
|
+
skillOptions: {
|
|
19
|
+
xpPerLevel: number;
|
|
20
|
+
notifyLevelUp: boolean;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
export declare function skillChecksConfig(): {
|
|
24
|
+
options: {
|
|
25
|
+
extraDicePerLevel?: number | undefined;
|
|
26
|
+
finalRollIsHighest?: boolean | undefined;
|
|
27
|
+
finalRollIsLowest?: boolean | undefined;
|
|
28
|
+
failOnRollsEqualToThreshold?: boolean | undefined;
|
|
29
|
+
diceRange: [number, number];
|
|
30
|
+
diceCount: number;
|
|
31
|
+
difficultyText: [number, string][];
|
|
32
|
+
extraPointsPerLevel: number;
|
|
33
|
+
successOnRollsBelowThreshold: boolean;
|
|
34
|
+
showDifficultyText: boolean;
|
|
35
|
+
showDifficultyNumber: boolean;
|
|
36
|
+
showDifficultyWithoutModifiers: boolean;
|
|
37
|
+
};
|
|
38
|
+
skillChecks: Record<string, {
|
|
39
|
+
winsNeeded?: number | undefined;
|
|
40
|
+
hideAfterRoll?: boolean | undefined;
|
|
41
|
+
repeatable?: boolean | undefined;
|
|
42
|
+
skill: string;
|
|
43
|
+
difficulty: number;
|
|
44
|
+
}>;
|
|
45
|
+
};
|
|
46
|
+
export declare function itemsConfig(): {
|
|
47
|
+
items: Record<string, {
|
|
48
|
+
category?: string | undefined;
|
|
49
|
+
onUse?: {
|
|
50
|
+
label: string;
|
|
51
|
+
action: string;
|
|
52
|
+
} | undefined;
|
|
53
|
+
tag?: string | undefined;
|
|
54
|
+
showIfEmpty?: boolean | undefined;
|
|
55
|
+
name: string;
|
|
56
|
+
description: string;
|
|
57
|
+
icon: string;
|
|
58
|
+
}>;
|
|
59
|
+
categories: {
|
|
60
|
+
title: string;
|
|
61
|
+
id: string;
|
|
62
|
+
}[];
|
|
63
|
+
};
|
|
64
|
+
export declare function questsConfig(): {
|
|
65
|
+
quests: Record<string, {
|
|
66
|
+
category?: string | undefined;
|
|
67
|
+
title: string;
|
|
68
|
+
description: string;
|
|
69
|
+
objectives: Record<string, {
|
|
70
|
+
hidden?: boolean | undefined;
|
|
71
|
+
description: string;
|
|
72
|
+
}>;
|
|
73
|
+
}>;
|
|
74
|
+
categories: {
|
|
75
|
+
title: string;
|
|
76
|
+
id: string;
|
|
77
|
+
}[];
|
|
78
|
+
};
|
|
79
|
+
export declare function screensConfig(): {
|
|
80
|
+
screens: Record<string, {
|
|
81
|
+
buttons?: (string | ({
|
|
82
|
+
text?: string | undefined;
|
|
83
|
+
anchor?: {
|
|
84
|
+
x: number;
|
|
85
|
+
y: number;
|
|
86
|
+
} | undefined;
|
|
87
|
+
cssClass?: string | undefined;
|
|
88
|
+
action?: string | undefined;
|
|
89
|
+
tag?: string | undefined;
|
|
90
|
+
background?: string | undefined;
|
|
91
|
+
actionType?: string | undefined;
|
|
92
|
+
scriptClickable?: boolean | undefined;
|
|
93
|
+
enabled: boolean;
|
|
94
|
+
position: {
|
|
95
|
+
width?: number | undefined;
|
|
96
|
+
height?: number | undefined;
|
|
97
|
+
left: number;
|
|
98
|
+
top: number;
|
|
99
|
+
};
|
|
100
|
+
} & {
|
|
101
|
+
id: string;
|
|
102
|
+
}))[] | undefined;
|
|
103
|
+
background: string;
|
|
104
|
+
}>;
|
|
105
|
+
};
|
|
106
|
+
export declare function buttonsConfig(): {
|
|
107
|
+
clickableDuringScriptsByDefault?: boolean | undefined;
|
|
108
|
+
buttons: Record<string, {
|
|
109
|
+
text?: string | undefined;
|
|
110
|
+
anchor?: {
|
|
111
|
+
x: number;
|
|
112
|
+
y: number;
|
|
113
|
+
} | undefined;
|
|
114
|
+
cssClass?: string | undefined;
|
|
115
|
+
action?: string | undefined;
|
|
116
|
+
tag?: string | undefined;
|
|
117
|
+
background?: string | undefined;
|
|
118
|
+
actionType?: string | undefined;
|
|
119
|
+
scriptClickable?: boolean | undefined;
|
|
120
|
+
enabled: boolean;
|
|
121
|
+
position: {
|
|
122
|
+
width?: number | undefined;
|
|
123
|
+
height?: number | undefined;
|
|
124
|
+
left: number;
|
|
125
|
+
top: number;
|
|
126
|
+
};
|
|
127
|
+
}>;
|
|
128
|
+
};
|
|
129
|
+
export declare function tooltipsConfig(): {
|
|
130
|
+
options: {
|
|
131
|
+
delay?: number | undefined;
|
|
132
|
+
screenEdgesMinimumMargin?: number | undefined;
|
|
133
|
+
width: number;
|
|
134
|
+
keywordsPrefix: string;
|
|
135
|
+
};
|
|
136
|
+
tooltips: {
|
|
137
|
+
title: string;
|
|
138
|
+
description: string;
|
|
139
|
+
keywords: string[];
|
|
140
|
+
}[];
|
|
141
|
+
};
|
|
142
|
+
export declare function charactersConfig(): {
|
|
143
|
+
config: {
|
|
144
|
+
imagesPath: string;
|
|
145
|
+
};
|
|
146
|
+
characters: Record<string, {
|
|
147
|
+
style?: {
|
|
148
|
+
color?: string | undefined;
|
|
149
|
+
boxCss?: Record<string, any> | undefined;
|
|
150
|
+
nameCss?: Record<string, any> | undefined;
|
|
151
|
+
textCss?: Record<string, any> | undefined;
|
|
152
|
+
} | undefined;
|
|
153
|
+
sprites?: Record<string, string> | undefined;
|
|
154
|
+
name: string;
|
|
155
|
+
}>;
|
|
156
|
+
};
|
|
157
|
+
export declare function getScreenConfig(screen: string): ScreenConfig;
|
|
158
|
+
export declare function getTooltipConfig(keyword: string): {
|
|
159
|
+
title: string;
|
|
160
|
+
description: string;
|
|
161
|
+
keywords: string[];
|
|
162
|
+
} | null;
|
|
163
|
+
export declare function getSkillConfig(id: string): {
|
|
164
|
+
hidden?: boolean | undefined;
|
|
165
|
+
name: string;
|
|
166
|
+
description: string;
|
|
167
|
+
startingLevel: number;
|
|
168
|
+
icon: string;
|
|
169
|
+
};
|
|
170
|
+
export declare function getSkillCheckConfig(id: string): {
|
|
171
|
+
winsNeeded?: number | undefined;
|
|
172
|
+
hideAfterRoll?: boolean | undefined;
|
|
173
|
+
repeatable?: boolean | undefined;
|
|
174
|
+
skill: string;
|
|
175
|
+
difficulty: number;
|
|
176
|
+
};
|
|
177
|
+
export declare function skillCheckConfigExists(id: string): boolean;
|
|
178
|
+
export declare function getImageUrl(imageKeyOrUrl: string): string;
|
|
179
|
+
export declare function getAssetUrl(assetPath: string): string;
|
|
180
|
+
export declare function getSplitConfigUrl(basePath: string, url: string): string;
|
|
181
|
+
export declare function getDataUrl(dataPath: string): string;
|
|
182
|
+
export declare function getButtonConfig(button: string): ButtonConfig;
|
|
183
|
+
export declare function getItemConfig(id: string): {
|
|
184
|
+
category?: string | undefined;
|
|
185
|
+
onUse?: {
|
|
186
|
+
label: string;
|
|
187
|
+
action: string;
|
|
188
|
+
} | undefined;
|
|
189
|
+
tag?: string | undefined;
|
|
190
|
+
showIfEmpty?: boolean | undefined;
|
|
191
|
+
name: string;
|
|
192
|
+
description: string;
|
|
193
|
+
icon: string;
|
|
194
|
+
};
|
|
195
|
+
export declare function getAchievementsConfig(): {
|
|
196
|
+
secretAchievements?: {
|
|
197
|
+
censorDescription?: boolean | undefined;
|
|
198
|
+
censorName?: boolean | undefined;
|
|
199
|
+
hideUntilObtained?: boolean | undefined;
|
|
200
|
+
} | undefined;
|
|
201
|
+
categories: {
|
|
202
|
+
title: string;
|
|
203
|
+
id: string;
|
|
204
|
+
}[];
|
|
205
|
+
defaultAchievementIcon: string;
|
|
206
|
+
achievements: Record<string, {
|
|
207
|
+
category?: string | undefined;
|
|
208
|
+
secret?: boolean | undefined;
|
|
209
|
+
name: string;
|
|
210
|
+
description: string;
|
|
211
|
+
icon: string;
|
|
212
|
+
}>;
|
|
213
|
+
notifyNewAchievements: boolean;
|
|
214
|
+
};
|
|
215
|
+
export declare function getAchievementConfig(id: string): {
|
|
216
|
+
category?: string | undefined;
|
|
217
|
+
secret?: boolean | undefined;
|
|
218
|
+
name: string;
|
|
219
|
+
description: string;
|
|
220
|
+
icon: string;
|
|
221
|
+
};
|
|
222
|
+
export declare function getQuestConfig(questId: string): {
|
|
223
|
+
category?: string | undefined;
|
|
224
|
+
title: string;
|
|
225
|
+
description: string;
|
|
226
|
+
objectives: Record<string, {
|
|
227
|
+
hidden?: boolean | undefined;
|
|
228
|
+
description: string;
|
|
229
|
+
}>;
|
|
230
|
+
};
|
|
231
|
+
export declare function getObjectiveConfig(quest: string, objectiveId: string): {
|
|
232
|
+
hidden?: boolean | undefined;
|
|
233
|
+
description: string;
|
|
234
|
+
};
|
|
235
|
+
export declare function getDialogPanelWidth(): number;
|
package/dist/constants.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export declare
|
|
9
|
-
export declare const
|
|
10
|
-
export declare const
|
|
11
|
-
export declare const
|
|
1
|
+
import { ScreenConfig } from './config/screens-config';
|
|
2
|
+
export declare const PRE_SIGNAL = "###_--_~=:;";
|
|
3
|
+
export declare const JUMP_SIGNAL = "###_--_~=:;_JUMP";
|
|
4
|
+
export declare const RETURN_SIGNAL = "###_--_~=:;_RETURN";
|
|
5
|
+
export declare const OK_SIGNAL = "###_--_~=:;_OK";
|
|
6
|
+
export declare const STOP_SIGNAL = "###_--_~=:;_STOP";
|
|
7
|
+
export type ReturnSignal = typeof JUMP_SIGNAL | typeof RETURN_SIGNAL | typeof OK_SIGNAL | typeof STOP_SIGNAL;
|
|
8
|
+
export declare function isReturnSignal(s: string): s is ReturnSignal;
|
|
9
|
+
export declare const VERSION: string;
|
|
10
|
+
export declare const BUILD_DATE: Date;
|
|
11
|
+
export declare const DEFAULT_DIALOG_WIDTH = 400;
|
|
12
|
+
export declare const DEFAULT_TEXT_SPEED = 20;
|
|
13
|
+
export declare const EMPTY_SCREEN = "@empty";
|
|
14
|
+
export declare const defaultScreenConfig: ScreenConfig;
|
package/dist/demo/demo.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export {};
|
|
1
|
+
export {};
|
package/dist/dialog-box.vue.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
|
-
import { DialogBoxParameters } from './types/dialog-box-types';
|
|
3
|
-
export interface TextAnimation {
|
|
4
|
-
text: string;
|
|
5
|
-
index: number;
|
|
6
|
-
startTime: number;
|
|
7
|
-
timer: NodeJS.Timer | null;
|
|
8
|
-
skippedChars: number;
|
|
9
|
-
tags: RegExpExecArray[];
|
|
10
|
-
finished: boolean;
|
|
11
|
-
}
|
|
12
|
-
declare function keyboardEvent(e: KeyboardEvent): void;
|
|
13
|
-
declare const _default: import("vue").DefineComponent<{
|
|
14
|
-
options: {
|
|
15
|
-
type: import("vue").PropType<DialogBoxParameters>;
|
|
16
|
-
required: true;
|
|
17
|
-
};
|
|
18
|
-
active: {
|
|
19
|
-
type: import("vue").PropType<boolean>;
|
|
20
|
-
required: true;
|
|
21
|
-
};
|
|
22
|
-
}, {
|
|
23
|
-
keyboardEvent: typeof keyboardEvent;
|
|
24
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
-
options: {
|
|
26
|
-
type: import("vue").PropType<DialogBoxParameters>;
|
|
27
|
-
required: true;
|
|
28
|
-
};
|
|
29
|
-
active: {
|
|
30
|
-
type: import("vue").PropType<boolean>;
|
|
31
|
-
required: true;
|
|
32
|
-
};
|
|
33
|
-
}>>, {}>;
|
|
34
|
-
export default _default;
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import { DialogBoxParameters } from './types/dialog-box-types';
|
|
3
|
+
export interface TextAnimation {
|
|
4
|
+
text: string;
|
|
5
|
+
index: number;
|
|
6
|
+
startTime: number;
|
|
7
|
+
timer: NodeJS.Timer | null;
|
|
8
|
+
skippedChars: number;
|
|
9
|
+
tags: RegExpExecArray[];
|
|
10
|
+
finished: boolean;
|
|
11
|
+
}
|
|
12
|
+
declare function keyboardEvent(e: KeyboardEvent): void;
|
|
13
|
+
declare const _default: import("vue").DefineComponent<{
|
|
14
|
+
options: {
|
|
15
|
+
type: import("vue").PropType<DialogBoxParameters>;
|
|
16
|
+
required: true;
|
|
17
|
+
};
|
|
18
|
+
active: {
|
|
19
|
+
type: import("vue").PropType<boolean>;
|
|
20
|
+
required: true;
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
keyboardEvent: typeof keyboardEvent;
|
|
24
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
+
options: {
|
|
26
|
+
type: import("vue").PropType<DialogBoxParameters>;
|
|
27
|
+
required: true;
|
|
28
|
+
};
|
|
29
|
+
active: {
|
|
30
|
+
type: import("vue").PropType<boolean>;
|
|
31
|
+
required: true;
|
|
32
|
+
};
|
|
33
|
+
}>>, {}>;
|
|
34
|
+
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: NarratScript[];
|
|
2
|
-
export default _default;
|
|
1
|
+
declare const _default: NarratScript[];
|
|
2
|
+
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: any[];
|
|
2
|
-
export default _default;
|
|
1
|
+
declare const _default: any[];
|
|
2
|
+
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: NarratScript[];
|
|
2
|
-
export default _default;
|
|
1
|
+
declare const _default: NarratScript[];
|
|
2
|
+
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: any[];
|
|
2
|
-
export default _default;
|
|
1
|
+
declare const _default: any[];
|
|
2
|
+
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import ModalWindow from '../components/utils/modal-window.vue';
|
|
2
|
-
export { ModalWindow };
|
|
1
|
+
import ModalWindow from '../components/utils/modal-window.vue';
|
|
2
|
+
export { ModalWindow };
|
package/dist/exports/config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { getConfig } from '../config';
|
|
2
|
-
export type { Config } from '../config/config-output';
|
|
3
|
-
export * from '../config/config-input';
|
|
4
|
-
export { audioConfig, skillsConfig, itemsConfig, questsConfig, screensConfig, buttonsConfig, tooltipsConfig, charactersConfig, getSkillConfig, getImageUrl, getAssetUrl, getSplitConfigUrl, getDataUrl, getButtonConfig, getScreenConfig, getItemConfig, getQuestConfig, getObjectiveConfig, } from '../config';
|
|
1
|
+
export { getConfig } from '../config';
|
|
2
|
+
export type { Config } from '../config/config-output';
|
|
3
|
+
export * from '../config/config-input';
|
|
4
|
+
export { audioConfig, skillsConfig, itemsConfig, questsConfig, screensConfig, buttonsConfig, tooltipsConfig, charactersConfig, getSkillConfig, getImageUrl, getAssetUrl, getSplitConfigUrl, getDataUrl, getButtonConfig, getScreenConfig, getItemConfig, getQuestConfig, getObjectiveConfig, } from '../config';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { aspectRatioFit } from '../utils/helpers';
|
|
2
|
-
export { aspectRatioFit };
|
|
1
|
+
import { aspectRatioFit } from '../utils/helpers';
|
|
2
|
+
export { aspectRatioFit };
|
package/dist/exports/events.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { inputEvents } from '../utils/InputsListener';
|
|
1
|
+
export { inputEvents } from '../utils/InputsListener';
|
package/dist/exports/inputs.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type { ButtonKeybind, AnalogKeybind, ButtonAction, AnalogAction, ButtonActionState, AnalogDirectionState, AnalogActionState, Action, Inputs, } from '../inputs/Inputs';
|
|
1
|
+
export type { ButtonKeybind, AnalogKeybind, ButtonAction, AnalogAction, ButtonActionState, AnalogDirectionState, AnalogActionState, Action, Inputs, } from '../inputs/Inputs';
|
package/dist/exports/others.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { registerMenuButton } from '../menu-buttons/menu-buttons';
|
|
1
|
+
export { registerMenuButton } from '../menu-buttons/menu-buttons';
|