猫史档案馆


【求助】对话框函数显示报错:‘’参数无效‘’

用户:我是一位小萌新我是一位小萌新查看:1 回复:2 评论:1 创建时间:2023-07-04T13:51:29


async function dialog_text(title,content,entity){
    const result = await entity.player.dialog({
        type: Box3DialogType.Text,
        title:title,
        content:content,
        titleTextColor: new Box3RGBAColor(1,1,1,0.8),
        titleBackgroundColor:new Box3RGBAColor(5/255,50/255,175/255,0.9),
        contentBackgroundColor: new Box3RGBAColor(40/255,100/255,220/255,0.6),
    });

}

函数调用代码(注:改函数上方事件已加入a

await dialog_text('系统','装备成功',entity)

sync):


回复

上一页1 页 / 共 1下一页
我是一位小萌新我是一位小萌新

报错图片
center_image

点赞0


评论


145a145a

Box3DialogType.TEXT

TEXT都是大写

点赞0


评论