Skip to content

新增桌宠模式!#7

Open
SCPZ24 wants to merge 14 commits into
KdaiP:mainfrom
SCPZ24:main
Open

新增桌宠模式!#7
SCPZ24 wants to merge 14 commits into
KdaiP:mainfrom
SCPZ24:main

Conversation

@SCPZ24
Copy link
Copy Markdown

@SCPZ24 SCPZ24 commented Apr 12, 2026

原先只能在/web端上和bot交互。

现在我基于Electron实现了桌宠模式。实现方法是再加一个转发口/desktop,捕获/web中人物的模型、动作等信息,实时映射到Electron画框内。

截屏2026-04-12 23 43 36

桌面端画框无背景,仅live2d人偶。且会持续看向用户鼠标。

鼠标可以点击到画框后面的内容(所以不影响用户操作电脑)。

截屏2026-04-12 23 41 21

当用户的鼠标移动进画框,画框周边会描一圈边。用户可以拖拽四角来调整画框大小。

鼠标移动到人物上,人物会隐藏。

截屏2026-04-12 23 49 16

画框右下角的三个按钮功能分别是:手-拖拽调整桌面画框位置;麦克风-开始录音(ASR)聊天;云-跳转置web端。

桌面端启动方式为

cd desktop
npm install #第一次启动
npm start

SCPZ24 added 14 commits April 11, 2026 19:47
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant