mirror of
https://github.com/potato47/ccc-devtools.git
synced 2024-12-25 19:29:13 +00:00
修复新版chrome场景树不显示问题,优化标记位置功能
This commit is contained in:
parent
0eb78550f6
commit
caf54f3d04
@ -1,4 +1,4 @@
|
||||
# ccc-devtools v2.3.2
|
||||
# ccc-devtools v2.3.3
|
||||
Cocos Creator 网页调试工具,运行时查看、修改节点树,实时更新节点属性,可视化显示缓存资源。
|
||||
|
||||
## 预览
|
||||
|
@ -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 {
|
||||
|
23
index.html
23
index.html
@ -4,18 +4,16 @@
|
||||
<link rel="stylesheet" type="text/css" href="app/editor/static/preview-templates/ccc-devtools/css/style.css">
|
||||
|
||||
<div id="app">
|
||||
<div class="demo-split">
|
||||
<Split v-model="splitLeft" v-if="isDevMode">
|
||||
<div v-if="isDevMode" style="display: flex;min-height: 100vh;">
|
||||
<!-- 左边游戏预览区域 -->
|
||||
<div slot="left" class="demo-split-pane" id="game_panel"
|
||||
style="display:flex;justify-content:left;align-items:center;height: 100vh;">
|
||||
<div id="top" style="position: absolute;top:0;"></div>
|
||||
<div id="game_panel"
|
||||
style="display:flex;flex:auto;flex-direction: column;">
|
||||
<div id="top" style="flex: none"></div>
|
||||
</div>
|
||||
<!-- 右边节点树和属性区域 -->
|
||||
<div slot="right" class="demo-split-pane no-padding">
|
||||
<Split v-model="splitRight" mode="vertical">
|
||||
<div class="right-panel" style="flex: none;display: block;width: 400px;">
|
||||
<!-- 节点树面板 -->
|
||||
<div slot="top" class="demo-split-pane" style="padding-left: 5px;">
|
||||
<div class="tree-panel" style="height: 50vh;overflow: auto;border-bottom: 1px solid #2d2d2d;">
|
||||
<el-input v-if="!isAutoRefreshTree" placeholder="搜索节点" v-model="filterText" size="mini"
|
||||
id="searchInput"></el-input>
|
||||
<v-tree v-if="isDevMode&&isAutoRefreshTree" :data="sceneTreeData" ref="sceneTree"
|
||||
@ -34,7 +32,7 @@
|
||||
</el-tree>
|
||||
<el-button v-if="!isAutoRefreshTree" @click="handleRefreshTree" icon="el-icon-refresh"
|
||||
size="mini" style="position: absolute;right:0;top:0;"></el-button>
|
||||
<div style="position: absolute;right:0;bottom:0;width: 100px;height:20px;">
|
||||
<div style="position: absolute;right:0;bottom:51vh;width: 100px;height:20px;">
|
||||
<span style="line-height:20px;">自动刷新</span>
|
||||
<el-switch v-model="isAutoRefreshTree" active-color="#0099ff" inactive-color="gray">
|
||||
</el-switch>
|
||||
@ -43,8 +41,7 @@
|
||||
<!-- <el-button @click="handleSwitchTreeMode" icon="el-icon-refresh" size="mini" style="position: absolute;right:0;bottom:0;"></el-button> -->
|
||||
</div>
|
||||
<!-- 节点属性面板 -->
|
||||
<div slot="bottom" class="demo-split-pane"
|
||||
style="background: white;min-width: 250px;height: 100%;padding:5px 0;overflow-x:hidden;overflow-y:auto;">
|
||||
<div class="prop-panel" style="background: white;height: 50vh;overflow:auto;">
|
||||
<div v-if="node">
|
||||
<el-row style="margin:5px 0;">
|
||||
<el-col :span="2" style="text-align:center;padding-top:7px;padding-left:5px;">
|
||||
@ -127,9 +124,8 @@
|
||||
</el-card>
|
||||
</div>
|
||||
</div>
|
||||
</Split>
|
||||
</div>
|
||||
</Split>
|
||||
</div>
|
||||
<!-- 控制按钮 -->
|
||||
<div id="panelCtl" style="position:absolute;left:5px;top:50px;height: 50px;display: flex;align-items: center;">
|
||||
<el-popover width="150" placement="top-start" trigger="click">
|
||||
@ -198,7 +194,6 @@
|
||||
</div>
|
||||
</el-popover>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 缓存面板弹窗 -->
|
||||
<Modal v-model="isShowCache" width="800" :mask-closable="false" :mask="false" scrollable @on-cancel="closeCachePanel()" :title="cacheTitle" footer-hide="true">
|
||||
<i-table border :columns="cacheColumns" height="600" size="small" :data="cacheData" :loading="cacheDataLoading">
|
||||
|
@ -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);
|
||||
|
@ -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"
|
||||
}
|
Loading…
Reference in New Issue
Block a user