xieluyang912/dsh-live2d-widget ↗★ 1
dsh-live2d-widget
DSH Web 界面的 Live2D 桌宠挂件:内置 4 个可爱日系角色可自由切换,点击模型弹出符合人设的聊天气泡(台词可自定义),可拖动摆位、调整大小与透明度,支持 zip / 文件夹 / 本机路径导入自己的模型 适合喜爱Live2D角色、想要在Web界面添加可交互二次元挂件的用户。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:xieluyang912/dsh-live2d-widgetドキュメント
README 全文を読む ↗Usage
After opening DSH a character appears in the bottom-left corner. The round L2D button at her top-right opens the control panel.
| Section | What it does |
|---|---|
| Model | Click any entry to switch instantly. Entries marked 导入 are yours; × deletes them. |
| 大小 | Overall size (0.4× – 2.2×). This resizes the canvas, so the character grows with it and is never cropped. |
| 适配 | How much of the canvas the model fills (0.1 – 3.0). Mainly for imported models; the bundled ones are pre-calibrated, so 1 is right. |
| 左右 / 上下 | Fine position inside the canvas (−2 – 2). |
| 透明 | Overall opacity (15 – 100). |
| 左右翻转 / 换边 | Mirror, and swap between the bottom-left and bottom-right corners. |
| 随机动作 / 随机表情 | Poke the model on demand (greyed out when it has no motions or expressions). |
| 恢复默认 | Reset the current model's size, fit, position and appearance to the built-in defaults. |
| 隐藏模型 | Tuck it away; Ctrl+Shift+L brings it back. |
| 点击台词 | Collapsible: bubble toggle, dwell time, line editor. |
| 导入自己的模型 | Collapsible: the three import paths. |
Three ways to set a value
Every number can be set three ways, and all three stay in sync:
- Drag the slider — the obvious one.
- Type a number — into the field on the right; commit with Enter or by clicking away. Out-of-range values clamp to the limit, and unparsable text reverts to the value still in effect.
- Press and drag the number sideways — scrubbing (about 320px sweeps the whole range). If you press and release without moving, the field focuses so you can type instead.
Speech bubble
- Expand 点击台词 and tick 点击模型时说话; clicking the model then pops a random line.
- In the text box, one line per message. "保存台词" commits, "恢复默认台词" restores the character's built-in persona, "试说一句" previews immediately.
- 停留 controls how long the bubble stays up (2 – 20s).
- Lines are stored per model, so each character can have its own voice.
- Switching models also greets you with a line.
The shipped lines are written in character — Rem says 「雷姆,会一直相信你的。」, Sagiri says 「哥哥,你回来啦……」, Histoire says 「知识,就是力量哦。」.
Dragging and shortcuts
Hold the model and drag it wherever you like; it is remembered. A drag never also fires a line. Placing it near the top of the screen is fine — the panel shrinks itself so it stays on screen.
| Action | Effect |
|---|---|
| Drag the model | Move it (remembered) |
| Single click the model | Say a line |
Ctrl+Shift+L | Show / hide the model |
| Click the L2D button | Open / close the control panel |