mirror of
https://github.com/tidys/cc-inspector-chrome
synced 2025-04-21 17:38:40 +00:00
bugfix
This commit is contained in:
parent
4f84a33152
commit
db379e91b3
@ -11,7 +11,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="left">
|
<div class="left">
|
||||||
<div class="tool-btn">
|
<div class="tool-btn">
|
||||||
<el-switch active-text="实时监控" v-model="watchEveryTime" @change="onChangeWatchState"></el-switch>
|
<el-switch v-if="false" active-text="实时监控" v-model="watchEveryTime" @change="onChangeWatchState"></el-switch>
|
||||||
|
<div style="padding-left: 15px;">节点树</div>
|
||||||
<div class="flex1"></div>
|
<div class="flex1"></div>
|
||||||
<el-button type="success" class="el-icon-refresh" @click="onBtnClickUpdateTree"></el-button>
|
<el-button type="success" class="el-icon-refresh" @click="onBtnClickUpdateTree"></el-button>
|
||||||
</div>
|
</div>
|
||||||
|
@ -210,6 +210,10 @@ export default class UiProp extends Vue {
|
|||||||
return this.value && (this.value.type === DataType.Image)
|
return this.value && (this.value.type === DataType.Image)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
isImageValid() {
|
||||||
|
return !!this.value.data;
|
||||||
|
}
|
||||||
|
|
||||||
isEngine() {
|
isEngine() {
|
||||||
return this.value && (this.value.type === DataType.Engine)
|
return this.value && (this.value.type === DataType.Engine)
|
||||||
}
|
}
|
||||||
|
@ -173,7 +173,7 @@ class CCInspector {
|
|||||||
data.active = !!node.active;
|
data.active = !!node.active;
|
||||||
}
|
}
|
||||||
this.inspectorGameMemoryStorage[node.uuid] = node;
|
this.inspectorGameMemoryStorage[node.uuid] = node;
|
||||||
let nodeChildren = node.getChildren();
|
let nodeChildren = node.children;
|
||||||
for (let i = 0; i < nodeChildren.length; i++) {
|
for (let i = 0; i < nodeChildren.length; i++) {
|
||||||
let childItem = nodeChildren[i];
|
let childItem = nodeChildren[i];
|
||||||
let treeData = new TreeData();
|
let treeData = new TreeData();
|
||||||
@ -259,12 +259,14 @@ class CCInspector {
|
|||||||
const path: Array<string> = options.path;
|
const path: Array<string> = options.path;
|
||||||
if (ctor && value instanceof ctor) {
|
if (ctor && value instanceof ctor) {
|
||||||
// 2.4.6 没有了这个属性
|
// 2.4.6 没有了这个属性
|
||||||
|
data.path = path;
|
||||||
if (value.hasOwnProperty("_textureFilename")) {
|
if (value.hasOwnProperty("_textureFilename")) {
|
||||||
data.path = path;
|
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
data.data = `${window.location.origin}/${value._textureFilename}`;
|
data.data = `${window.location.origin}/${value._textureFilename}`;
|
||||||
return data;
|
} else {
|
||||||
|
data.data = null;
|
||||||
}
|
}
|
||||||
|
return data;
|
||||||
}
|
}
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
@ -330,14 +332,18 @@ class CCInspector {
|
|||||||
if (typeof propertyValue === "object") {
|
if (typeof propertyValue === "object") {
|
||||||
let ctorName = propertyValue.constructor?.name;
|
let ctorName = propertyValue.constructor?.name;
|
||||||
if (ctorName) {
|
if (ctorName) {
|
||||||
if (ctorName.startsWith("cc_")) {
|
if (ctorName.startsWith("cc_") ||
|
||||||
|
// 2.4.0
|
||||||
|
ctorName === "CCClass") {
|
||||||
info = new EngineData();
|
info = new EngineData();
|
||||||
info.engineType = ctorName;
|
info.engineType = ctorName;
|
||||||
info.engineName = propertyValue.name;
|
info.engineName = propertyValue.name;
|
||||||
info.engineUUID = propertyValue.uuid;
|
info.engineUUID = propertyValue.uuid;
|
||||||
}
|
}
|
||||||
} else {
|
}
|
||||||
|
if (!info) {
|
||||||
// 空{}
|
// 空{}
|
||||||
|
// MaterialVariant 2.4.0
|
||||||
info = this._buildObjectData({
|
info = this._buildObjectData({
|
||||||
data: new ObjectData(),
|
data: new ObjectData(),
|
||||||
path: path,
|
path: path,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user