Merge pull request #40 from sevenstars0/patch-3

Update 30-UI说明文档.md
This commit is contained in:
MCNeteaseDevs
2026-01-09 16:02:43 +08:00
committed by GitHub

View File

@@ -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