@rpgjs/server 5.0.0-alpha.11 → 5.0.0-alpha.12
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/Gui/DialogGui.d.ts +4 -0
- package/dist/Gui/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/Gui/DialogGui.ts +7 -2
- package/src/Gui/index.ts +3 -1
- package/src/index.ts +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rpgjs/server",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.12",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"publishConfig": {
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"description": "",
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@rpgjs/common": "5.0.0-alpha.
|
|
14
|
+
"@rpgjs/common": "5.0.0-alpha.12",
|
|
15
15
|
"@rpgjs/database": "^4.3.0",
|
|
16
16
|
"@signe/di": "^2.4.0",
|
|
17
17
|
"@signe/reactive": "^2.4.0",
|
package/src/Gui/DialogGui.ts
CHANGED
|
@@ -18,7 +18,11 @@ export interface DialogOptions {
|
|
|
18
18
|
autoClose?: boolean,
|
|
19
19
|
tranparent?: boolean,
|
|
20
20
|
typewriterEffect?: boolean,
|
|
21
|
-
talkWith?: RpgPlayer
|
|
21
|
+
talkWith?: RpgPlayer,
|
|
22
|
+
face?: {
|
|
23
|
+
id: string,
|
|
24
|
+
expression: string
|
|
25
|
+
},
|
|
22
26
|
}
|
|
23
27
|
|
|
24
28
|
export class DialogGui extends Gui {
|
|
@@ -47,7 +51,8 @@ export class DialogGui extends Gui {
|
|
|
47
51
|
// remove value property. It is not useful to know this on the client side.
|
|
48
52
|
choices: options.choices.map(choice => ({
|
|
49
53
|
text: choice.text
|
|
50
|
-
}))
|
|
54
|
+
})),
|
|
55
|
+
face: options.face
|
|
51
56
|
}
|
|
52
57
|
return super.open({
|
|
53
58
|
message,
|
package/src/Gui/index.ts
CHANGED
package/src/index.ts
CHANGED