@vnejs/docs 0.2.76 → 0.2.78
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 +3 -2
- package/architecture/build.md +3 -1
- package/architecture/bundles.md +1 -1
- package/architecture/configs.md +2 -2
- package/architecture/contracts.md +1 -1
- package/architecture/dependencies.md +7 -3
- package/architecture/model.md +1 -0
- package/architecture/modules.md +1 -1
- package/architecture/packages.md +3 -3
- package/architecture/shared.md +36 -0
- package/changelog/0.2.77.md +3 -0
- package/changelog/0.2.78.md +19 -0
- package/changelog/README.md +2 -0
- package/manifest.json +1 -0
- package/package.json +1 -1
- package/plugins/views.screens/gamemenu.md +6 -2
- package/plugins/views.screens/mainmenu.md +5 -1
package/README.md
CHANGED
|
@@ -34,10 +34,11 @@ The package has two scenario entries. Compare them and pick one. Both link to `p
|
|
|
34
34
|
|
|
35
35
|
| Directory | Role |
|
|
36
36
|
| --------------------------------------------------- | ---------------------------------------- |
|
|
37
|
-
| [`packages/`](./architecture/packages.md) | Runtime: `
|
|
37
|
+
| [`packages/`](./architecture/packages.md) | Runtime: `registry`, `observer`, `core`, … |
|
|
38
38
|
| [`modules_extensions/`](./architecture/modules.md) | Module base classes |
|
|
39
39
|
| [`configs/`](./architecture/configs.md) | Shared TypeScript configs |
|
|
40
40
|
| [`contracts/`](./architecture/contracts.md) | Public plugin API |
|
|
41
|
+
| [`shared/`](./architecture/shared.md) | Plugin setup presets |
|
|
41
42
|
| [`plugins/`](./architecture/plugins.md) | Behavior on the bus |
|
|
42
43
|
| [`compatibility/`](./architecture/compatibility.md) | Link between plugins |
|
|
43
44
|
| [`bundles/`](./architecture/bundles.md) | Plugin set for a game |
|
|
@@ -48,4 +49,4 @@ The package has two scenario entries. Compare them and pick one. Both link to `p
|
|
|
48
49
|
| [`backends/`](./architecture/backends.md) | Workers: Steam token and label JSON |
|
|
49
50
|
| [`vs_code_extensions/`](./architecture/editor.md) | `.vne` highlighting in the editor |
|
|
50
51
|
|
|
51
|
-
A game imports one `bundles/` package and gets `VneCore`, the engine entry.
|
|
52
|
+
A game imports one `bundles/` package and gets `VneCore`, the engine entry. Menu factories come from `@vnejs/shared.*` in the game script.
|
package/architecture/build.md
CHANGED
|
@@ -7,6 +7,7 @@ flowchart TD
|
|
|
7
7
|
PKG[packages/]
|
|
8
8
|
ME[modules_extensions/]
|
|
9
9
|
CT[contracts/]
|
|
10
|
+
SH[shared/]
|
|
10
11
|
PL[plugins/]
|
|
11
12
|
CP[compatibility/]
|
|
12
13
|
BD[bundles/]
|
|
@@ -22,6 +23,7 @@ flowchart TD
|
|
|
22
23
|
PKG --> ME --> PL
|
|
23
24
|
CT --> PL
|
|
24
25
|
CT --> CP
|
|
26
|
+
CT --> SH
|
|
25
27
|
PL --> BD
|
|
26
28
|
CP --> BD
|
|
27
29
|
BD --> EN
|
|
@@ -31,7 +33,7 @@ flowchart TD
|
|
|
31
33
|
ART --> PLAY[Browser / Electron]
|
|
32
34
|
```
|
|
33
35
|
|
|
34
|
-
1. `bundles/` регистрирует `plugins/` и `compatibility/` в `VNE`.
|
|
36
|
+
1. `bundles/` регистрирует `plugins/` и `compatibility/` в `VNE`. Фабрики из `shared/` импортирует скрипт игры.
|
|
35
37
|
2. `cli/` собирает сценарий в JSON и клиент в `dist/`.
|
|
36
38
|
3. `new VneCore().init()` — модули, media, lifecycle до `start`.
|
|
37
39
|
4. Игра живёт на событиях шины; cross-plugin связи — через `compatibility/` из `bundles/`.
|
package/architecture/bundles.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
- Определяет **набор возможностей** для `games/`.
|
|
6
6
|
- Экспортирует **`VneCore`**.
|
|
7
|
-
-
|
|
7
|
+
- Фабрики из **`@vnejs/shared.*`** бандл не импортирует и не реэкспортирует. Их импортирует скрипт игры.
|
|
8
8
|
|
|
9
9
|
```mermaid
|
|
10
10
|
flowchart BT
|
package/architecture/configs.md
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
| Пакет | Назначение |
|
|
6
6
|
| ------------------------------ | ------------------------------------------------------------------------------------- |
|
|
7
|
-
| **`@vnejs/configs.ts-common`** | tsconfig для `plugins/`, `contracts/`, `packages/`, `modules_extensions/`, `helpers/` |
|
|
7
|
+
| **`@vnejs/configs.ts-common`** | tsconfig для `plugins/`, `contracts/`, `packages/`, `modules_extensions/`, `helpers/`, `shared/` |
|
|
8
8
|
| **`@vnejs/configs.ts-uis`** | tsconfig для `uis/react/` и view-кода `games/` (JSX, React-типы) |
|
|
9
9
|
| **`@vnejs/configs.vitest`** | Общий Vitest-конфиг (`create-config.js`, `setup.js`) для пакетов с тестами |
|
|
10
10
|
|
|
11
11
|
```mermaid
|
|
12
12
|
flowchart LR
|
|
13
|
-
TC[configs.ts-common] --> PL[plugins/ / contracts/ / packages/]
|
|
13
|
+
TC[configs.ts-common] --> PL[plugins/ / contracts/ / packages/ / shared/]
|
|
14
14
|
TU[configs.ts-uis] --> UI[uis/react/]
|
|
15
15
|
TU --> GM[games/]
|
|
16
16
|
TV[configs.vitest] --> TEST[пакеты с vitest]
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
|
|
13
13
|
Контракт расширяет типы через `declare module`:
|
|
14
14
|
|
|
15
|
-
- `@vnejs/
|
|
15
|
+
- `@vnejs/registry` — `VnePluginEventsMap`, `VnePluginConstantsMap`, …
|
|
16
16
|
- `@vnejs/module` — `ModuleGlobalState`, `ModuleShared`
|
|
17
17
|
- другие контракты — при cross-cutting типах
|
|
18
18
|
|
|
@@ -7,6 +7,8 @@ flowchart TD
|
|
|
7
7
|
G -.->|HTTP| BE[backends/]
|
|
8
8
|
B --> P[plugins/]
|
|
9
9
|
B --> C[compatibility/]
|
|
10
|
+
G --> SH[shared/]
|
|
11
|
+
SH --> CT[contracts/]
|
|
10
12
|
P --> CT[contracts/]
|
|
11
13
|
C --> CT
|
|
12
14
|
P --> H[helpers/]
|
|
@@ -24,11 +26,12 @@ flowchart TD
|
|
|
24
26
|
|
|
25
27
|
| От | К | Смысл |
|
|
26
28
|
| ---------------- | ----------------------------------- | -------------------------------------------------------- |
|
|
27
|
-
| `games/` | `bundles/`, `cli/`
|
|
29
|
+
| `games/` | `bundles/`, `cli/`, `shared/` | Сборка через `cli/`. Фабрики `shared/` импортирует скрипт, без записи в `package.json` |
|
|
28
30
|
| `games/` | `backends/` | HTTP к воркерам токена и меток, без импорта пакетов |
|
|
29
|
-
| `bundles/` | `plugins/`, `compatibility/` |
|
|
31
|
+
| `bundles/` | `plugins/`, `compatibility/` | Набор плагинов. Фабрики `shared/` не реэкспортирует |
|
|
32
|
+
| `shared/` | `contracts/` | Фабрики настройки читают события, не реализации |
|
|
30
33
|
| `plugins/` | `contracts/` | Реализация следует объявленному API |
|
|
31
|
-
| `plugins/` | `modules_extensions/` → `packages/` | Модули наследуют базы, базы опираются на
|
|
34
|
+
| `plugins/` | `modules_extensions/` → `packages/` | Модули наследуют базы, базы опираются на registry/observer |
|
|
32
35
|
| `compatibility/` | `contracts/` (2+) | Связка по событиям, без импорта реализаций |
|
|
33
36
|
| `plugins/` | `helpers/`, `uis/` | Горизонтальные утилиты и UI |
|
|
34
37
|
| `plugins/` | — другой `plugins/` | **Напрямую не зависит** |
|
|
@@ -42,6 +45,7 @@ flowchart TD
|
|
|
42
45
|
| **`modules_extensions/`** | Базовые классы модулей |
|
|
43
46
|
| **`configs/`** | Общие tsconfig |
|
|
44
47
|
| **`contracts/`** | API плагина: события, типы |
|
|
48
|
+
| **`shared/`** | Пресеты настройки плагинов |
|
|
45
49
|
| **`plugins/`** | Реализация на шине |
|
|
46
50
|
| **`compatibility/`** | Opt-in связка двух плагинов |
|
|
47
51
|
| **`bundles/`** | Набор способностей для игры |
|
package/architecture/model.md
CHANGED
|
@@ -37,6 +37,7 @@ flowchart LR
|
|
|
37
37
|
```
|
|
38
38
|
plugins/core/system/ → @vnejs/plugins.core.system
|
|
39
39
|
contracts/text/text/ → @vnejs/contracts.text
|
|
40
|
+
shared/views.screens/gamemenu/ → @vnejs/shared.views.screens.gamemenu
|
|
40
41
|
compatibility/text/scenario.autoread/ → @vnejs/compatibility.text-with-scenario.autoread
|
|
41
42
|
```
|
|
42
43
|
|
package/architecture/modules.md
CHANGED
|
@@ -83,5 +83,5 @@ flowchart TD
|
|
|
83
83
|
| | `packages/` | `modules_extensions/` |
|
|
84
84
|
| ----------------- | ------------------------ | ---------------------------- |
|
|
85
85
|
| Роль | Runtime и инфраструктура | Шаблоны для модулей плагинов |
|
|
86
|
-
| Регистрация в VNE | да (`
|
|
86
|
+
| Регистрация в VNE | да (`registry`, `core`) | нет |
|
|
87
87
|
| Наследование | — | `plugins/` наследуют базы |
|
package/architecture/packages.md
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
flowchart BT
|
|
9
9
|
CONST["constants"]
|
|
10
10
|
OBS["observer"]
|
|
11
|
-
SH["
|
|
11
|
+
SH["registry"]
|
|
12
12
|
SS["sources-set"]
|
|
13
13
|
SEM["semaphore"]
|
|
14
14
|
HELP["helpers/"]
|
|
@@ -27,7 +27,7 @@ flowchart BT
|
|
|
27
27
|
|
|
28
28
|
| Пакет | Назначение |
|
|
29
29
|
| ------------------------ | ----------------------------------------------------------------------------------------------------------------------- |
|
|
30
|
-
| **`@vnejs/
|
|
30
|
+
| **`@vnejs/registry`** | Реестр **`VNE`**, массив **`VNE_MODULES`**, **`regPlugin`** / **`regModule`**, типы для module augmentation |
|
|
31
31
|
| **`@vnejs/observer`** | **`Observer`** — pub/sub: `subscribe` / `emit` с `priority` (группы по возрастанию), `emitOne`, `emitReal`, `emitReals` |
|
|
32
32
|
| **`@vnejs/core`** | **`VneCore`**: модули из `VNE_MODULES`, lifecycle, загрузка `mods.json` / `media_info/`, `reset` |
|
|
33
33
|
| **`@vnejs/constants`** | Общие константы-заглушки (`EMPTY_OBJECT`, `EMPTY_ARRAY`) |
|
|
@@ -37,7 +37,7 @@ flowchart BT
|
|
|
37
37
|
|
|
38
38
|
### Принципы
|
|
39
39
|
|
|
40
|
-
- **`
|
|
40
|
+
- **`registry` + `observer`** — фундамент; почти все плагины и модули зависят от них.
|
|
41
41
|
- **`core`** — точка сборки runtime; `games/` создают `new VneCore()` после импорта `bundles/`.
|
|
42
42
|
- **`test-utils`** — только для тестов workspace-пакетов; не часть игрового runtime.
|
|
43
43
|
- Пакеты **не содержат** игровой логики и **не привязаны** к конкретному `bundles/`.
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# shared/
|
|
2
|
+
|
|
3
|
+
**Пресеты настройки плагинов** — функции, из которых игра собирает параметры. Не плагин, не контракт, не реализация на шине.
|
|
4
|
+
|
|
5
|
+
Имя: `shared/views.screens/gamemenu/` → **`@vnejs/shared.views.screens.gamemenu`**. Голое **`@vnejs/shared`** не используем: так раньше назывался реестр, сейчас это **`@vnejs/registry`**.
|
|
6
|
+
|
|
7
|
+
### Состав
|
|
8
|
+
|
|
9
|
+
| Пакет | Назначение |
|
|
10
|
+
| ---------------------------------------- | --------------------------------------------------------------------------------------------------- |
|
|
11
|
+
| **`@vnejs/shared.views.screens.gamemenu`** | Функции пунктов игрового меню. Каждая возвращает `GameMenuItemFactory`. `locKey` обязателен. Необязательные `cbBefore` и `cbAfter` вызываются вокруг клика. |
|
|
12
|
+
| **`@vnejs/shared.views.screens.mainmenu`** | Функции пунктов главного меню. Каждая возвращает `MainMenuItemFactory`. `locKey` обязателен. Необязательные `cbBefore` и `cbAfter` вызываются вокруг клика. |
|
|
13
|
+
|
|
14
|
+
```mermaid
|
|
15
|
+
flowchart TD
|
|
16
|
+
G[games/]
|
|
17
|
+
B[bundles/]
|
|
18
|
+
SH[shared/]
|
|
19
|
+
P[plugins/]
|
|
20
|
+
CT[contracts/]
|
|
21
|
+
|
|
22
|
+
G --> B
|
|
23
|
+
G --> SH
|
|
24
|
+
B --> P
|
|
25
|
+
P --> CT
|
|
26
|
+
SH --> CT
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
### Принципы
|
|
30
|
+
|
|
31
|
+
- Пакет импортирует **`@vnejs/registry`** и нужные **`contracts/`**. Реализации из **`plugins/`** не импортирует.
|
|
32
|
+
- Один пакет может зависеть от нескольких контрактов: клик пункта связывает события разных плагинов.
|
|
33
|
+
- Функция возвращает фабрику `(module) => item`. Она ничего не пишет в `VNE.PARAMS`.
|
|
34
|
+
- Бандл регистрирует плагин и не реэкспортирует фабрики.
|
|
35
|
+
- Игра импортирует `@vnejs/shared.*` в скрипте и сама собирает `PARAMS.ITEMS`. В `package.json` игры этой зависимости нет: пакет резолвится из workspace.
|
|
36
|
+
- **`plugins/`** пакеты **`shared/`** не импортируют.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# 0.2.78
|
|
2
|
+
|
|
3
|
+
- `shared/views.screens/gamemenu` — `createGameMenuExitItem`, `createGameMenuSettingsItem`, `createGameMenuSaveItem`, `createGameMenuLoadItem`, `createGameMenuQuickSaveItem`, `createGameMenuQuickLoadItem`, and `createGameMenuBackItem` each take `locKey` and return a `GameMenuItemFactory`. `@vnejs/bundles.vn.base` imports the package and re-exports the functions. `PARAMS.GAMEMENU.ITEMS` is unchanged.
|
|
4
|
+
- `shared/views.screens/mainmenu` — `createMainMenuContinueItem`, `createMainMenuNewGameItem`, `createMainMenuLoadItem`, `createMainMenuGalleryItem`, `createMainMenuSettingsItem`, `createMainMenuAuthorsItem`, and `createMainMenuExitItem` each take `locKey` and return a `MainMenuItemFactory`. `createMainMenuNewGameItem` also takes `label`. `@vnejs/bundles.vn.base` re-exports the functions. `PARAMS.MAINMENU.ITEMS` is unchanged.
|
|
5
|
+
- `shared/views.screens/gamemenu` — each factory also takes optional `cbBefore` and `cbAfter`. They run around the click. `requireDefined` throws when any passed `VNE` namespace is `undefined`.
|
|
6
|
+
- `shared/views.screens/mainmenu` — each factory also takes optional `cbBefore` and `cbAfter`. `createMainMenuNewGameItem` no longer emits `EVENTS.METRIC.GOAL` `NEW_GAME_CLICK`. Pass that call through `cbAfter`.
|
|
7
|
+
- `helpers/require-namespace-defined` — `requireNamespaceDefined(value, namespace)` throws when `value` is `undefined`. The message names `namespace`, for example `SAVE_QUICK`.
|
|
8
|
+
- `shared/views.screens/gamemenu` — factories call `requireNamespaceDefined`. `cbBefore` and `cbAfter` are not awaited.
|
|
9
|
+
- `shared/views.screens/mainmenu` — factories call `requireNamespaceDefined`. `cbBefore` and `cbAfter` are not awaited.
|
|
10
|
+
- `shared/views.screens/gamemenu` — `createGameMenuExitItem` leaves without a confirm dialog. It emits `EVENTS.SCENARIO.LABEL_GET`, `EVENTS.SAVE_CONTINUE.MAKE`, and `EVENTS.STACK.CLEAR`. The dialog is `createGameMenuExitConfirmItem`, which requires `locKeyConfirm`, `locKeyConfirmAccept`, and `locKeyConfirmDecline`. `createGameMenuQuickLoadItem` loads without `EVENTS.LOADING.EMIT`. The loading screen call is `createGameMenuQuickLoadWithLoadingItem`.
|
|
11
|
+
- `shared/views.screens/mainmenu` — `createMainMenuContinueItem` loads without `EVENTS.LOADING.EMIT`. The loading screen call is `createMainMenuContinueWithLoadingItem`. `createMainMenuExitConfirmItem` requires `locKeyConfirm`, `locKeyConfirmAccept`, and `locKeyConfirmDecline`. Its accept handler emits `EVENTS.SYSTEM.CLOSE`.
|
|
12
|
+
- `views.screens/gamemenu` — `GameMenuItem.onClick` is optional and takes no arguments, same as `MainMenuItem.onClick`. `GameMenuItemOnClickContext` is removed. `GameMenuItemFactory` still takes `module` and the item closes over it. `CLICK` calls `onClick` with no argument.
|
|
13
|
+
- `views.screens/gamemenu` — `CONST.GAMEMENU.SOURCE` is `gameMenu`. `createGameMenuQuickLoadWithLoadingItem` passes it to `EVENTS.LOADING.EMIT`.
|
|
14
|
+
- `views.screens/mainmenu` — `CONST.MAINMENU.SOURCE` is `mainMenu`. `createMainMenuContinueWithLoadingItem` passes it to `EVENTS.LOADING.EMIT`.
|
|
15
|
+
- `shared/views.screens/gamemenu` — `createGameMenuExitItem` and `createGameMenuExitConfirmItem` take optional `isSaveContinue`. The default is `false`. When it is `true`, the exit emits `EVENTS.SAVE_CONTINUE.MAKE`.
|
|
16
|
+
- `bundles/` — menu factories are not re-exported. A game script imports `@vnejs/shared.views.screens.gamemenu` and `@vnejs/shared.views.screens.mainmenu` directly. The game `package.json` does not list those packages.
|
|
17
|
+
- `shared/views.screens/gamemenu` — each factory takes optional `isDisabled` and `isHided` and copies them onto the item. `createGameMenuQuickLoadItem` and `createGameMenuQuickLoadWithLoadingItem` stay disabled when there is no quick save.
|
|
18
|
+
- `shared/views.screens/mainmenu` — each factory takes optional `isDisabled` and `isHided` and copies them onto the item. `createMainMenuContinueItem` and `createMainMenuContinueWithLoadingItem` stay disabled when there is no continue save.
|
|
19
|
+
- `views.screens/mainmenu` — `CLICK` skips an item when `MainMenuItem.isDisabled` or `MainMenuItem.isHided` is set.
|
package/changelog/README.md
CHANGED
package/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -4,6 +4,8 @@ Package: `@vnejs/plugins.views.screens.gamemenu` · namespace: `GAMEMENU`
|
|
|
4
4
|
|
|
5
5
|
Pause game menu with a list of configurable items.
|
|
6
6
|
|
|
7
|
+
Item presets live in `@vnejs/shared.views.screens.gamemenu`. Each function returns a `GameMenuItemFactory` and requires `locKey`. Optional `cbBefore` and `cbAfter` run around the click. Optional `isDisabled` and `isHided` are copied onto the item. `createGameMenuQuickLoadItem` and `createGameMenuQuickLoadWithLoadingItem` stay disabled when there is no quick save, even if `isDisabled` is `false`. `createGameMenuExitConfirmItem` also requires `locKeyConfirm`, `locKeyConfirmAccept`, and `locKeyConfirmDecline`. Optional `isSaveContinue` defaults to `false`. When it is `true`, accept emits `EVENTS.SAVE_CONTINUE.MAKE`. `createGameMenuExitItem` leaves without that dialog and uses the same flag. `createGameMenuQuickLoadWithLoadingItem` opens the loading screen. `createGameMenuQuickLoadItem` loads without it. The game script imports those functions from this package. `PARAMS.GAMEMENU.ITEMS` is unchanged.
|
|
8
|
+
|
|
7
9
|
## Events
|
|
8
10
|
|
|
9
11
|
Handler payloads and results are typed through module augmentation of the contract (`VneEventPayloadMap` / `VneEventResultMap`). The types live in `@vnejs/contracts.views.screens.gamemenu`.
|
|
@@ -22,7 +24,9 @@ Handler payloads and results are typed through module augmentation of the contra
|
|
|
22
24
|
|
|
23
25
|
## Constants
|
|
24
26
|
|
|
25
|
-
|
|
27
|
+
| Key | Type | Meaning |
|
|
28
|
+
| -------- | -------- | -------------------------------------------- |
|
|
29
|
+
| `SOURCE` | `string` | Loading screen source name (`gameMenu`). |
|
|
26
30
|
|
|
27
31
|
## Parameters
|
|
28
32
|
|
|
@@ -34,7 +38,7 @@ None.
|
|
|
34
38
|
| `LOC_LABEL` | `string` | Locale label name (`gameMenu`). |
|
|
35
39
|
| `VIEW_PROPS` | `ViewProps` | Screen / PositionBox / TextControls props. |
|
|
36
40
|
|
|
37
|
-
Item (`GameMenuItem`): `locKey`, `onClick
|
|
41
|
+
Item (`GameMenuItem`): `locKey`, optional `onClick` / `isDisabled` / `isHided`. `onClick` takes no arguments. The factory closes over `module`, same as `MainMenuItem`.
|
|
38
42
|
|
|
39
43
|
## Settings
|
|
40
44
|
|
|
@@ -4,6 +4,8 @@ Package: `@vnejs/plugins.views.screens.mainmenu` · namespace: `MAINMENU`
|
|
|
4
4
|
|
|
5
5
|
Main menu with items, background rotation, and scenario label preload.
|
|
6
6
|
|
|
7
|
+
Item presets live in `@vnejs/shared.views.screens.mainmenu`. Each function returns a `MainMenuItemFactory` and requires `locKey`. `createMainMenuNewGameItem` also requires `label`. Optional `cbBefore` and `cbAfter` run around the click. Optional `isDisabled` and `isHided` are copied onto the item. `createMainMenuContinueItem` and `createMainMenuContinueWithLoadingItem` stay disabled when there is no continue save, even if `isDisabled` is `false`. `createMainMenuExitConfirmItem` also requires `locKeyConfirm`, `locKeyConfirmAccept`, and `locKeyConfirmDecline`. `createMainMenuContinueWithLoadingItem` opens the loading screen. `createMainMenuContinueItem` loads without it. The game script imports those functions from this package. `PARAMS.MAINMENU.ITEMS` is unchanged. `CLICK` skips an item when `isDisabled` or `isHided` is set.
|
|
8
|
+
|
|
7
9
|
`BACKGROUNDS` rotation: `mainmenu.backgrounds` on `SHOW` loads the next background at once and on `BACKGROUNDS_INTERVAL` emits `UPDATE_STATE` with `{ bgSrc }` and then `UPDATE_FAST`.
|
|
8
10
|
|
|
9
11
|
## Events
|
|
@@ -25,7 +27,9 @@ Handler payloads and results are typed through module augmentation of the contra
|
|
|
25
27
|
|
|
26
28
|
## Constants
|
|
27
29
|
|
|
28
|
-
|
|
30
|
+
| Key | Type | Meaning |
|
|
31
|
+
| -------- | -------- | -------------------------------------------- |
|
|
32
|
+
| `SOURCE` | `string` | Loading screen source name (`mainMenu`). |
|
|
29
33
|
|
|
30
34
|
## Parameters
|
|
31
35
|
|