@wwawing/engine 3.12.10 → 3.12.11
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/lib/wwa.js +3 -3
- package/lib/wwa_main.d.ts +0 -1
- package/lib/wwa_vardump/api.d.ts +8 -0
- package/lib/wwa_vardump/index.d.ts +9 -0
- package/lib/wwa_vardump/named-user-variable/api.d.ts +1 -0
- package/lib/wwa_vardump/named-user-variable/index.d.ts +1 -0
- package/lib/wwa_vardump/numbered-user-variable/api.d.ts +3 -0
- package/lib/wwa_vardump/numbered-user-variable/index.d.ts +1 -0
- package/lib/wwa_vardump/user-variable/user-variable-card/index.d.ts +11 -0
- package/lib/wwa_vardump/user-variable/user-variable-label/index.d.ts +3 -0
- package/lib/wwa_vardump/user-variable/user-variable-list/index.d.ts +14 -0
- package/lib/wwa_vardump/user-variable/user-variable-list-section/header/index.d.ts +13 -0
- package/lib/wwa_vardump/user-variable/user-variable-list-section/header/information/index.d.ts +3 -0
- package/lib/wwa_vardump/user-variable/user-variable-list-section/index.d.ts +8 -0
- package/package.json +10 -10
package/lib/wwa_main.d.ts
CHANGED
|
@@ -321,7 +321,6 @@ export declare class WWA {
|
|
|
321
321
|
private _checkSaveDataCompatibility;
|
|
322
322
|
isVisibleStatus(statusKind: StatusKind): boolean;
|
|
323
323
|
private _changeStatusVisibility;
|
|
324
|
-
private _updateVarDumpInformationArea;
|
|
325
324
|
shouldApplyGameOver({ isCalledByMacro }: {
|
|
326
325
|
isCalledByMacro: boolean;
|
|
327
326
|
}): boolean;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as NamedUserVariable from "./named-user-variable/api";
|
|
2
|
+
import * as NumberedUserVariable from "./numbered-user-variable/api";
|
|
3
|
+
export { NamedUserVariable, NumberedUserVariable };
|
|
4
|
+
export declare function updateAllVariables({ dumpElement, namedUserVar, userVar }: {
|
|
5
|
+
dumpElement: HTMLElement;
|
|
6
|
+
namedUserVar?: Map<string, string | number | boolean>;
|
|
7
|
+
userVar?: (string | number | boolean)[];
|
|
8
|
+
}): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as UserVariableListSection from "./user-variable/user-variable-list-section";
|
|
2
|
+
export * as Api from "./api";
|
|
3
|
+
export * as UserVariableCard from "./user-variable/user-variable-card";
|
|
4
|
+
export * as UserVariableLabel from "./user-variable/user-variable-label";
|
|
5
|
+
export * as UserVariableList from "./user-variable/user-variable-list";
|
|
6
|
+
export * as NumberedUserVariable from "./numbered-user-variable";
|
|
7
|
+
export { UserVariableListSection };
|
|
8
|
+
export declare const CLASS_NAME = "wwa-vardump-wrapper";
|
|
9
|
+
export declare function setup(dumpElmQuery: string): HTMLElement | null;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function updateValues(dumpElement: HTMLElement | undefined | null, userVar: Map<string, number | string | boolean>): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as Api from "./api";
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare function updateValues(dumpElement: HTMLElement | undefined | null, userVar: (number | string | boolean)[]): void;
|
|
2
|
+
export declare function updateLabels(dumpElement: HTMLElement | undefined | null, userVarNameList: string[]): void;
|
|
3
|
+
export declare function updateInformation(dumpElement: HTMLElement | undefined | null, content: string, isError?: boolean): void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * as Api from "./api";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type Kind = "numbered" | "named";
|
|
2
|
+
export interface Props {
|
|
3
|
+
index: number | string;
|
|
4
|
+
value?: number | string | boolean;
|
|
5
|
+
}
|
|
6
|
+
export declare const CLASS_NAME = "user-variable-card";
|
|
7
|
+
export declare function createElement({ index, value }: Props): HTMLElement;
|
|
8
|
+
export declare function setupLabel(element: HTMLElement, labelElement: HTMLElement): void;
|
|
9
|
+
export declare function setValue(element: HTMLElement, value?: number | string | boolean): void;
|
|
10
|
+
export declare function clearValue(element: HTMLElement): void;
|
|
11
|
+
export declare function getLabelElement(element: HTMLElement): HTMLElement | null;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as UserVariableCard from "../user-variable-card";
|
|
2
|
+
export declare const CLASS_NAME = "user-variable-list";
|
|
3
|
+
export interface Props {
|
|
4
|
+
kind: UserVariableCard.Kind;
|
|
5
|
+
}
|
|
6
|
+
export declare function createElement({ kind }: Props): HTMLElement;
|
|
7
|
+
export declare function createListItemElement({ index, value, }: {
|
|
8
|
+
index: number | string;
|
|
9
|
+
value?: number | string | boolean;
|
|
10
|
+
}): HTMLLIElement;
|
|
11
|
+
export declare function appendNewListItemElement(element: HTMLElement, { index, value }: {
|
|
12
|
+
index: number | string;
|
|
13
|
+
value: number | string | boolean;
|
|
14
|
+
}): void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as Information from "./information";
|
|
2
|
+
export { Information };
|
|
3
|
+
export interface Props {
|
|
4
|
+
heading: {
|
|
5
|
+
text: string;
|
|
6
|
+
};
|
|
7
|
+
contentVisibilityToggleButton: {
|
|
8
|
+
onClick?: (ev: MouseEvent) => any;
|
|
9
|
+
};
|
|
10
|
+
information?: Record<never, never>;
|
|
11
|
+
}
|
|
12
|
+
export declare function createElement({ heading, contentVisibilityToggleButton, information, }: Props): HTMLElement;
|
|
13
|
+
export declare function setContentVisibilityToggleButtonText(element: HTMLElement, active: boolean): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as Header from "./header";
|
|
2
|
+
import type * as UserVariableCard from "../user-variable-card";
|
|
3
|
+
export declare const CLASS_NAME = "user-variable-list-section";
|
|
4
|
+
export { Header };
|
|
5
|
+
export interface Props {
|
|
6
|
+
kind: UserVariableCard.Kind;
|
|
7
|
+
}
|
|
8
|
+
export declare function createElement({ kind }: Props): HTMLElement;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wwawing/engine",
|
|
3
|
-
"version": "3.12.
|
|
3
|
+
"version": "3.12.11",
|
|
4
4
|
"description": "World Wide Adventure: an RPG Engine.",
|
|
5
5
|
"main": "./lib/wwa.js",
|
|
6
6
|
"files": [
|
|
@@ -48,14 +48,14 @@
|
|
|
48
48
|
"@types/pug": "^2.0.6",
|
|
49
49
|
"@types/terser-webpack-plugin": "^5.2.0",
|
|
50
50
|
"@types/webpack": "^5.28.0",
|
|
51
|
-
"@wwawing/assets": "^3.12.
|
|
52
|
-
"@wwawing/common-interface": "^3.12.
|
|
53
|
-
"@wwawing/debug-server": "^3.12.
|
|
54
|
-
"@wwawing/event-emitter": "^3.12.
|
|
55
|
-
"@wwawing/loader": "^3.12.
|
|
56
|
-
"@wwawing/page-generator": "^3.12.
|
|
57
|
-
"@wwawing/styles": "^3.12.
|
|
58
|
-
"@wwawing/virtual-pad": "^3.12.
|
|
51
|
+
"@wwawing/assets": "^3.12.11",
|
|
52
|
+
"@wwawing/common-interface": "^3.12.11",
|
|
53
|
+
"@wwawing/debug-server": "^3.12.11",
|
|
54
|
+
"@wwawing/event-emitter": "^3.12.11",
|
|
55
|
+
"@wwawing/loader": "^3.12.11",
|
|
56
|
+
"@wwawing/page-generator": "^3.12.11",
|
|
57
|
+
"@wwawing/styles": "^3.12.11",
|
|
58
|
+
"@wwawing/virtual-pad": "^3.12.11",
|
|
59
59
|
"crypto-js": "^4.1.1",
|
|
60
60
|
"jest": "^29.5.0",
|
|
61
61
|
"jest-cli": "^29.5.0",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"node": ">=18",
|
|
79
79
|
"npm": ">=8"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "9cd59237d23c90c4d6c1a9eed2c5eae337948941"
|
|
82
82
|
}
|