@vnejs/docs 0.2.81 → 0.2.83
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 +16 -16
- package/architecture/bridge.md +5 -3
- package/architecture/configs.md +4 -4
- package/architecture/contracts.md +8 -6
- package/architecture/dependencies.md +14 -14
- package/architecture/model.md +1 -0
- package/changelog/0.2.82.md +4 -0
- package/changelog/README.md +1 -0
- package/package.json +1 -1
- package/plugins/controls/gamepad.md +1 -1
- package/plugins/core/scenario.md +7 -7
- package/plugins/core/system.md +18 -18
- package/plugins/scenario/qte.md +11 -4
- package/plugins/settings/volume.md +2 -2
- package/plugins/text/locs.md +12 -12
- package/plugins/text/smooth.md +6 -6
- package/plugins/views/cursor.md +3 -3
- package/plugins/views/settings.md +2 -2
- package/plugins/views.scenario/interface.controls.md +3 -3
- package/plugins/views.scenario/interface.fastforward.md +3 -3
- package/plugins/views.scenario/interface.md +1 -1
- package/plugins/views.screens/gallery.full.md +3 -3
- package/plugins/views.screens/gamemenu.md +3 -3
- package/plugins/views.screens/history.md +3 -3
- package/plugins/views.screens/mainmenu.md +3 -3
- package/plugins/views.screens/mainmenu.socials.md +3 -3
- package/plugins/views.screens/save.md +6 -6
- package/plugins/views.screens/settings.defaults.md +4 -4
- package/plugins/views.screens/settings.md +3 -3
package/README.md
CHANGED
|
@@ -32,21 +32,21 @@ The package has two scenario entries. Compare them and pick one. Both link to `p
|
|
|
32
32
|
|
|
33
33
|
## Monorepo map
|
|
34
34
|
|
|
35
|
-
| Directory
|
|
36
|
-
|
|
|
37
|
-
| [`packages/`](./architecture/packages.md)
|
|
38
|
-
| [`modules_extensions/`](./architecture/modules.md)
|
|
39
|
-
| [`configs/`](./architecture/configs.md)
|
|
40
|
-
| [`contracts/`](./architecture/contracts.md)
|
|
41
|
-
| [`shared/`](./architecture/shared.md)
|
|
42
|
-
| [`plugins/`](./architecture/plugins.md)
|
|
43
|
-
| [`bridge/`](./architecture/bridge.md)
|
|
44
|
-
| [`bundles/`](./architecture/bundles.md)
|
|
45
|
-
| [`helpers/`](./architecture/helpers.md)
|
|
46
|
-
| [`uis/`](./architecture/uis.md)
|
|
47
|
-
| [`cli/`](./architecture/cli.md)
|
|
48
|
-
| [`games/`](./architecture/games.md)
|
|
49
|
-
| [`backends/`](./architecture/backends.md)
|
|
50
|
-
| [`vs_code_extensions/`](./architecture/editor.md)
|
|
35
|
+
| Directory | Role |
|
|
36
|
+
| -------------------------------------------------- | ------------------------------------------ |
|
|
37
|
+
| [`packages/`](./architecture/packages.md) | Runtime: `registry`, `observer`, `core`, … |
|
|
38
|
+
| [`modules_extensions/`](./architecture/modules.md) | Module base classes |
|
|
39
|
+
| [`configs/`](./architecture/configs.md) | Shared TypeScript configs |
|
|
40
|
+
| [`contracts/`](./architecture/contracts.md) | Public API of plugins and bridge |
|
|
41
|
+
| [`shared/`](./architecture/shared.md) | Plugin setup presets |
|
|
42
|
+
| [`plugins/`](./architecture/plugins.md) | Behavior on the bus |
|
|
43
|
+
| [`bridge/`](./architecture/bridge.md) | Link between plugins |
|
|
44
|
+
| [`bundles/`](./architecture/bundles.md) | Plugin set for a game |
|
|
45
|
+
| [`helpers/`](./architecture/helpers.md) | Utils with no engine tie |
|
|
46
|
+
| [`uis/`](./architecture/uis.md) | React components for view plugins |
|
|
47
|
+
| [`cli/`](./architecture/cli.md) | Build the monorepo and the games |
|
|
48
|
+
| [`games/`](./architecture/games.md) | Game projects: scenario, entry, dist |
|
|
49
|
+
| [`backends/`](./architecture/backends.md) | Workers: Steam token and label JSON |
|
|
50
|
+
| [`vs_code_extensions/`](./architecture/editor.md) | `.vne` highlighting in the editor |
|
|
51
51
|
|
|
52
52
|
A game imports one `bundles/` package and gets `VneCore`, the engine entry. That bundle lists the matching `@vnejs/shared.*` package in `dependencies`. Menu factories still come from `@vnejs/shared.*` in the game script.
|
package/architecture/bridge.md
CHANGED
|
@@ -4,10 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
- One module. It extends `ModuleCore`. The class lives in `src/modules/`. `src/index.ts` only imports and calls `regPlugin`.
|
|
6
6
|
- In **`subscribe`** it listens to A and emits B.
|
|
7
|
-
-
|
|
8
|
-
-
|
|
7
|
+
- A contract in `contracts/bridge/` mirrors this package. `PLUGIN_NAME` is the namespace `BRIDGE_PLUGIN_{PLUGIN_NAME_1}_PLUGIN_{PLUGIN_NAME_2}`.
|
|
8
|
+
- **`regPlugin`** takes the shape from that contract. The shape is empty when the bridge adds no constants, events, params, or settings. When it owns some, it passes those fields. The choose↔qte bridge passes `constants` and extends `ChooseOption` with `qte`.
|
|
9
|
+
- It depends on its contract and on the contracts of the plugins it links. It does not import implementations from `plugins/`.
|
|
9
10
|
|
|
10
|
-
Naming: `@vnejs/bridge.plugins.{package-1}.plugins.{package-2}` → path `bridge/plugins.{package-1}/plugins.{package-2}/`. The two segments are the real plugin package names, without the `@vnejs/` scope.
|
|
11
|
+
Naming: `@vnejs/bridge.plugins.{package-1}.plugins.{package-2}` → path `bridge/plugins.{package-1}/plugins.{package-2}/`. The contract is `@vnejs/contracts.bridge.plugins.{package-1}.plugins.{package-2}` at `contracts/bridge/plugins.{package-1}/plugins.{package-2}/`. The two segments are the real plugin package names, without the `@vnejs/` scope.
|
|
11
12
|
|
|
12
13
|
```mermaid
|
|
13
14
|
flowchart LR
|
|
@@ -17,6 +18,7 @@ flowchart LR
|
|
|
17
18
|
OBS --> PB[plugins/ B]
|
|
18
19
|
|
|
19
20
|
PA -.->|"does not import"| PB
|
|
21
|
+
BR --> CT[contracts/bridge]
|
|
20
22
|
BR --> CTA[contracts/ A]
|
|
21
23
|
BR --> CTB[contracts/ B]
|
|
22
24
|
```
|
package/architecture/configs.md
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
**Shared build configs.** Reusable TypeScript settings. Not runtime.
|
|
4
4
|
|
|
5
|
-
| Package | Role
|
|
6
|
-
| ------------------------------ |
|
|
5
|
+
| Package | Role |
|
|
6
|
+
| ------------------------------ | ----------------------------------------------------------------------------------------------------------- |
|
|
7
7
|
| **`@vnejs/configs.ts-common`** | tsconfig for `plugins/`, `bridge/`, `contracts/`, `packages/`, `modules_extensions/`, `helpers/`, `shared/` |
|
|
8
|
-
| **`@vnejs/configs.ts-uis`** | tsconfig for `uis/react/` and view code in `games/` (JSX, React types)
|
|
9
|
-
| **`@vnejs/configs.vitest`** | Shared Vitest config (`create-config.js`, `setup.js`) for packages with tests
|
|
8
|
+
| **`@vnejs/configs.ts-uis`** | tsconfig for `uis/react/` and view code in `games/` (JSX, React types) |
|
|
9
|
+
| **`@vnejs/configs.vitest`** | Shared Vitest config (`create-config.js`, `setup.js`) for packages with tests |
|
|
10
10
|
|
|
11
11
|
```mermaid
|
|
12
12
|
flowchart LR
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
# contracts/
|
|
2
2
|
|
|
3
|
-
A **contract** is the public API of one plugin. It is a **specification**, not behavior.
|
|
3
|
+
A **contract** is the public API of one plugin or one bridge. It is a **specification**, not behavior.
|
|
4
4
|
|
|
5
5
|
### What a contract holds
|
|
6
6
|
|
|
7
7
|
- **`PLUGIN_NAME`** — the namespace in the `VNE` registry.
|
|
8
|
-
- **`CONSTANTS`**, **`SUBSCRIBE_EVENTS`**, **`PARAMS`**, **`SETTINGS_KEYS
|
|
8
|
+
- **`CONSTANTS`**, **`SUBSCRIBE_EVENTS`**, **`PARAMS`**, **`SETTINGS_KEYS`** — when that package owns them.
|
|
9
9
|
- **Types** — event payloads, the shape of global state, shared fields.
|
|
10
10
|
|
|
11
11
|
### TypeScript augmentation
|
|
@@ -18,13 +18,15 @@ A contract extends types through `declare module`:
|
|
|
18
18
|
|
|
19
19
|
### Principles
|
|
20
20
|
|
|
21
|
-
- One contract
|
|
22
|
-
- A contract **does not import** an implementation from `plugins/`.
|
|
23
|
-
-
|
|
21
|
+
- One contract matches **one plugin** in `plugins/` or **one bridge** in `bridge/` (1:1).
|
|
22
|
+
- A contract **does not import** an implementation from `plugins/` or `bridge/`.
|
|
23
|
+
- Plugin contracts mirror the `plugins/` taxonomy (`contracts/text/text/` for `plugins/text/text/`).
|
|
24
|
+
- Bridge contracts live under `contracts/bridge/` and mirror the `bridge/` path.
|
|
24
25
|
|
|
25
26
|
```mermaid
|
|
26
27
|
flowchart LR
|
|
27
28
|
CT[contracts/] -->|"declare module"| TS[VNE / Module types]
|
|
28
|
-
CT -->|"CONSTANTS, EVENTS, PARAMS"| REG[regPlugin when plugins/ load]
|
|
29
|
+
CT -->|"CONSTANTS, EVENTS, PARAMS"| REG[regPlugin when plugins/ or bridge/ load]
|
|
29
30
|
PL[plugins/] -->|"import"| CT
|
|
31
|
+
BR[bridge/] -->|"import"| CT
|
|
30
32
|
```
|
|
@@ -25,19 +25,19 @@ flowchart TD
|
|
|
25
25
|
|
|
26
26
|
**Dependency direction:**
|
|
27
27
|
|
|
28
|
-
| From
|
|
29
|
-
|
|
|
30
|
-
| `games/`
|
|
31
|
-
| `games/`
|
|
32
|
-
| `bundles/`
|
|
33
|
-
| `bundles/`
|
|
34
|
-
| `shared/`
|
|
35
|
-
| `plugins/`
|
|
36
|
-
| `plugins/`
|
|
37
|
-
| `bridge/`
|
|
38
|
-
| `plugins/`
|
|
39
|
-
| `plugins/`
|
|
40
|
-
| `configs/`
|
|
28
|
+
| From | To | Meaning |
|
|
29
|
+
| ---------- | ----------------------------------- | -------------------------------------------------------------------------------------------------------------------------- |
|
|
30
|
+
| `games/` | `bundles/`, `cli/`, `shared/` | Build goes through `cli/`. The game script imports `shared/` factories. The game `package.json` does not list them |
|
|
31
|
+
| `games/` | `backends/` | HTTP to the token and label workers. No package import |
|
|
32
|
+
| `bundles/` | `plugins/`, `bridge/` | The plugin set |
|
|
33
|
+
| `bundles/` | `shared/` | The bundle lists `@vnejs/shared.*` in `dependencies` when it includes that plugin. The bundle does not re-export factories |
|
|
34
|
+
| `shared/` | `contracts/` | Setup factories read events, not implementations |
|
|
35
|
+
| `plugins/` | `contracts/` | The implementation follows the declared API |
|
|
36
|
+
| `plugins/` | `modules_extensions/` → `packages/` | Modules extend bases. Bases rest on registry and observer |
|
|
37
|
+
| `bridge/` | `contracts/` | Its contract in `contracts/bridge/`, plus the plugin contracts it links. No import of implementations |
|
|
38
|
+
| `plugins/` | `helpers/`, `uis/` | Shared utils and UI |
|
|
39
|
+
| `plugins/` | — another `plugins/` | **No direct dependency** |
|
|
40
|
+
| `configs/` | workspace packages | Shared tsconfig. Not runtime |
|
|
41
41
|
|
|
42
42
|
## Summary
|
|
43
43
|
|
|
@@ -46,7 +46,7 @@ flowchart TD
|
|
|
46
46
|
| **`packages/`** | Registry, bus, VneCore |
|
|
47
47
|
| **`modules_extensions/`** | Base classes for modules |
|
|
48
48
|
| **`configs/`** | Shared tsconfig |
|
|
49
|
-
| **`contracts/`** | Plugin
|
|
49
|
+
| **`contracts/`** | Plugin and bridge API |
|
|
50
50
|
| **`shared/`** | Plugin setup presets |
|
|
51
51
|
| **`plugins/`** | Behavior on the bus |
|
|
52
52
|
| **`bridge/`** | Opt-in link between two plugins |
|
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
|
+
contracts/bridge/plugins.text/plugins.scenario.autoread/ → @vnejs/contracts.bridge.plugins.text.plugins.scenario.autoread
|
|
40
41
|
shared/views.screens/gamemenu/ → @vnejs/shared.views.screens.gamemenu
|
|
41
42
|
bridge/plugins.text/plugins.scenario.autoread/ → @vnejs/bridge.plugins.text.plugins.scenario.autoread
|
|
42
43
|
```
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
# 0.2.82
|
|
2
|
+
|
|
3
|
+
- `contracts/bridge/plugins.scenario.choose/plugins.scenario.qte` — public contract `@vnejs/contracts.bridge.plugins.scenario.choose.plugins.scenario.qte` for the choose↔qte bridge. API: `PLUGIN_NAME` `BRIDGE_PLUGIN_CHOOSE_PLUGIN_QTE`, `CONSTANTS.LOGS_ACTIONS.MISSING` (`"missing"`), `CONSTANTS.LOGS_ACTIONS.MISSING_FALLBACK` (`"missing_fallback"`). `ChooseOption.qte` is declared on `@vnejs/contracts.scenario.choose`. The bridge `regPlugin` passes these `constants`.
|
|
4
|
+
- `contracts/bridge/` — every other bridge has a contract `@vnejs/contracts.` plus the bridge package name without `@vnejs/`. Each contract exports `PLUGIN_NAME` only. The bridge imports that name. `regPlugin` still passes an empty shape. Names: `BRIDGE_PLUGIN_LAYER_BG_PLUGIN_GALLERY`, `BRIDGE_PLUGIN_LAYER_PLUGIN_SAVE`, `BRIDGE_PLUGIN_GAMEPAD_PLUGIN_CURSOR`, `BRIDGE_PLUGIN_DESKTOP_PLUGIN_LOCS`, `BRIDGE_PLUGIN_DESKTOP_PLUGIN_ACHIEVEMENT`, `BRIDGE_PLUGIN_METRIC_PLUGIN_SAVE`, `BRIDGE_PLUGIN_SKILLS_PLUGIN_SCALES`, `BRIDGE_PLUGIN_AUTOREAD_PLUGIN_VOICE`, `BRIDGE_PLUGIN_CHOOSE_PLUGIN_FASTFORWARD`, `BRIDGE_PLUGIN_CHOOSE_PLUGIN_HISTORY`, `BRIDGE_PLUGIN_CHOOSE_PLUGIN_TEXT`, `BRIDGE_PLUGIN_CHOOSE_PLUGIN_VARS_COUNTERS`, `BRIDGE_PLUGIN_CHOOSE_PLUGIN_VARS_FLAGS`, `BRIDGE_PLUGIN_FASTFORWARD_PLUGIN_AUDIO`, `BRIDGE_PLUGIN_FASTFORWARD_PLUGIN_VOICE`, `BRIDGE_PLUGIN_FASTFORWARD_PLUGIN_SAVE_AUTO`, `BRIDGE_PLUGIN_FASTFORWARD_PLUGIN_PAUSE`, `BRIDGE_PLUGIN_POINT_AND_CLICK_PLUGIN_VARS_COUNTERS`, `BRIDGE_PLUGIN_POINT_AND_CLICK_PLUGIN_VARS_FLAGS`, `BRIDGE_PLUGIN_POTATO_PLUGIN_AUDIO`, `BRIDGE_PLUGIN_POTATO_PLUGIN_TEXT_SMOOTH`, `BRIDGE_PLUGIN_TEXT_PLUGIN_VOICE`, `BRIDGE_PLUGIN_TEXT_PLUGIN_LAYER_BG_SPEAK`, `BRIDGE_PLUGIN_TEXT_PLUGIN_LAYER_SPRITE_SPEAK`, `BRIDGE_PLUGIN_TEXT_PLUGIN_SAVE_AUTO`, `BRIDGE_PLUGIN_TEXT_PLUGIN_AUTOREAD`, `BRIDGE_PLUGIN_TEXT_PLUGIN_HISTORY`, `BRIDGE_PLUGIN_TEXT_INJECT_PLUGIN_VARS_COUNTERS`, `BRIDGE_PLUGIN_TEXT_INJECT_PLUGIN_VARS_FLAGS`, `BRIDGE_PLUGIN_TEXT_SMOOTH_PLUGIN_FASTFORWARD`, `BRIDGE_PLUGIN_TIME_PLUGIN_DATE`, `BRIDGE_PLUGIN_CHOOSE_VIEW_PLUGIN_INTERFACE`, `BRIDGE_PLUGIN_CHOOSE_VIEW_PLUGIN_INTERFACE_FASTFORWARD_VIEW`, `BRIDGE_PLUGIN_INTERFACE_PLUGIN_TEXT`, `BRIDGE_PLUGIN_INTERFACE_PLUGIN_TEXT_SMOOTH`, `BRIDGE_PLUGIN_INTERFACE_PLUGIN_TEXT_WALL`, `BRIDGE_PLUGIN_POINT_AND_CLICK_VIEW_PLUGIN_INTERFACE`, `BRIDGE_PLUGIN_QTE_VIEW_PLUGIN_INTERFACE`.
|
package/changelog/README.md
CHANGED
package/package.json
CHANGED
|
@@ -42,7 +42,7 @@ After the poll yields logical name `button_N`, `controls.gamepad.buttons` emits
|
|
|
42
42
|
| `button_4` | LB / L1 | `TAB_PREV` |
|
|
43
43
|
| `button_5` | RB / R1 | `TAB_NEXT` |
|
|
44
44
|
| `button_6` | LT / L2 | `FASTFORWARD_START` / `FASTFORWARD_FINISH` |
|
|
45
|
-
| `button_7` | RT / R2 | (cursor click via bridge)
|
|
45
|
+
| `button_7` | RT / R2 | (cursor click via bridge) |
|
|
46
46
|
| `button_8` | View / Select | `GAMEMENU` |
|
|
47
47
|
| `button_9` | Menu / Start | `MENU` |
|
|
48
48
|
| `button_12`…`15` | D-pad | `ARROW_*` |
|
package/plugins/core/scenario.md
CHANGED
|
@@ -46,14 +46,14 @@ None.
|
|
|
46
46
|
|
|
47
47
|
## Modules
|
|
48
48
|
|
|
49
|
-
| Module | Role
|
|
50
|
-
| -------------------- |
|
|
51
|
-
| `scenario` | Main `NEXT` loop, line exec, sync state. `NEXT` handler reads `module` from `EmitParams` (`Module.emit`).
|
|
49
|
+
| Module | Role |
|
|
50
|
+
| -------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
51
|
+
| `scenario` | Main `NEXT` loop, line exec, sync state. `NEXT` handler reads `module` from `EmitParams` (`Module.emit`). |
|
|
52
52
|
| `scenario.autostart` | Default `shared.shouldAutostartScenario` in `postinject`; in `start` — init label + `emit SCENARIO.NEXT` when flag is on. After `start`, `isDestroyAfterStart` destroys the module and deletes its `state` slot. `shared.shouldAutostartScenario` stays. |
|
|
53
|
-
| `scenario.exec` | Dispatch `$module` / `%block`, handler registry, `EXEC_DELAY`.
|
|
54
|
-
| `scenario.label` | `LABEL_GET`, label preload; `MEMORY.REG` in `setup`; init label on `STATE.CLEAR`. One failed line does not break the whole label.
|
|
55
|
-
| `scenario.line` | `MEMORY.REG` in `setup`; `LINE_LOAD` / `LINE_GET`, preload handler registry. `LINE_GET` executor always resolves.
|
|
56
|
-
| `scenario.lines` | `MEMORY.REG` in `setup`; fetch `label/<path>.json` from `HOST` (e.g. `label/prologue/1.json`).
|
|
53
|
+
| `scenario.exec` | Dispatch `$module` / `%block`, handler registry, `EXEC_DELAY`. |
|
|
54
|
+
| `scenario.label` | `LABEL_GET`, label preload; `MEMORY.REG` in `setup`; init label on `STATE.CLEAR`. One failed line does not break the whole label. |
|
|
55
|
+
| `scenario.line` | `MEMORY.REG` in `setup`; `LINE_LOAD` / `LINE_GET`, preload handler registry. `LINE_GET` executor always resolves. |
|
|
56
|
+
| `scenario.lines` | `MEMORY.REG` in `setup`; fetch `label/<path>.json` from `HOST` (e.g. `label/prologue/1.json`). |
|
|
57
57
|
|
|
58
58
|
## Related plugins
|
|
59
59
|
|
package/plugins/core/system.md
CHANGED
|
@@ -8,27 +8,27 @@ Application lifecycle, DOM anchors, files, resize, engine version.
|
|
|
8
8
|
|
|
9
9
|
Handler payloads and results are typed through module augmentation of the contract (`VneEventPayloadMap` / `VneEventResultMap`). The types live in `@vnejs/contracts.core.system`.
|
|
10
10
|
|
|
11
|
-
| Key | String | Meaning
|
|
12
|
-
| ------------ | ----------------------- |
|
|
13
|
-
| `RESIZE` | `vne:system:resize` | Application window size changed.
|
|
14
|
-
| `RELOAD` | `vne:system:reload` | Reload the page. Handlers at `CONST.SYSTEM.PRIORITIES.BEFORE` finish first. The module reloads at priority `0`.
|
|
15
|
-
| `FULLSCREEN` | `vne:system:fullscreen` | Toggle document fullscreen.
|
|
16
|
-
| `CLOSE` | `vne:system:close` | Close the application window. Handlers at `CONST.SYSTEM.PRIORITIES.BEFORE` finish first. The module closes the window at priority `0`.
|
|
17
|
-
| `FILE_LOAD` | `vne:file:load` | Download an object as a JSON file. Payload: `{ obj?, name? }`.
|
|
18
|
-
| `FILE_READ` | `vne:file:read` | File picker → parse JSON → return contents.
|
|
11
|
+
| Key | String | Meaning |
|
|
12
|
+
| ------------ | ----------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
|
|
13
|
+
| `RESIZE` | `vne:system:resize` | Application window size changed. |
|
|
14
|
+
| `RELOAD` | `vne:system:reload` | Reload the page. Handlers at `CONST.SYSTEM.PRIORITIES.BEFORE` finish first. The module reloads at priority `0`. |
|
|
15
|
+
| `FULLSCREEN` | `vne:system:fullscreen` | Toggle document fullscreen. |
|
|
16
|
+
| `CLOSE` | `vne:system:close` | Close the application window. Handlers at `CONST.SYSTEM.PRIORITIES.BEFORE` finish first. The module closes the window at priority `0`. |
|
|
17
|
+
| `FILE_LOAD` | `vne:file:load` | Download an object as a JSON file. Payload: `{ obj?, name? }`. |
|
|
18
|
+
| `FILE_READ` | `vne:file:read` | File picker → parse JSON → return contents. |
|
|
19
19
|
|
|
20
20
|
## Constants
|
|
21
21
|
|
|
22
|
-
| Key | Meaning
|
|
23
|
-
| --------------------- |
|
|
24
|
-
| `HOST` | Origin or `http://localhost:{port}` from query
|
|
25
|
-
| `VERSION_MAJOR` | Major version of the state format (number)
|
|
26
|
-
| `VERSION_MINOR` | Minor version (number)
|
|
27
|
-
| `DOM_IDS.APP` | `"app"` — root container
|
|
28
|
-
| `DOM_IDS.MEDIA` | `"media"` — hidden media container
|
|
29
|
-
| `DOM_IDS.COMPONENTS` | `"components"` — UI container
|
|
30
|
-
| `LOGS_ACTIONS.RESIZE` | `"resize"` — log label on `RESIZE`
|
|
31
|
-
| `PRIORITIES.BEFORE` | `-100`. Handler priority on `CLOSE` and `RELOAD` that finishes before the window closes or the page reloads.
|
|
22
|
+
| Key | Meaning |
|
|
23
|
+
| --------------------- | ------------------------------------------------------------------------------------------------------------ |
|
|
24
|
+
| `HOST` | Origin or `http://localhost:{port}` from query |
|
|
25
|
+
| `VERSION_MAJOR` | Major version of the state format (number) |
|
|
26
|
+
| `VERSION_MINOR` | Minor version (number) |
|
|
27
|
+
| `DOM_IDS.APP` | `"app"` — root container |
|
|
28
|
+
| `DOM_IDS.MEDIA` | `"media"` — hidden media container |
|
|
29
|
+
| `DOM_IDS.COMPONENTS` | `"components"` — UI container |
|
|
30
|
+
| `LOGS_ACTIONS.RESIZE` | `"resize"` — log label on `RESIZE` |
|
|
31
|
+
| `PRIORITIES.BEFORE` | `-100`. Handler priority on `CLOSE` and `RELOAD` that finishes before the window closes or the page reloads. |
|
|
32
32
|
|
|
33
33
|
## Parameters
|
|
34
34
|
|
package/plugins/scenario/qte.md
CHANGED
|
@@ -19,10 +19,10 @@ Handler payloads and results are typed through module augmentation of the contra
|
|
|
19
19
|
|
|
20
20
|
## Constants
|
|
21
21
|
|
|
22
|
-
| Key | Meaning
|
|
23
|
-
| ---------------------------- |
|
|
22
|
+
| Key | Meaning |
|
|
23
|
+
| ---------------------------- | ------------------------------------------------------------------------------------------- |
|
|
24
24
|
| `LINE_KEYWORDS.QTE_FALLBACK` | `"qte-fallback"`: keyword on `% choose.option` for QTE fail branch (via choose↔qte bridge). |
|
|
25
|
-
| `LOGS_ACTIONS` | Log labels: `EMIT` (`emit`), `RESULT` (`result`), `MISSING` (`missing`).
|
|
25
|
+
| `LOGS_ACTIONS` | Log labels: `EMIT` (`emit`), `RESULT` (`result`), `MISSING` (`missing`). |
|
|
26
26
|
|
|
27
27
|
## Parameters
|
|
28
28
|
|
|
@@ -76,9 +76,16 @@ On `EMIT` with `skipScenario: true` sets `shared.qteScenarioSkip`; on `RESULT` m
|
|
|
76
76
|
|
|
77
77
|
Package: `@vnejs/bridge.plugins.scenario.choose.plugins.scenario.qte`
|
|
78
78
|
|
|
79
|
+
Contract: `@vnejs/contracts.bridge.plugins.scenario.choose.plugins.scenario.qte` · namespace: `BRIDGE_PLUGIN_CHOOSE_PLUGIN_QTE`
|
|
80
|
+
|
|
79
81
|
On `CHOOSE.OPTION_REPLACE`: when the option has `qte: <id>`, runs QTE with `skipScenario: true`. Success — same option index; fail — index of the option whose `keywords` include `LINE_KEYWORDS.QTE_FALLBACK` (`qte-fallback`; if none — original index + `EVENTS.LOGS.EMIT`).
|
|
80
82
|
|
|
81
|
-
|
|
83
|
+
The contract extends `ChooseOption` with field `qte?: string`. Keyword `| qte-fallback` lands in `ChooseOption.keywords` via choose.
|
|
84
|
+
|
|
85
|
+
| Constant | Value |
|
|
86
|
+
| ----------------------------------------- | -------------------------------------------------------------- |
|
|
87
|
+
| `CONSTANTS.LOGS_ACTIONS.MISSING` | `"missing"` — `PARAMS.QTE.ITEMS` has no id. |
|
|
88
|
+
| `CONSTANTS.LOGS_ACTIONS.MISSING_FALLBACK` | `"missing_fallback"` — fail, and no option has `qte-fallback`. |
|
|
82
89
|
|
|
83
90
|
```vne
|
|
84
91
|
% choose
|
|
@@ -26,8 +26,8 @@ None.
|
|
|
26
26
|
|
|
27
27
|
## Modules
|
|
28
28
|
|
|
29
|
-
| Module | Role
|
|
30
|
-
| -------- |
|
|
29
|
+
| Module | Role |
|
|
30
|
+
| -------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
31
31
|
| `volume` | In `setup`, three `SETTINGS.INIT` calls (`COMMON`, `AUDIO`, `VIDEO`). After `start`, `isDestroyAfterStart` destroys the module and deletes its `state` slot. The settings stay in `shared.settings`. |
|
|
32
32
|
|
|
33
33
|
## Related plugins
|
package/plugins/text/locs.md
CHANGED
|
@@ -25,11 +25,11 @@ None.
|
|
|
25
25
|
|
|
26
26
|
## Parameters
|
|
27
27
|
|
|
28
|
-
| Key | Type | Meaning
|
|
29
|
-
| -------------- | ---------- |
|
|
30
|
-
| `DEFAULT_LANG` | `string` | Default: `"ru"`.
|
|
28
|
+
| Key | Type | Meaning |
|
|
29
|
+
| -------------- | ---------- | ------------------------------------------------------------------------------------------------------- |
|
|
30
|
+
| `DEFAULT_LANG` | `string` | Default: `"ru"`. |
|
|
31
31
|
| `LANGS` | `string[]` | Query languages that are allowed. Default: empty. A game fills the list, for example `"ru"` and `"en"`. |
|
|
32
|
-
| `GROUPS` | `object` | `VIEWS: "views"`, `LABELS: "labels"` — folders after `{lang}/`.
|
|
32
|
+
| `GROUPS` | `object` | `VIEWS: "views"`, `LABELS: "labels"` — folders after `{lang}/`. |
|
|
33
33
|
|
|
34
34
|
`LOCS.GET` / `LOCS.LOAD` require `group`. `TEXT.REPLACE` without `group` in the locs handler uses `GROUPS.LABELS`. View inject (`LOC_LABEL`) uses `GROUPS.VIEWS`.
|
|
35
35
|
|
|
@@ -41,15 +41,15 @@ None.
|
|
|
41
41
|
|
|
42
42
|
## Modules
|
|
43
43
|
|
|
44
|
-
| Module | Role
|
|
45
|
-
| ------------------------ |
|
|
46
|
-
| `locs` | `SET` applies language and emits `CHANGED`. `SETTINGS.CHANGED` after `isReady` emits `SET`. Dictionary read — `MEMORY_GET`.
|
|
44
|
+
| Module | Role |
|
|
45
|
+
| ------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
46
|
+
| `locs` | `SET` applies language and emits `CHANGED`. `SETTINGS.CHANGED` after `isReady` emits `SET`. Dictionary read — `MEMORY_GET`. |
|
|
47
47
|
| `locs.init` | In `postinject` — `shared.textLang` from query `forceLang`, else query `defaultLang`, else `PARAMS.LOCS.DEFAULT_LANG`. A query value must be in `PARAMS.LOCS.LANGS`. In `setup`, `forceLang` emits `SETTINGS.SET`; otherwise `SETTINGS.INIT` uses `defaultLang` or `DEFAULT_LANG`. `init` emits `LOCS.SET` with `shared.settings[SETTINGS.LOCS.LANG]`. After `start`, `isDestroyAfterStart` destroys the module and deletes its `state` slot. `shared.textLang` stays. |
|
|
48
|
-
| `locs.changed` | `CHANGED`: if label dictionary is missing — `LOAD`, then `TEXT.RECALC` and `COMPONENTS.EXTERNAL_UPDATE`.
|
|
49
|
-
| `locs.memory` | `MEMORY.REG` in `setup` with `module: this.name` (`locs.memory`). `MEMORY_GET` / `MEMORY_SET`.
|
|
50
|
-
| `locs.load` | `LOCS.LOAD`: fetch dictionary, read and write only via `MEMORY_GET` / `MEMORY_SET`.
|
|
51
|
-
| `locs.components.inject` | `COMPONENTS.INJECT_REG` in `init`. `LOC_LABEL` → `LOCS.GET` with `GROUPS.VIEWS`.
|
|
52
|
-
| `locs.text.replace` | `TEXT.REPLACE_REG` in `init` with priority `-999999`. Without `group` — `GROUPS.LABELS`.
|
|
48
|
+
| `locs.changed` | `CHANGED`: if label dictionary is missing — `LOAD`, then `TEXT.RECALC` and `COMPONENTS.EXTERNAL_UPDATE`. |
|
|
49
|
+
| `locs.memory` | `MEMORY.REG` in `setup` with `module: this.name` (`locs.memory`). `MEMORY_GET` / `MEMORY_SET`. |
|
|
50
|
+
| `locs.load` | `LOCS.LOAD`: fetch dictionary, read and write only via `MEMORY_GET` / `MEMORY_SET`. |
|
|
51
|
+
| `locs.components.inject` | `COMPONENTS.INJECT_REG` in `init`. `LOC_LABEL` → `LOCS.GET` with `GROUPS.VIEWS`. |
|
|
52
|
+
| `locs.text.replace` | `TEXT.REPLACE_REG` in `init` with priority `-999999`. Without `group` — `GROUPS.LABELS`. |
|
|
53
53
|
|
|
54
54
|
## Related plugins
|
|
55
55
|
|
package/plugins/text/smooth.md
CHANGED
|
@@ -33,13 +33,13 @@ None.
|
|
|
33
33
|
|
|
34
34
|
## Modules
|
|
35
35
|
|
|
36
|
-
| Module | Role
|
|
37
|
-
| ---------------------- |
|
|
36
|
+
| Module | Role |
|
|
37
|
+
| ---------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
38
38
|
| `text.smooth.init` | In `postinject` — `shared.isTextSmoothInProcess = false`. After `start`, `isDestroyAfterStart` destroys the module and deletes its `state` slot. The shared flag stays. |
|
|
39
|
-
| `text.smooth` | Plugin `smooth` submodule.
|
|
40
|
-
| `text.smooth.process` | Handles DONE, EMIT_PROCESS.
|
|
41
|
-
| `text.smooth.cycle` | Handles SMOOTH, PROCESS_CANCEL, EMIT_END, CLEAR.
|
|
42
|
-
| `text.smooth.emit.end` | Handles EMIT_END, RECALC_DONE.
|
|
39
|
+
| `text.smooth` | Plugin `smooth` submodule. |
|
|
40
|
+
| `text.smooth.process` | Handles DONE, EMIT_PROCESS. |
|
|
41
|
+
| `text.smooth.cycle` | Handles SMOOTH, PROCESS_CANCEL, EMIT_END, CLEAR. |
|
|
42
|
+
| `text.smooth.emit.end` | Handles EMIT_END, RECALC_DONE. |
|
|
43
43
|
|
|
44
44
|
## Bridge
|
|
45
45
|
|
package/plugins/views/cursor.md
CHANGED
|
@@ -24,11 +24,11 @@ None.
|
|
|
24
24
|
|
|
25
25
|
## Modules
|
|
26
26
|
|
|
27
|
-
| Module
|
|
28
|
-
|
|
|
27
|
+
| Module | Role |
|
|
28
|
+
| ----------------------------- | ------------------------------------------------------------------------------------------ |
|
|
29
29
|
| `cursor.view.controller` | SHOW/HIDE/UPDATE_STATE/UPDATE_FAST; cursor state is not cleared on `HIDE.CLEANUP`. |
|
|
30
30
|
| `cursor.view.controller.sync` | `MOVED` / `VIEW_SET` / `MEMORY.CLEARED` → `UPDATE_STATE` + `UPDATE_FAST` and `MEDIA.LOAD`. |
|
|
31
|
-
| `cursor.view`
|
|
31
|
+
| `cursor.view` | Plugin `view` submodule. |
|
|
32
32
|
|
|
33
33
|
## Related plugins
|
|
34
34
|
|
|
@@ -46,8 +46,8 @@ None.
|
|
|
46
46
|
|
|
47
47
|
## Modules
|
|
48
48
|
|
|
49
|
-
| Module
|
|
50
|
-
|
|
|
49
|
+
| Module | Role |
|
|
50
|
+
| --------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
51
51
|
| `settings.view.fields.controller` | `SHOW`/`HIDE`/`TAB_SET`; mirrors `UPDATE_STATE` (`currentArrowVerticalItem` + `currentItemInner`). On `ARROW_LEFT`/`ARROW_RIGHT`: `selector_texts` / `actions` (`options`) cycle `currentItemInner` (modulo); `selector_texts` call `SETTINGS.SET` at once. `INTERACT` — option value or named action (including `actions` without `settingKey`). `ACCEPT` is not handled — screens keep it. |
|
|
52
52
|
| `settings.view.fields.controller.arrows` | Extends `@vnejs/module.controller.arrows.vertical`: `ARROW_UP`/`ARROW_BOTTOM` across fields; PUSH/POP on SHOW/HIDE; `TAB_SET` resets the index; emits `UPDATE_STATE` with `{ currentArrowVerticalItem }` and `UPDATE_FAST`. On `HIDE.CLEANUP` `currentArrowVerticalItem` in state becomes `undefined`. |
|
|
53
53
|
| `settings.view.fields.controller.arrows.horizontal` | Extends `@vnejs/module.controller.arrows.horizontal`: `onArrowLeft` / `onArrowRight` → `ARROW_LEFT` / `ARROW_RIGHT`; PUSH/POP on SHOW/HIDE. On `HIDE.CLEANUP` `currentArrowHorizontalItem` in state becomes `undefined`. |
|
|
@@ -37,10 +37,10 @@ None.
|
|
|
37
37
|
|
|
38
38
|
## Modules
|
|
39
39
|
|
|
40
|
-
| Module
|
|
41
|
-
|
|
|
40
|
+
| Module | Role |
|
|
41
|
+
| ------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
42
42
|
| `interface.controls.view.controller` | Handles UPDATE, VISIBLE, INTERACT, SHOW, …. `CONTROLS_EXTENSIONS` merges into `CONTROLS` in `ModuleController.init`. `SHOULD_CLEAR_STATE_ON_CLEANUP` — `false`: hide does not reset `isVisible` and `view`, so the next `$ interface show` shows the buttons again. |
|
|
43
|
-
| `interface.controls.view`
|
|
43
|
+
| `interface.controls.view` | Plugin `controls.view` submodule. |
|
|
44
44
|
|
|
45
45
|
## Related plugins
|
|
46
46
|
|
|
@@ -35,10 +35,10 @@ None.
|
|
|
35
35
|
|
|
36
36
|
## Modules
|
|
37
37
|
|
|
38
|
-
| Module
|
|
39
|
-
|
|
|
38
|
+
| Module | Role |
|
|
39
|
+
| --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
40
40
|
| `interface.fastforward.view.controller` | Handles UPDATE, TOGGLE, START, STOP, …. `SHOULD_CLEAR_STATE_ON_CLEANUP` — `false`: hide does not reset `isVisible` and `view`, so the next `$ interface show` shows the button again. |
|
|
41
|
-
| `interface.fastforward.view`
|
|
41
|
+
| `interface.fastforward.view` | Plugin `fastforward.view` submodule. |
|
|
42
42
|
|
|
43
43
|
## Related plugins
|
|
44
44
|
|
|
@@ -62,7 +62,7 @@ None.
|
|
|
62
62
|
| `interface.scenario` | `$ interface`: `LINE_EXEC_REG` → SHOW / HIDE / VIEW per `CONST.INTERFACE.EXEC_ACTIONS`. |
|
|
63
63
|
| `interface.actions` | VISIBLE / TEXT_HIDE / VIEW through `globalState.interface`. |
|
|
64
64
|
| `interface.actions.show` | Subscribes to `SHOW` and `HIDE`. On `GATE` (`breakFollowing`): if the interface is already in the target state or a show/hide cycle is running, other subscribers on these events are not called. Showing a hidden layer sends `VISIBLE`. |
|
|
65
|
-
| `interface.view` | `isForce` reaches `SmoothText` in `InterfaceViewDialog`, `InterfaceViewLine`, and `InterfaceViewWall`. Inactive views pass a stable empty tokens array so `SmoothText` memo can skip.
|
|
65
|
+
| `interface.view` | `isForce` reaches `SmoothText` in `InterfaceViewDialog`, `InterfaceViewLine`, and `InterfaceViewWall`. Inactive views pass a stable empty tokens array so `SmoothText` memo can skip. |
|
|
66
66
|
|
|
67
67
|
## Bridge
|
|
68
68
|
|
|
@@ -42,8 +42,8 @@ None.
|
|
|
42
42
|
|
|
43
43
|
## Modules
|
|
44
44
|
|
|
45
|
-
| Module
|
|
46
|
-
|
|
|
45
|
+
| Module | Role |
|
|
46
|
+
| ------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
47
47
|
| `gallery.full.view.bridge` | `GALLERY.CHOOSE` with `isOpened: true` → `SHOW`. |
|
|
48
48
|
| `gallery.full.view.controller` | `onShowBefore` writes `itemFullName` / `itemMediaType` / `itemLayerChildType` / `variants` into `UPDATE_STATE` and emits `LOAD` `{ pageIndex: 0 }`. `onHideAfter` resets this context via `UPDATE_STATE`. |
|
|
49
49
|
| `gallery.full.view.load` | `LOAD` → `onLoad` by `state.variants`; for an open variation emits `LOAD_SRC`. `UPDATE_STATE` merges a partial into module state. |
|
|
@@ -51,7 +51,7 @@ None.
|
|
|
51
51
|
| `gallery.full.view.variation` | Extends `@vnejs/module.controller.pages`: `EVENT_PAGE_PREV`/`NEXT`/`SET` = `PREV`/`NEXT`/`PAGE_SET`; state `pageIndex` / `pagesCount`; `applyPage` → `LOAD` `{ pageIndex }`. |
|
|
52
52
|
| `gallery.full.view.controller.arrows` | `onArrowLeft` / `onArrowRight` → `PREV` / `NEXT`; PUSH/POP on SHOW/HIDE. |
|
|
53
53
|
| `gallery.full.view.hide.controls` | Extends `@vnejs/module.controller.hide.on.controls`: `BACK` / `MENU` / `GAMEMENU` → `HIDE`; PUSH/POP on SHOW/HIDE. |
|
|
54
|
-
| `gallery.full.view`
|
|
54
|
+
| `gallery.full.view` | Plugin `full.view` submodule. |
|
|
55
55
|
|
|
56
56
|
## Related plugins
|
|
57
57
|
|
|
@@ -24,9 +24,9 @@ Handler payloads and results are typed through module augmentation of the contra
|
|
|
24
24
|
|
|
25
25
|
## Constants
|
|
26
26
|
|
|
27
|
-
| Key | Type | Meaning
|
|
28
|
-
| -------- | -------- |
|
|
29
|
-
| `SOURCE` | `string` | Loading screen source name (`gameMenu`).
|
|
27
|
+
| Key | Type | Meaning |
|
|
28
|
+
| -------- | -------- | ---------------------------------------- |
|
|
29
|
+
| `SOURCE` | `string` | Loading screen source name (`gameMenu`). |
|
|
30
30
|
|
|
31
31
|
## Parameters
|
|
32
32
|
|
|
@@ -40,15 +40,15 @@ None.
|
|
|
40
40
|
|
|
41
41
|
## Modules
|
|
42
42
|
|
|
43
|
-
| Module
|
|
44
|
-
|
|
|
43
|
+
| Module | Role |
|
|
44
|
+
| -------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
45
45
|
| `history.view.controller` | SHOW/HIDE/UPDATE_STATE/UPDATE_FAST; before SHOW resolves row texts (`TEXT.REPLACE`). For `locKey` — via `PARAMS.HISTORY_VIEW.LOC_LABEL` (view localization), else via scenario label. After translation, `{…}` markers are stripped from the display row. Empty `controls` on `ZINDEX` to block lower layers. |
|
|
46
46
|
| `history.view.controller.click` | `HISTORY_VIEW.CLICK` → `HISTORY.KEYS`; if `uid` is in keys — `HISTORY.LOAD`. |
|
|
47
47
|
| `history.view.controller.accept` | Extends `@vnejs/module.controller.accept`: `ACCEPT` / `INTERACT` → `ACCEPT` → `CLICK` on `currentArrowVerticalItem`; mirrors `UPDATE_STATE`; PUSH/POP on SHOW/HIDE. |
|
|
48
48
|
| `history.view.controller.arrows` | Extends `@vnejs/module.controller.arrows.vertical`: `ARROW_UP` / `ARROW_BOTTOM` over journal entries; PUSH/POP controls on SHOW/HIDE; emits `UPDATE_STATE` with `{ currentArrowVerticalItem }` and `UPDATE_FAST`. On `HIDE.CLEANUP` `currentArrowVerticalItem` in state becomes `undefined`. |
|
|
49
49
|
| `history.view.hide.controls` | Extends `@vnejs/module.controller.hide.on.controls`: `BACK` / `MENU` / `GAMEMENU` → `HIDE`; PUSH/POP on SHOW/HIDE. |
|
|
50
50
|
| `history.view.hide.state` | Extends `@vnejs/module.controller.hide.on.state`: `STATE.SET` → `HIDE` with `{ isForce: true }` (`IS_STATE_CLEAR_ENABLED = false`). |
|
|
51
|
-
| `history.view`
|
|
51
|
+
| `history.view` | Plugin `view` submodule. |
|
|
52
52
|
|
|
53
53
|
## Related plugins
|
|
54
54
|
|
|
@@ -27,9 +27,9 @@ Handler payloads and results are typed through module augmentation of the contra
|
|
|
27
27
|
|
|
28
28
|
## Constants
|
|
29
29
|
|
|
30
|
-
| Key | Type | Meaning
|
|
31
|
-
| -------- | -------- |
|
|
32
|
-
| `SOURCE` | `string` | Loading screen source name (`mainMenu`).
|
|
30
|
+
| Key | Type | Meaning |
|
|
31
|
+
| -------- | -------- | ---------------------------------------- |
|
|
32
|
+
| `SOURCE` | `string` | Loading screen source name (`mainMenu`). |
|
|
33
33
|
|
|
34
34
|
## Parameters
|
|
35
35
|
|
|
@@ -31,10 +31,10 @@ None.
|
|
|
31
31
|
|
|
32
32
|
## Modules
|
|
33
33
|
|
|
34
|
-
| Module
|
|
35
|
-
|
|
|
34
|
+
| Module | Role |
|
|
35
|
+
| ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
36
36
|
| `mainmenu.socials.view.controller` | Handles UPDATE, SHOW, HIDE. Hide on `STATE.SET` / `STATE.CLEAR` goes through `MAINMENU.HIDE` from `mainmenu.hide`; no direct `STATE` subscriptions. |
|
|
37
|
-
| `mainmenu.socials.view`
|
|
37
|
+
| `mainmenu.socials.view` | Plugin `socials.view` submodule. |
|
|
38
38
|
|
|
39
39
|
## Related plugins
|
|
40
40
|
|
|
@@ -25,8 +25,8 @@ Handler payloads and results are typed through module augmentation of the contra
|
|
|
25
25
|
| `PRELOAD` | `vne:save_view:preload` | Plugin namespace `PRELOAD` event. |
|
|
26
26
|
| `ACCEPT` | `vne:save_view:accept` | ACCEPT / INTERACT on the selected slot. |
|
|
27
27
|
| `UPDATE_STATE` | `vne:save_view:update_state` | Merge a partial into controller/accept/grid state without an UPDATE view. |
|
|
28
|
-
| `GRID_NEXT` | `vne:save_view:grid_next` | Grid edge forward; `save.view.controller.pages` listens as `EVENT_PAGE_NEXT` (intentional bridge, pages module knows nothing about the grid).
|
|
29
|
-
| `GRID_PREV` | `vne:save_view:grid_prev` | Grid edge backward; `save.view.controller.pages` listens as `EVENT_PAGE_PREV`.
|
|
28
|
+
| `GRID_NEXT` | `vne:save_view:grid_next` | Grid edge forward; `save.view.controller.pages` listens as `EVENT_PAGE_NEXT` (intentional bridge, pages module knows nothing about the grid). |
|
|
29
|
+
| `GRID_PREV` | `vne:save_view:grid_prev` | Grid edge backward; `save.view.controller.pages` listens as `EVENT_PAGE_PREV`. |
|
|
30
30
|
| `GRID_CLEAR` | `vne:save_view:grid_clear` | Clear cell selection: `gridRow` / `gridColumn` → `null` (+ `UPDATE_STATE`). |
|
|
31
31
|
| `GRID_UPDATE_ITEMS` | `vne:save_view:grid_update_items` | Rebuild the grid from state (no payload) → `UPDATE_STATE` `{ gridItems }`. Meta (`gridIndex` / `gridsCount` / `tab`) — set earlier via `UPDATE_STATE`. |
|
|
32
32
|
| `SLOT_CREATE` | `vne:save_view:slot_create` | Build a UI slot → `SAVE.GET` + date/time; result: `SaveViewSlotCreateResult`. |
|
|
@@ -48,8 +48,8 @@ None.
|
|
|
48
48
|
|
|
49
49
|
## Modules
|
|
50
50
|
|
|
51
|
-
| Module
|
|
52
|
-
|
|
|
51
|
+
| Module | Role |
|
|
52
|
+
| ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
53
53
|
| `save.view.controller.audio` | `ModuleControllerAudio` subclass: SHOW/HIDE/PRELOAD → pause global, play/stop `view` track; `VOLUME_SETTING = MUSIC.VOLUME`; SHOW passes a computed `volume` into `AUDIO.PLAY`; on `VOLUME_CHANGED` / `VOLUME_SETTING` change — `AUDIO.VOLUME` again. |
|
|
54
54
|
| `save.view.controller` | SHOW/HIDE by `CONST.COMPONENTS.LIFECYCLE_PRIORITY` phases; on `SHOW.BEFORE` — `TAB_SET`. `UPDATE_STATE` / `UPDATE_FAST`; empty `controls` on `ZINDEX`. |
|
|
55
55
|
| `save.view.controller.bg` | Extends `@vnejs/module.controller.bg`: `SHOW` + `LIFECYCLE_PRIORITY.SHOW.BEFORE` → `bgSrc`; PRELOAD / `start`; `MEMORY.CLEARED` — preload and refresh when `isShow`. |
|
|
@@ -57,12 +57,12 @@ None.
|
|
|
57
57
|
| `save.view.controller.pages` | Extends `@vnejs/module.controller.pages`: `EVENT_*` → `SAVE_VIEW`; `applyPage` → `UPDATE_STATE` `{ gridIndex, gridsCount }` + `GRID_UPDATE_ITEMS`; `init` sets `pagesCount`. |
|
|
58
58
|
| `save.view.controller.accept` | Extends `@vnejs/module.controller.accept`: `ACCEPT` / `INTERACT` → `ACCEPT` → `CREATE` on save tab, else `LOAD` when `screen`; mirrors `UPDATE_STATE`; PUSH/POP on SHOW/HIDE. |
|
|
59
59
|
| `save.view.controller.grid` | Extends `@vnejs/module.controller.arrows.grid`: four arrows; `isDisableGridChangeVertical = true` (vertical does not flip pages); at column edge — `GRID_NEXT`/`PREV`; `GRID_CLEAR`; `GRID_UPDATE_ITEMS` → `getGridItems` / `UPDATE_STATE` `{ gridItems }`. On `HIDE.CLEANUP` `gridRow` / `gridColumn` in state become `undefined`. |
|
|
60
|
-
| `save.view.slot`
|
|
60
|
+
| `save.view.slot` | On `SLOT_CREATE` builds a UI slot: `SAVE.GET` → `screen` / `ts` / `date` / `time` / `locKey`. |
|
|
61
61
|
| `save.view.hide.controls` | Extends `@vnejs/module.controller.hide.on.controls`: `BACK` / `MENU` / `GAMEMENU` → `HIDE`; PUSH/POP on SHOW/HIDE. |
|
|
62
62
|
| `save.view.hide.state` | Extends `@vnejs/module.controller.hide.on.state`: `STATE.SET` / `STATE.CLEAR` → `HIDE` with `{ isForce: true }`. |
|
|
63
63
|
| `save.view.controller.tabs` | `ModuleControllerTabs` subclass: `TAB_SET` → `applyTab` + `onTabSet` (`pageIndex: 0`, `GRID_CLEAR`, `UPDATE_STATE` `{ gridIndex, gridsCount }`, `GRID_UPDATE_ITEMS`, optional `UPDATE_FAST`); TAB_PREV/TAB_NEXT → `TAB_SET`; `getTabKeys` filters SAVE vs LOAD/AUTOSAVE. |
|
|
64
64
|
| `save.view.controller.load` | Plugin `controller.load` submodule. |
|
|
65
|
-
| `save.view`
|
|
65
|
+
| `save.view` | Plugin `view` submodule. |
|
|
66
66
|
|
|
67
67
|
## Related plugins
|
|
68
68
|
|
|
@@ -40,14 +40,14 @@ None.
|
|
|
40
40
|
|
|
41
41
|
## Modules
|
|
42
42
|
|
|
43
|
-
| Module
|
|
44
|
-
|
|
|
43
|
+
| Module | Role |
|
|
44
|
+
| ----------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
45
45
|
| `settings.default.view.controller` | SHOW/HIDE by `CONST.COMPONENTS.LIFECYCLE_PRIORITY` phases; on `HIDE.BEFORE` — `SETTINGS_VIEW.HIDE`. `UPDATE_STATE` / `UPDATE_FAST`. |
|
|
46
46
|
| `settings.default.view.controller.bg` | Extends `@vnejs/module.controller.bg`: `SHOW` + `LIFECYCLE_PRIORITY.SHOW.BEFORE` → `bgSrc`; `MEMORY.CLEARED` when `isShow` → refresh. |
|
|
47
47
|
| `settings.default.view.controller.fields` | On `SHOW` + `LIFECYCLE_PRIORITY.SHOW.BEFORE`: `UPDATE_STATE` `{ tab }` + `SETTINGS_VIEW.SHOW` with `CONST.SETTINGS_VIEW.DEFAULT_TAB`. |
|
|
48
48
|
| `settings.default.view.controller.accept` | Extends `@vnejs/module.controller.accept`: only `ACCEPT` (`IS_INTERACT_ENABLED = false`) → `CONFIRM` → `INITED`, `HIDE`, `emit SCENARIO.NEXT`; PUSH/POP on SHOW/HIDE. |
|
|
49
|
-
| `settings.default.view.exec`
|
|
50
|
-
| `settings.default.view`
|
|
49
|
+
| `settings.default.view.exec` | `SETTINGS.INIT` INITED in `setup`; `LINE_EXEC` as `$ settings.defaults` → `SHOW`, or `emit SCENARIO.NEXT` when `skip_if_possible` and `INITED`. |
|
|
50
|
+
| `settings.default.view` | Chrome: title + Accept button. |
|
|
51
51
|
|
|
52
52
|
## Related plugins
|
|
53
53
|
|
|
@@ -41,8 +41,8 @@ None.
|
|
|
41
41
|
|
|
42
42
|
## Modules
|
|
43
43
|
|
|
44
|
-
| Module
|
|
45
|
-
|
|
|
44
|
+
| Module | Role |
|
|
45
|
+
| ---------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
46
46
|
| `settings.screen.view.controller.audio` | `ModuleControllerAudio` subclass: SHOW/HIDE/PRELOAD → pause global, play/stop `view` track; `VOLUME_SETTING = MUSIC.VOLUME`; SHOW passes a computed `volume` into `AUDIO.PLAY`; on `VOLUME_CHANGED` / `VOLUME_SETTING` change — `AUDIO.VOLUME` again. |
|
|
47
47
|
| `settings.screen.view.controller` | SHOW/HIDE by `CONST.COMPONENTS.LIFECYCLE_PRIORITY` phases; on `HIDE.BEFORE` emits `SETTINGS_VIEW.HIDE`. `UPDATE_STATE` → `updateState`; `UPDATE_FAST`. Empty `controls` on `ZINDEX`. |
|
|
48
48
|
| `settings.screen.view.controller.bg` | Extends `@vnejs/module.controller.bg`: `SHOW` + `LIFECYCLE_PRIORITY.SHOW.BEFORE` → `bgSrc`; PRELOAD; `MEMORY.CLEARED` — preload and refresh when `isShow`. |
|
|
@@ -50,7 +50,7 @@ None.
|
|
|
50
50
|
| `settings.screen.view.hide.controls` | Extends `@vnejs/module.controller.hide.on.controls`: `BACK` / `MENU` / `GAMEMENU` → `HIDE`; PUSH/POP on SHOW/HIDE. |
|
|
51
51
|
| `settings.screen.view.hide.state` | Extends `@vnejs/module.controller.hide.on.state`: `STATE.SET` / `STATE.CLEAR` → `HIDE` with `{ isForce: true }`. |
|
|
52
52
|
| `settings.screen.view.controller.tabs` | `ModuleControllerTabs` subclass: `TAB_SET` → `applyTab` + `onTabSet` (`UPDATE_FAST`, then `SETTINGS_VIEW.TAB_SET`); TAB_PREV/TAB_NEXT → `TAB_SET`; `getTabKeys` by `showInSettings`. |
|
|
53
|
-
| `settings.screen.view`
|
|
53
|
+
| `settings.screen.view` | Screen chrome (Screen, tabs, cross); fields and example text — in `SETTINGS_VIEW`. |
|
|
54
54
|
|
|
55
55
|
## Related plugins
|
|
56
56
|
|