用户:
孤僻的疾电猴XDlD查看:10 回复:6 评论:10 创建时间:2023-02-05T13:54:01

eee...很简单的
如果你想加入hasArrow的效果
你不能在textDialog(懒得打)下面加
你要在textDialog这个函数中加
比如这样:
async function textDialog (entity, content, title, hasArrow) {//可以不加async
return entity.player.dialog({
type: Box3Dialog.TEXT,
content,
title,
hasArrow: true//开启
})
}点赞1
评论
顺便再打一些代码:
async function selectDialog(entity, content, options, title) {
return await entity.player.dialog({
type: Box3DialogType.SELECT,
content,
options,
title,
})
}
//用法:selectDialog(entity, 'content', ['options1','options2'], 'title')
点赞0
评论
再打一些:
async function inputDialog(entity, content, title) {
return await entity.player.dialog({
type: Box3DialogType.INPUT,
content,
title,
})
}
//用法:inputDialog(entity, 'content', 'title')
//这是输入形式的!!!(input)点赞0
评论