From caf54f3d04bef201b6e7fd5264b6a6d896fbb837 Mon Sep 17 00:00:00 2001 From: next <1406099478@qq.com> Date: Sat, 21 Dec 2019 21:02:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=B0=E7=89=88chrome?= =?UTF-8?q?=E5=9C=BA=E6=99=AF=E6=A0=91=E4=B8=8D=E6=98=BE=E7=A4=BA=E9=97=AE?= =?UTF-8?q?=E9=A2=98=EF=BC=8C=E4=BC=98=E5=8C=96=E6=A0=87=E8=AE=B0=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 +- css/themes/dark.css | 45 +++--- index.html | 381 ++++++++++++++++++++++---------------------- js/app.js | 6 +- version.json | 2 +- 5 files changed, 217 insertions(+), 219 deletions(-) diff --git a/README.md b/README.md index 1b25aaf..8ccb998 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# ccc-devtools v2.3.2 +# ccc-devtools v2.3.3 Cocos Creator 网页调试工具,运行时查看、修改节点树,实时更新节点属性,可视化显示缓存资源。 ## 预览 diff --git a/css/themes/dark.css b/css/themes/dark.css index 4669f70..3ab028b 100644 --- a/css/themes/dark.css +++ b/css/themes/dark.css @@ -2,7 +2,7 @@ background: #444 !important; } -.right-pane *, +.right-panel *, .ivu-split-trigger, .el-color-dropdown, .el-color-dropdown *:not(.el-button--text), @@ -10,47 +10,48 @@ .el-popover * , #panelCtl .el-button{ border-color: #333 !important; + color: #bbb !important; } .el-popover, .el-color-dropdown input, -.right-pane input, -.right-pane textarea, -.right-pane .el-checkbox__inner:not(.is-checked) { +.right-panel input, +.right-panel textarea, +.right-panel .el-checkbox__inner:not(.is-checked) { background-color: #333 !important; color: #bbb !important; } -.right-pane button, -.right-pane span[role='button'], -.right-pane .ant-tree, -.right-pane .demo-split-pane, -.right-pane .el-card, -.right-pane .el-tree, +.right-panel button, +.right-panel span[role='button'], +.right-panel .ant-tree, +.right-panel .demo-split-pane, +.right-panel .el-card, +.right-panel .el-tree, .el-color-dropdown, .el-popover { background-color: #222 !important; } -.right-pane .el-button { +.right-panel .el-button { padding-left: 10px !important; padding-right: 10px !important; } -.right-pane .top-pane span, -.right-pane .ant-tree, -.right-pane .demo-split-pane, -.right-pane .el-card, -.right-pane .el-tree { +.right-panel .top-pane span, +.right-panel .ant-tree, +.right-panel .demo-split-pane, +.right-panel .el-card, +.right-panel .el-tree { color: #aaa !important; } -.right-pane .ant-tree-node-selected { +.right-panel .ant-tree-node-selected { background-color: #456 !important; } -.right-pane .ant-tree-node-content-wrapper:hover, -.right-pane .el-tree-node .el-tree-node__content:hover { +.right-panel .ant-tree-node-content-wrapper:hover, +.right-panel .el-tree-node .el-tree-node__content:hover { background-color: #567 !important; } @@ -60,13 +61,15 @@ background-color: #367 !important; } -.right-pane .el-checkbox__label, -.right-pane .el-button, +.right-panel .el-checkbox__label, +.right-panel .el-button, .el-color-dropdown, button { color: #59a !important; background-color: #222 !important; } +.tree-panel, +.prop-panel, .ivu-modal-content, .ivu-table-column-center, .ivu-modal-header-inner { diff --git a/index.html b/index.html index 4aba1a3..fcdc55d 100644 --- a/index.html +++ b/index.html @@ -4,200 +4,195 @@
-
- - -
-
-
- -
- - -
- - - - - - {{ node.label }} - - - -
- 自动刷新 - - -
- - -
- -
-
- - - - - - - - -
2.5d
-
- -
- -
- {{ nodeSchema.title }} - 输出引用 - 标记位置 -
-
-
- - - {{col.field}} - - - - - - - - -
-
- -
- {{ section.title }} - 输出引用 -
-
-
- - - {{col.field}} - - - - - - - - - - - - -
-
-
-
-
-
-
- -
- - -
- - - 节点树 - - - - - - - - - 调试信息 - - - - - - - - - 缓存 - - - - - - - - - 暗黑主题 - - - - - - - - - 检查版本 - - - - - - - - - 源码 - - - - - - - -
-
+
+ +
+
+ +
+ +
+ + + + + + {{ node.label }} + + + +
+ 自动刷新 + + +
+ + +
+ +
+
+ + + + + + + + +
2.5d
+
+ +
+ +
+ {{ nodeSchema.title }} + 输出引用 + 标记位置 +
+
+
+ + + {{col.field}} + + + + + + + + +
+
+ +
+ {{ section.title }} + 输出引用 +
+
+
+ + + {{col.field}} + + + + + + + + + + + + +
+
+
+
+
+
+ +
+ + +
+ + + 节点树 + + + + + + + + + 调试信息 + + + + + + + + + 缓存 + + + + + + + + + 暗黑主题 + + + + + + + + + 检查版本 + + + + + + + + + 源码 + + + + + + + +
+
diff --git a/js/app.js b/js/app.js index 6a6e923..bc68763 100644 --- a/js/app.js +++ b/js/app.js @@ -519,10 +519,10 @@ let app = new Vue({ let borderNode = new cc.Node(); let bgNode = new cc.Node(); let graphics = bgNode.addComponent(cc.Graphics); - let canvas = cc.find('Canvas'); - canvas.addChild(bgNode); + let scene = cc.director.getScene(); + scene.addChild(bgNode); bgNode.addChild(borderNode); - bgNode.position = canvas.convertToNodeSpaceAR(rect.center); + bgNode.position = scene.convertToNodeSpaceAR(rect.center); let isZeroSize = rect.width === 0 || rect.height === 0; if (isZeroSize) { graphics.circle(0, 0, 100); diff --git a/version.json b/version.json index 08ef89b..af8bcf2 100644 --- a/version.json +++ b/version.json @@ -1,6 +1,6 @@ { "name": "ccc-devtools", - "version": "2.3.2", + "version": "2.3.3", "author": "Next", "repo": "https://github.com/potato47/ccc-devtools.git" } \ No newline at end of file