local options = {
{ value = 'scrap_metal', label = '废金属' },
{ value = 'stone', label = '石头' },
{ value = 'raw_copper', label = '粗铜矿石' },
{ value = 'raw_iron', label = '生铁' },
}
lib.inputDialog('测试', {
{ type = 'select', label = '材料', description = '出售东西', options = options },
{ type = 'number', label = '数量', options = options, required = true },
})
这样竟然是正常的你复制我这段代码试试,看看是不是输入法出了什么问题导致的。
Lua:local options = { { value = 'scrap_metal', label = '废金属' }, { value = 'stone', label = '石头' }, { value = 'raw_copper', label = '粗铜矿石' }, { value = 'raw_iron', label = '生铁' }, } lib.inputDialog('测试', { { type = 'select', label = '材料', description = '出售东西', options = options }, { type = 'number', label = '数量', options = options, required = true }, })