File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11'use strict' ;
22
3- var version = "0.5.0 " ;
3+ var version = "0.5.1 " ;
44
55const NAME = 'FormAPIEx' ;
66const 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 )
Original file line number Diff line number Diff line change 1- var version = "0.5.0 " ;
1+ var version = "0.5.1 " ;
22
33const NAME = 'FormAPIEx' ;
44const 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 )
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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 ` 表示玩家手动关闭表单或表单发送失败
Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff line change 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!" ,
You can’t perform that action at this time.
0 commit comments