Commit 4aae02ec authored by limingzhe's avatar limingzhe

fix: debug

parent 347cbd65
......@@ -5988,14 +5988,14 @@
"_anchorPoint": {
"__type__": "cc.Vec2",
"x": 0.5,
"y": 0.5
"y": 0
},
"_trs": {
"__type__": "TypedArray",
"ctor": "Float64Array",
"array": [
0,
0,
-315,
0,
0,
0,
......
......@@ -114,11 +114,16 @@ export default class NewClass extends cc.Component {
}
getSpriteFrimeByUrl(row.cover, async (spriteFrame) => {
// console.log("row.cover: ", row.cover);
getSprNodeByUrl(row.cover, async(resSpr) => {
// getSpriteFrimeByUrl(row.cover, async (spriteFrame) => {
const coverNode = cc.find(`bg`, ci);
const spr = coverNode.getComponent(cc.Sprite);
spr.spriteFrame = spriteFrame;
coverNode.width = resSpr.node.width;
coverNode.height = resSpr.node.height;
spr.spriteFrame = resSpr.spriteFrame;
// const sx = 476 / coverNode.width;
// const sy = 630 / coverNode.height;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment