vvvv-editor-extensions
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseEditor Extensions
编辑器扩展
Extensions are standard VL patches saved with a suffix. They run automatically when open in the editor.
.HDE.vl扩展是保存为后缀的标准VL补丁。它们在编辑器中打开时会自动运行。
.HDE.vlFile Naming
文件命名规则
| Context | Required Name |
|---|---|
| Standalone extension | |
| Extension-only NuGet | |
| Mixed NuGet main doc | |
| Mixed NuGet extension doc | |
| 场景 | 要求的名称 |
|---|---|
| 独立扩展 | |
| 仅包含扩展的NuGet | |
| 混合NuGet主文档 | |
| 混合NuGet扩展文档 | |
Required NuGet References
必需的NuGet引用
- VL.HDE — provides node, window types,
CommandWindowFactory - VL.Lang — provides API nodes under the category
Session
- VL.HDE — 提供节点、窗口类型、
CommandWindowFactory - VL.Lang — 在分类下提供API节点
Session
Command Node
Command节点
Registers a command in the editor menu:
| Pin | Purpose |
|---|---|
| Menu text |
| Show/hide the command |
| Keyboard binding |
| Output | Triggers (bang) on activation |
Multiple nodes can live in one document.
Command.HDE.vlWarning: A runtime error in one command may affect all others in the same document.
在编辑器菜单中注册命令:
| 引脚 | 用途 |
|---|---|
| 菜单文本 |
| 显示/隐藏命令 |
| 键盘绑定 |
| 输出 | 激活时触发(bang信号) |
一个文档中可以包含多个节点。
.HDE.vlCommand注意:单个命令中的运行时错误可能会影响同一文档中的其他所有命令。
Window Types
窗口类型
| Type | Behavior |
|---|---|
| Slimmed-down Skia renderer window |
| Always-on-top, no focus steal |
| 类型 | 行为 |
|---|---|
| 轻量级Skia渲染器窗口 |
| 始终置顶,不会窃取焦点 |
Docking
停靠功能
Wrap window with node. Connect and pins.
WindowFactoryWindowContextWindowTemplate:
VL.HDE/Template.HDE.vl使用节点包裹窗口。连接和引脚。
WindowFactoryWindowContextWindow模板:
VL.HDE/Template.HDE.vlAPI Access
API访问
Access hovered/selected nodes, read/write pins via category nodes. Browse available API in the HelpBrowser's section.
VL.LangSessionAPI通过的分类节点访问悬停/选中的节点,读取/写入引脚。可在HelpBrowser的部分浏览可用API。
VL.LangSessionAPIDeveloper Shortcuts
开发者快捷键
- Shift+F9 — restarts all extensions simultaneously
- Shift+F9 — 同时重启所有扩展
Limitations
限制
- Settings panel integration is not yet possible
- Extensions only run in the editor, not in exported applications
- 暂不支持设置面板集成
- 扩展仅在编辑器中运行,在导出的应用程序中不会运行