From e7cd008d7ce07204e329fb9b7fbc3b6fd5c389c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=BE=B7=E5=AE=87?= Date: Fri, 11 Sep 2026 20:06:09 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4=E6=96=87=E6=9C=AC=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E7=9A=84=E8=AF=86=E5=88=AB=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 简化多行文本节点逻辑,明确文字与图片组件的绑定要求。 --- .../src-tauri/src/ui_editor/commands/recognition.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/recognition.rs b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/recognition.rs index 15e71f2aa..c71475440 100644 --- a/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/recognition.rs +++ b/apps/ai-game-creator-shell/src-tauri/src/ui_editor/commands/recognition.rs @@ -47,9 +47,9 @@ const SYSTEM_PROMPT: &str = r#" * 为每个节点直接返回 component. 无背景的逻辑容器返回 "PureNode",不要返回 null. 有背景的容器推荐使用Simple+不锁定宽高比的Image component. - 目前我们只做识别, 不要求图片字体参数. - 每个节点最多返回一个 component;需要多个视觉层时拆成多个节点。 + 目前我们只做识别, 不要求图片字体的具体绑定参数. 文字组件要求: 艺术字等作为图片组件, 其余正常文字要作为单独的节点识别. +* 多行文本只使用一个节点. * 不鼓励兄弟节点相互重叠. * 对于面板等容器的背景等, 必须作为父节点的组件, 禁止新增冗余的所谓"背景节点". "#;