Class: MessageFormData
Beta
Builds a simple two-button modal dialog. 构建一个简单的双按钮模态对话框。
Examples
Constructors
Constructor
new MessageFormData():
MessageFormData
Beta
Returns
MessageFormData
Methods
body()
body(
bodyText):MessageFormData
Beta
Parameters
bodyText
any
Returns
MessageFormData
Remarks
Method that sets the body text for the modal form. 设置模态表单正文文本的方法。
button1()
button1(
text):MessageFormData
Beta
Parameters
text
any
Returns
MessageFormData
Remarks
Method that sets the text for the first button of the dialog. 设置对话框第一个按钮文本的方法。
button2()
button2(
text):MessageFormData
Beta
Parameters
text
any
Returns
MessageFormData
Remarks
This method sets the text for the second button on the dialog. 此方法设置对话框上第二个按钮的文本。
show()
show(
player):Promise<MessageFormResponse>
World Mutation Beta
Parameters
player
Player
Player to show this dialog to. 要向其展示此对话框的玩家。
Returns
Promise<MessageFormResponse>
Remarks
Creates and shows this modal popup form. Returns asynchronously when the player confirms or cancels the dialog. 创建并显示此模态弹出表单。当玩家确认或取消对话框时异步返回。
Throws
This function can throw errors.
title()
title(
titleText):MessageFormData
Beta
Parameters
titleText
any
Returns
MessageFormData
Remarks
This builder method sets the title for the modal dialog. 此构建器方法设置模态对话框的标题。
