feat: add mp.input menu support and fix lua interpreter compatibility#24
Merged
Tony15246 merged 2 commits intoTony15246:mainfrom Oct 16, 2024
Merged
feat: add mp.input menu support and fix lua interpreter compatibility#24Tony15246 merged 2 commits intoTony15246:mainfrom
mp.input menu support and fix lua interpreter compatibility#24Tony15246 merged 2 commits intoTony15246:mainfrom
Conversation
mp.input.select() menu support and fix lua interpreter compatibilitymp.input menu support and fix lua interpreter compatibility
Owner
input.get()中不存在无法触发submit回调的问题,只有input.select()才会有是吗?我晚上回寝室也在电脑上测试一下看看,找找是什么问题。 |
Collaborator
Author
对,input.get() 中表现正常,只有 input.select() 里的回调出现了问题 |
mp.input menu support and fix lua interpreter compatibilitymp.input menu support and fix lua interpreter compatibility
Collaborator
Author
|
突然想到了有可能是 效果示意: test2.mp4 |
3616f7f to
f04d552
Compare
Owner
原来如此,我大概猜测到了是input-event没有被传递给正确的回调函数,因为在日志里确实看到了前后两个submit事件都是被触发了的,也carry了正确的参数,但回调函数没有执行。我debug了半天一直没想明白是为什么,原来是这样。 |
dyphire
pushed a commit
to dyphire/uosc_danmaku
that referenced
this pull request
Jan 25, 2025
feat: add `mp.input` menu support and fix lua interpreter compatibility
dyphire
pushed a commit
to dyphire/uosc_danmaku
that referenced
this pull request
Jan 25, 2025
feat: add `mp.input` menu support and fix lua interpreter compatibility
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
代码尚未完成。奇怪的是脚本在input.select中无法触发submit的回调,但在其他脚本中测试正常,按照官方手册的用法使用需要有人帮助定位和解决这一问题Edit: 已解决