新增桌宠模式!#7
Open
SCPZ24 wants to merge 14 commits into
Open
Conversation
…d fullscreen apps; implement selection persistence for Live2D models
…desktop and web; enhance Live2D model handling with new event hooks and improve error handling during model uploads.
… features including click-through resize, drag hover feedback, hover outline and character hide, and head-first framing for Live2D. These files are no longer relevant to the current project direction.
…n main.js - Updated README.md to include instructions for desktop setup. - Improved Python command resolution in main.js to dynamically find the Python executable, enhancing compatibility across platforms. - Added error handling for cases where Python is not found, providing user feedback through a dialog box.
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.
原先只能在
/web端上和bot交互。现在我基于Electron实现了桌宠模式。实现方法是再加一个转发口
/desktop,捕获/web中人物的模型、动作等信息,实时映射到Electron画框内。桌面端画框无背景,仅live2d人偶。且会持续看向用户鼠标。
鼠标可以点击到画框后面的内容(所以不影响用户操作电脑)。
当用户的鼠标移动进画框,画框周边会描一圈边。用户可以拖拽四角来调整画框大小。
鼠标移动到人物上,人物会隐藏。
画框右下角的三个按钮功能分别是:手-拖拽调整桌面画框位置;麦克风-开始录音(ASR)聊天;云-跳转置web端。
桌面端启动方式为