From d68587065ca8006cd61fabcd4c5c6dad6e26a7fe Mon Sep 17 00:00:00 2001 From: sevenstars <148792757+sevenstars0@users.noreply.github.com> Date: Tue, 30 Dec 2025 10:47:57 +0800 Subject: [PATCH 1/3] =?UTF-8?q?Update=2030-UI=E8=AF=B4=E6=98=8E=E6=96=87?= =?UTF-8?q?=E6=A1=A3.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加了scroll_view中对于$touch变量的说明 --- mcguide/18-界面与交互/30-UI说明文档.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/mcguide/18-界面与交互/30-UI说明文档.md b/mcguide/18-界面与交互/30-UI说明文档.md index e202fa1..ffa2899 100644 --- a/mcguide/18-界面与交互/30-UI说明文档.md +++ b/mcguide/18-界面与交互/30-UI说明文档.md @@ -1767,7 +1767,15 @@ touch_path = scroll_view_path + "/scroll_touch/scroll_view/panel/background_and_ mouse_path = scroll_view_path + "/scroll_mouse/scroll_view/stack_panel/background_and_viewport/scrolling_view_port/scrolling_content" ``` -在PC端进行游戏时,按F11可以切换鼠标和触摸屏两种操作模式,而手机端通常只有触摸屏这一种操作模式。不同的操作模式,scroll_view的scrolling_content会生成在不同的路径下,触摸屏使用touch_path获得scrolling_content的绝对路径,而鼠标控制使用mouse_path获得。 +在PC端进行游戏时,按F11可以切换鼠标和触摸屏两种操作模式,而手机端通常只有触摸屏这一种操作模式。不同的操作模式,scroll_view的scrolling_content会生成在不同的路径下,触摸屏使用touch_path获得scrolling_content的绝对路径,而鼠标控制使用mouse_path获得。如果不想让路径随操作模式变化,可以指定$touch变量为true,此时路径将固定为touch_path。 + +```json +"scroll_view0@common.scrolling_panel": { + // 手动指定$touch变量为true + "$touch": true + ... +} +``` ### grid @@ -2641,4 +2649,4 @@ def OnRichTextCreateFinishCallback(self): ##### 使用事项 - 富文本是Python实现的一个复合控件,在生成富文本后会有部分数据缓存在RichTextItem实例中,因此不支持使用clone接口复制已创建完成的富文本,但是clone没有调用过readRichText的富文本是可行的。 - - 我们在内部会缓存路径与RichTextItem实例的映射,使用GetRichTextItem接口,传入相同路径返回的RichTextItem实例也会是相同的。 \ No newline at end of file + - 我们在内部会缓存路径与RichTextItem实例的映射,使用GetRichTextItem接口,传入相同路径返回的RichTextItem实例也会是相同的。 From df4bece89b9ce65e815219fefe9a1fd00f308ebd Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Fri, 9 Jan 2026 08:04:54 +0000 Subject: [PATCH 2/3] docs: update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e4a2e00..77a1121 100644 --- a/README.md +++ b/README.md @@ -90,6 +90,7 @@ git push --set-upstream origin your-branch-name MCNeteaseDevs
MCNeteaseDevs

📖 sevenstars
sevenstars

📖 LiangJi23333
LiangJi23333

📖 + Nacalpha
Nacalpha

📖 From 31d219956ffd9597fb8d50d4050490ec99e25de9 Mon Sep 17 00:00:00 2001 From: "allcontributors[bot]" <46447321+allcontributors[bot]@users.noreply.github.com> Date: Fri, 9 Jan 2026 08:04:55 +0000 Subject: [PATCH 3/3] docs: update .all-contributorsrc --- .all-contributorsrc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.all-contributorsrc b/.all-contributorsrc index 32cb3d5..30179c0 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -34,6 +34,15 @@ "contributions": [ "doc" ] + }, + { + "login": "Nacalpha", + "name": "Nacalpha", + "avatar_url": "https://avatars.githubusercontent.com/u/128111367?v=4", + "profile": "https://github.com/Nacalpha", + "contributions": [ + "doc" + ] } ] }