mirror of
https://github.com/GTNewHorizons/GuideNH.git
synced 2026-12-06 17:17:04 +00:00
Page:
Debug Mode zh CN
Pages
Annotations zh CN
Annotations
Debug Mode zh CN
Debug Mode
Developer Integration zh CN
Developer Integration
Examples zh CN
Examples
FAQ zh CN
FAQ
GameScene zh CN
GameScene
Getting Started zh CN
Getting Started
Guide Page Format zh CN
Guide Page Format
Home en US
Home zh CN
Home
Images And Assets zh CN
Images And Assets
Installation zh CN
Installation
Live Preview zh CN
Live Preview
Localization zh CN
Localization
Mod Compatibility zh CN
Mod Compatibility
Navigation zh CN
Navigation
Ponder zh CN
Ponder
Recipes zh CN
Recipes
Search zh CN
Search
Server Integration zh CN
Server Integration
Structure Export zh CN
Structure Export
Syntax Completion zh CN
Syntax Completion
Tags Reference zh CN
Tags Reference
Templates zh CN
Templates
No results
This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
调试模式
调试覆盖层帮助作者检查页面布局、交互区域和场景元素。
开启
在任意 GuideNH 界面按 Ctrl + Shift + Alt + C 切换,或在模组配置中启用 GUI Debug Overlay(guiDebugMode)。
检查页面
- 左下信息面板显示鼠标位置、FPS、内存、悬停元素及可选的父元素信息。
- 开启元素轮廓后,可核对位置、尺寸和嵌套范围。
- 底部
Debug Options菜单可切换显示内容、打印文档树、重新编译当前页或导出调试数据。 - 文档树与导出数据写入 Minecraft 日志;报告问题时附上页面源文件、复现步骤及相关日志。
配置
设置位于 config/guidenh/guidenh.cfg 的调试分类,或可通过模组配置界面调整。
| 设置 | 默认值 | 范围 |
|---|---|---|
debugTextScale |
0.8 |
0.5–2.0 |
debugOutlineThickness |
2.0 |
0.5–5.0 px |
debugDashAnimationCycleMs |
2000 |
500–10000 ms |
debugDashWidth |
2.0 |
0.5–5.0 px |
debugDashOnLength |
4.0 |
1–20 px |
debugDashOffLength |
4.0 |
1–20 px |
可分别控制悬停/父元素信息、轮廓、FPS、内存和鼠标位置。关闭调试模式后不显示覆盖层,设置会保留。
模组开发者可参阅 开发者集成 注册自定义元素信息。
GuideNH Wiki
English
- Home
- Installation
- Getting Started
- Live Preview
- Guide Page Format
- Navigation
- Search
- Images And Assets
- Tags Reference
- Syntax Completion
- GameScene
- Structure Export
- Annotations
- Ponder
- Recipes
- Localization
- Templates
- Examples
- Mod Compatibility
- Server Integration
- Debug Mode
- Developer Integration
- FAQ