Dota 2 Workshop Tools/Panorama/Debugger: Difference between revisions
Jump to navigation
Jump to search
Note:Debug工具是很吃资源的,开启的时候会明显拖累游戏。
m (Removed protection from "Dota 2 Workshop Tools/Panorama/Debugger") |
No edit summary |
||
Line 1: | Line 1: | ||
{{otherlang2 | |||
|title = Panorama-Debug工具 | |||
|en= Dota 2 Workshop Tools/Panorama/Debugger | |||
}} | |||
[[File:Panorama debugger.png|thumb|300px|right|caption|Panorama debugging tool]] | [[File:Panorama debugger.png|thumb|300px|right|caption|Panorama debugging tool]] | ||
[[Dota 2 Workshop Tools/Panorama|Panorama]] | 受网络开发工具链的启发,[[Dota 2 Workshop Tools/Panorama|Panorama]] 也具有一个强大的内置debug工具。开启Debugger的方法如下:按下F6,将光标移动到一块PanoramaUI上,然后点击。Deubg窗口将会开启,显示被选择UI的具体内容和所处环境(如果你没法点击这个UI,比如说它被设定为 <code>hittest='false'</code> ,那么你可以先点击一块别的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). | There are two main parts of the debugger: the panel hierarchy (on the left) and details about the selected panel (on the right). | ||
{{note| | {{note|Debug工具是很吃资源的,开启的时候会明显拖累游戏。}} | ||
== | == 板继承== | ||
板继承会完整地显示一个树状图,包含所有在UI中显示的板元素。 | |||
== 板的具体信息 == | |||
这部分Debugger会显示所有应用到板上的CSS规则,并且会指明哪一条最终决定了某个属性值。如果将光标悬停在某个CSS属性上,将会跳出一个提示栏,显示这个属性的具体信息和它的合法值。 | |||
你也可以显示所有板属性最终计算后的值。 | |||
[[Category:Panorama]] | [[Category:Panorama]] | ||
[[Category:Dota 2 Workshop Tools]] | [[Category:Dota 2 Workshop Tools]] |
Revision as of 00:37, 31 January 2016
受网络开发工具链的启发,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属性上,将会跳出一个提示栏,显示这个属性的具体信息和它的合法值。
你也可以显示所有板属性最终计算后的值。