Skip to content

Commit 6d4e14e

Browse files
committed
up
1 parent 37c00bf commit 6d4e14e

6 files changed

Lines changed: 14 additions & 4 deletions

File tree

lib/FormAPIEx.cjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
'use strict';
22

3-
var version = "0.5.0";
3+
var version = "0.5.1";
44

55
const NAME = 'FormAPIEx';
66
const VERSION = (version.split('.').map((v) => Number(v)));
@@ -583,6 +583,8 @@ class SimpleFormOperational {
583583
}
584584
async sendAsync(player) {
585585
const form = new SimpleFormEx(this.buttons);
586+
form.title = this.title;
587+
form.content = this.content;
586588
form.formatter = ({ text, image }) => [text, image];
587589
const res = await form.sendAsync(player);
588590
if (res === FormClose)

lib/FormAPIEx.mjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
var version = "0.5.0";
1+
var version = "0.5.1";
22

33
const NAME = 'FormAPIEx';
44
const VERSION = (version.split('.').map((v) => Number(v)));
@@ -581,6 +581,8 @@ class SimpleFormOperational {
581581
}
582582
async sendAsync(player) {
583583
const form = new SimpleFormEx(this.buttons);
584+
form.title = this.title;
585+
form.content = this.content;
584586
form.formatter = ({ text, image }) => [text, image];
585587
const res = await form.sendAsync(player);
586588
if (res === FormClose)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "form-api-ex",
3-
"version": "0.5.0",
3+
"version": "0.5.1",
44
"description": "Work with LLSE forms easily!",
55
"main": "lib/FormAPIEx.cjs",
66
"module": "lib/FormAPIEx.mjs",

readme.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ QQ:3076823485
124124

125125
## 更新日志
126126

127+
### 0.5.1
128+
129+
- 修复 `SimpleFormOperational``title``content` 不生效的 Bug
130+
127131
### 0.5.0
128132

129133
- 使用 `FormClose` 表示玩家手动关闭表单或表单发送失败

src/simple-operational.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ export class SimpleFormOperational<R> {
1616

1717
async sendAsync(player: Player): Promise<R | FormClose> {
1818
const form = new SimpleFormEx(this.buttons);
19+
form.title = this.title;
20+
form.content = this.content;
1921
form.formatter = ({ text, image }) => [text, image];
2022
const res = await form.sendAsync(player);
2123
if (res === FormClose) return FormClose;

tooth.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://raw.githubusercontent.com/lippkg/lip/main/schemas/tooth.v2.schema.json",
33
"format_version": 2,
44
"tooth": "github.com/lgc-LLDev/FormAPIEx",
5-
"version": "0.5.0",
5+
"version": "0.5.1",
66
"info": {
77
"name": "FormAPIEx",
88
"description": "Work with LSE forms easily!",

0 commit comments

Comments
 (0)