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