diff --git a/docs/icon.psd b/docs/icon.psd new file mode 100644 index 0000000..354f317 Binary files /dev/null and b/docs/icon.psd differ diff --git a/docs/icon256.png b/docs/icon256.png new file mode 100644 index 0000000..cb0e323 Binary files /dev/null and b/docs/icon256.png differ diff --git a/electron-app/inject.js b/electron-app/inject.js new file mode 100644 index 0000000..82457c4 --- /dev/null +++ b/electron-app/inject.js @@ -0,0 +1,18 @@ +let canvasArray = document.getElementsByTagName("canvas"); +if (canvasArray.length > 0) { + let canvas = canvasArray[0]; + if (canvas) { + canvas.style.display = "none"; + const {children} = canvas.parentNode; + let len = children.length; + let div = children[1]; + if(div){ + div.style.display='none'; + console.log('hide div') + } + // console.log(div); + } +} + +let div=document.getElementById('myDiv') +console.log(div) diff --git a/source/public/favicon.ico b/source/public/favicon.ico index df36fcf..d2688db 100644 Binary files a/source/public/favicon.ico and b/source/public/favicon.ico differ diff --git a/source/public/icons/48.png b/source/public/icons/48.png index fb52838..8cd7852 100644 Binary files a/source/public/icons/48.png and b/source/public/icons/48.png differ diff --git a/source/src/inject/index.ts b/source/src/inject/index.ts index 449f4fc..28b6554 100644 --- a/source/src/inject/index.ts +++ b/source/src/inject/index.ts @@ -255,7 +255,6 @@ class CCInspector { skew: ["skewX", "skewY"], position: ["x", "y", "z"], // position比较特殊,过来的key就是position也需要能处理 scale: ["scaleX", "scaleY", "scaleZ"], - designResolution: ["width", "height"], // 这个比较特殊,在key下边,其他的都不是在key下 }; for (let pairPropertyKey in pairProperty) { if (pairProperty.hasOwnProperty(pairPropertyKey)) { @@ -537,6 +536,7 @@ class CCInspector { } else if (pairValues.length === 3) { info = new Vec3Data(); } + // todo path pairValues.forEach((el: string) => { if (el in node) { let propertyPath = [node.uuid, el]; diff --git a/source/src/options/cocos.png b/source/src/options/cocos.png new file mode 100644 index 0000000..efcdfdb Binary files /dev/null and b/source/src/options/cocos.png differ diff --git a/source/src/options/index.vue b/source/src/options/index.vue index 819f949..53e0643 100644 --- a/source/src/options/index.vue +++ b/source/src/options/index.vue @@ -1,26 +1,39 @@ - diff --git a/source/src/popup/HelloWorld.vue b/source/src/popup/HelloWorld.vue deleted file mode 100644 index cc16ec7..0000000 --- a/source/src/popup/HelloWorld.vue +++ /dev/null @@ -1,23 +0,0 @@ - - - - - diff --git a/source/src/popup/index.vue b/source/src/popup/index.vue index fd8c14d..ca9a6af 100644 --- a/source/src/popup/index.vue +++ b/source/src/popup/index.vue @@ -1,54 +1,46 @@ @@ -118,6 +93,65 @@ export default class App extends Vue { @import "../index.less"; #popup { - width: auto; + width: 300px; + display: flex; + flex-direction: column; + padding: 10px; + + .head { + display: flex; + flex-direction: row; + align-items: center; + + + .name { + user-select: none; + font-size: 18px; + font-weight: bold; + } + + .btn { + } + } + + .wechat { + margin: 10px 0; + display: flex; + flex-direction: row; + + .space { + flex: 1; + } + + .png { + width: auto; + height: 130px; + } + + .tips { + font-size: 15px; + user-select: none; + text-align: center; + width: 100%; + color: #6d6d6d + } + } + + .foot { + display: flex; + flex-direction: row; + height: 30px; + align-items: center; + + .space { + flex: 1; + } + + .icon { + margin: 0 3px; + width: auto; + height: 20px; + } + } } diff --git a/source/src/popup/res/friend.png b/source/src/popup/res/friend.png new file mode 100644 index 0000000..50f9d1d Binary files /dev/null and b/source/src/popup/res/friend.png differ diff --git a/source/src/popup/res/money.jpg b/source/src/popup/res/money.jpg deleted file mode 100644 index 8a4b7e2..0000000 Binary files a/source/src/popup/res/money.jpg and /dev/null differ diff --git a/source/src/popup/res/money.png b/source/src/popup/res/money.png new file mode 100644 index 0000000..98b2faf Binary files /dev/null and b/source/src/popup/res/money.png differ