-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add mp.input
menu support and fix lua interpreter compatibility
#24
Conversation
mp.input.select()
menu support and fix lua interpreter compatibilitymp.input
menu support and fix lua interpreter compatibility
input.get()中不存在无法触发submit回调的问题,只有input.select()才会有是吗?我晚上回寝室也在电脑上测试一下看看,找找是什么问题。 |
对,input.get() 中表现正常,只有 input.select() 里的回调出现了问题 |
mp.input
menu support and fix lua interpreter compatibilitymp.input
menu support and fix lua interpreter compatibility
突然想到了有可能是 效果示意: test2.mp4 |
3616f7f
to
f04d552
Compare
原来如此,我大概猜测到了是input-event没有被传递给正确的回调函数,因为在日志里确实看到了前后两个submit事件都是被触发了的,也carry了正确的参数,但回调函数没有执行。我debug了半天一直没想明白是为什么,原来是这样。
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks all good to me
feat: add `mp.input` menu support and fix lua interpreter compatibility
feat: add `mp.input` menu support and fix lua interpreter compatibility
代码尚未完成。奇怪的是脚本在input.select
中无法触发submit
的回调,但在其他脚本中测试正常,按照官方手册的用法使用需要有人帮助定位和解决这一问题Edit: 已解决