@minecraft
    正在准备搜索索引...

    接口 MessageBoxResult预览版

    The result returned when an MessageBox is closed. Contains the reason the message box was closed and the player's button selection, if applicable.

    interface MessageBoxResult {
        closeReason: DataDrivenScreenClosedReason;
        selection?: number;
    }
    索引

    属性

    The reason the message box was closed.

    selection?: number

    The index of the button the player selected. Not set if the message box was closed without a button selection (e.g., the player was busy or the server closed it).