@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/dist/Gui/DialogGui.d.ts
CHANGED
|
@@ -17,6 +17,10 @@ export interface DialogOptions {
|
|
|
17
17
|
tranparent?: boolean;
|
|
18
18
|
typewriterEffect?: boolean;
|
|
19
19
|
talkWith?: RpgPlayer;
|
|
20
|
+
face?: {
|
|
21
|
+
id: string;
|
|
22
|
+
expression: string;
|
|
23
|
+
};
|
|
20
24
|
}
|
|
21
25
|
export declare class DialogGui extends Gui {
|
|
22
26
|
constructor(player: RpgPlayer);
|
package/dist/Gui/index.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -27222,6 +27222,12 @@ function WithMoveManager(Base) {
|
|
|
27222
27222
|
};
|
|
27223
27223
|
}
|
|
27224
27224
|
|
|
27225
|
+
var DialogPosition = /* @__PURE__ */ ((DialogPosition2) => {
|
|
27226
|
+
DialogPosition2["Top"] = "top";
|
|
27227
|
+
DialogPosition2["Bottom"] = "bottom";
|
|
27228
|
+
DialogPosition2["Middle"] = "middle";
|
|
27229
|
+
return DialogPosition2;
|
|
27230
|
+
})(DialogPosition || {});
|
|
27225
27231
|
class DialogGui extends Gui {
|
|
27226
27232
|
constructor(player) {
|
|
27227
27233
|
super(PrebuiltGui.Dialog, player);
|
|
@@ -27247,7 +27253,8 @@ class DialogGui extends Gui {
|
|
|
27247
27253
|
// remove value property. It is not useful to know this on the client side.
|
|
27248
27254
|
choices: options.choices.map((choice) => ({
|
|
27249
27255
|
text: choice.text
|
|
27250
|
-
}))
|
|
27256
|
+
})),
|
|
27257
|
+
face: options.face
|
|
27251
27258
|
};
|
|
27252
27259
|
return super.open({
|
|
27253
27260
|
message,
|
|
@@ -30568,5 +30575,5 @@ function provideServerModules(modules) {
|
|
|
30568
30575
|
});
|
|
30569
30576
|
}
|
|
30570
30577
|
|
|
30571
|
-
export { AGI, AGI_CURVE, ATK, ArraySubject$2 as ArraySubject, COEFFICIENT_ELEMENTS, DAMAGE_CRITICAL, DAMAGE_GUARD, DAMAGE_PHYSIC, DAMAGE_SKILL, DEX, DEX_CURVE, Frequency, INT, INT_CURVE, MAXHP, MAXHP_CURVE, MAXSP, MAXSP_CURVE, Move, ObjectSubject$2 as ObjectSubject, PDEF, RpgEvent, RpgMap, RpgPlayer, RpgServerEngine, SDEF, STR, STR_CURVE, Speed, WithMoveManager, clearInject, computed$2 as computed, context, createServer, effect$2 as effect, inject, isArraySubject$1 as isArraySubject, isComputed$2 as isComputed, isObjectSubject$1 as isObjectSubject, isSignal$2 as isSignal, provideServerModules, setInject, signal$2 as signal, untracked };
|
|
30578
|
+
export { AGI, AGI_CURVE, ATK, ArraySubject$2 as ArraySubject, COEFFICIENT_ELEMENTS, DAMAGE_CRITICAL, DAMAGE_GUARD, DAMAGE_PHYSIC, DAMAGE_SKILL, DEX, DEX_CURVE, DialogGui, DialogPosition, Frequency, Gui, INT, INT_CURVE, MAXHP, MAXHP_CURVE, MAXSP, MAXSP_CURVE, MenuGui, Move, NotificationGui, ObjectSubject$2 as ObjectSubject, PDEF, RpgEvent, RpgMap, RpgPlayer, RpgServerEngine, SDEF, STR, STR_CURVE, ShopGui, Speed, WithMoveManager, clearInject, computed$2 as computed, context, createServer, effect$2 as effect, inject, isArraySubject$1 as isArraySubject, isComputed$2 as isComputed, isObjectSubject$1 as isObjectSubject, isSignal$2 as isSignal, provideServerModules, setInject, signal$2 as signal, untracked };
|
|
30572
30579
|
//# sourceMappingURL=index.js.map
|