Zh/Dota 2 Workshop Tools/Panorama/Debugger: Difference between revisions
< Zh | Dota 2 Workshop Tools | Panorama
Jump to navigation
Jump to search
(Created page with "{{otherlang2 |title = Panorama-Debug工具 |en= Dota 2 Workshop Tools/Panorama/Debugger }} thumb|300px|right|caption|Panorama debugging tool...") |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{ | {{lang|title=Panorama-Debug工具|Dota 2 Workshop Tools/Panorama/Debugger}} | ||
|title = Panorama-Debug工具 | |||
| | |||
}} | |||
[[File:Panorama debugger.png|thumb|300px|right|caption|Panorama debugging tool]] | [[File:Panorama debugger.png|thumb|300px|right|caption|Panorama debugging tool]] | ||
Revision as of 19:39, 15 December 2022
受网络开发工具链的启发,Panorama 也具有一个强大的内置debug工具。开启Debugger的方法如下:按下F6,将光标移动到一块PanoramaUI上,然后点击。Deubg窗口将会开启,显示被选择UI的具体内容和所处环境(如果你没法点击这个UI,比如说它被设定为 hittest='false'
,那么你可以先点击一块别的UI,然后在板继承里手动找到你要找的板。)。
Debugger工具分为两个主要部分:板的继承(在左侧)和所选择板的具体信息(在右侧)。 There are two main parts of the debugger: the panel hierarchy (on the left) and details about the selected panel (on the right).

板继承
板继承会完整地显示一个树状图,包含所有在UI中显示的板元素。
板的具体信息
这部分Debugger会显示所有应用到板上的CSS规则,并且会指明哪一条最终决定了某个属性值。如果将光标悬停在某个CSS属性上,将会跳出一个提示栏,显示这个属性的具体信息和它的合法值。
你也可以显示所有板属性最终计算后的值。